如何修改LD_LIBRARY_PATH环境变量?
How to modify a LD_LIBRARY_PATH environment variable?
我有 Ubuntu 16.04,安装 gtk+3.22.20,需要 GLIB >= 2.49.4 的版本。当 运行 'configure' 脚本时,它说它检测到 GLIB 是 2.48.2。但是,'pkg-config --modversion glib-2.0' returns 2.52.3 因为我安装了那个版本。
他们建议:
"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."
如何解决?
你可以将它添加到你的 ~/.bashrc:
echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/your/custom/path/" >> ~/.bashrc
我有 Ubuntu 16.04,安装 gtk+3.22.20,需要 GLIB >= 2.49.4 的版本。当 运行 'configure' 脚本时,它说它检测到 GLIB 是 2.48.2。但是,'pkg-config --modversion glib-2.0' returns 2.52.3 因为我安装了那个版本。
他们建议:
"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."
如何解决?
你可以将它添加到你的 ~/.bashrc:
echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/your/custom/path/" >> ~/.bashrc