简体   繁体   中英

How to install cgal on CentOS 7(or CentOS 6)?

I want to install cgal module on CentOS7(or CentOS6). it needs for pgrouting to use PostGIS. I have been install cgal with CGAL Manual Installation . But I didn't installed. And tried to install with PGRouting Installation . But it also failed to install.

Please help me to install cgal library on CentOS7(or CentOS6).

I am 3 years late but it might help others.

The CGAL package is available from Springdale Linux (SDL) / PUIAS Linux .

You can add the puias.repo to /etc/yum.repo.d/puias.repo .

Alternatively, just add the puias_computational repo.

  1. add the gpg keys
sudo curl -o /etc/pki/rpm-gpg/RPM-GPG-KEY-puias http://springdale.math.ias.edu/data/puias/7/x86_64/os/RPM-GPG-KEY-puias
sudo curl -o /etc/pki/rpm-gpg/RPM-GPG-KEY-springdale http://springdale.math.ias.edu/data/puias/7/x86_64/os/RPM-GPG-KEY-springdale
  1. add the repo, ie create the file /etc/yum.repo.d/puiascomp.repo with content
[puias_computational]
name=PUIAS computational Base $releasever - $basearch
mirrorlist=http://puias.math.ias.edu/data/puias/computational/$releasever/$basearch/mirrorlist
#baseurl=http://puias.math.ias.edu/data/puias/computational/$releasever/$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puias
  1. now you should be able to install cgal
sudo yum update -y
sudo yum install CGAL.x86_64 CGAL-demos-source.x86_64 CGAL-debuginfo.x86_64

Note, always be sure you understand what the commands you run are doing, especially when the use sudo .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM