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:
- edit
/etc/ld.so.conf
usingsudo vi /etc/ld.so.conf
to make it contain:include /etc/ld.so.conf.d/*.conf
. - Edit / create a file
/etc/ld.so.conf.d/libc.conf
so that it contains:/usr/local/lib
- Run
sudo ldconfig
to save changes
This makes the libraries searchable when building rgdal.
Related Topics
What Happens If There Are Too Many Files Under a Single Directory in Linux
Why Does Munmap Needs a Length as Parameter
Partitioning Images Based on Their White Space
Check What Conda Environment Is Currently Activated
Having Trouble Wrapping Functions in The Linux Kernel
How to Set Errno in Linux Device Driver
How to Get Awk to Print Without White Space
Error: You Must Install at Least One Postgresql-Client-<Version> Package
Environment Variables in Symbolic Links
Move Cursor on Middle Button Paste in Sublime Text 3
Why Does 'Ping' Not Timeout in Linux
Difference Between $() and () in Bash
How to Use Vi to Edit a Command in Terminal on Linux