How to Install a Recent Version of Gdal on Amazon Linux

What is the safest way to get a newer version of a repo from yum on Amazon Linux?

For me the safest way to get newer version on your VM is to compile it and install it in different place like /opt/binutils or /usr/local/binutils and use absolute paths for utils.

Cannot build rgdal package on amazon linux AMI

The issue is that, while GDAL is correctly built, rgdal cannot find its libraries. This is because the AWS ec2 AMI does not include /usr/local/lib in the default search path for libraries. The solution is provided in an answer to this question.

In brief:

  1. edit /etc/ld.so.conf using sudo vi /etc/ld.so.conf to make it contain: include /etc/ld.so.conf.d/*.conf.
  2. Edit / create a file /etc/ld.so.conf.d/libc.conf so that it contains: /usr/local/lib
  3. Run sudo ldconfig to save changes

This makes the libraries searchable when building rgdal.



Related Topics



Leave a reply



Submit