How to modify a LD_LIBRARY_PATH environment variable?

17.1k views Asked by At

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

There are 1 answers

1
Ivan Sheihets On BEST ANSWER

You can add it to your ~/.bashrc:

echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/your/custom/path/" >> ~/.bashrc