问题
I have Ubuntu 16.04, and installing gtk+3.22.20, a version of GLIB >= 2.49.4 is needed. When running the 'configure' script, it says it detects that GLIB is 2.48.2. However, 'pkg-config --modversion glib-2.0' returns 2.52.3 since I installed that version.
They suggest to:
"remove the old version of GLib. You may also be able to fix the error by modifying your LD_LIBRARY_PATH enviroment variable, or by editing /etc/ld.so.conf. Make sure you have run ldconfig if that is required on your system."
How to solve this?
回答1:
You can add it to your ~/.bashrc:
echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/your/custom/path/" >> ~/.bashrc
来源:https://stackoverflow.com/questions/46175203/how-to-modify-a-ld-library-path-environment-variable