How to set LD_LIBRARY_PATH,PKG_CONFIG_PATH and GLIB_CONFIG ??
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to set LD_LIBRARY_PATH,PKG_CONFIG_PATH and GLIB_CONFIG ??
Hi All,
I want to install gts(GNU Traingulated Surface Library)
so first I installed pkg-config-0.26
glib-2.32.0
and many more other dependencies.I was able to install these without problem.And installed all these without giving prefix
./confgure
make
make install
but when i trying to install gts
./configure --prefix=/home/neth/Documents/gts/
it gives error
//////////////////////////////////////…
checking for GLIB - version >= 2.4.0...
*** 'pkg-config --modversion glib-2.0' returned 2.32.0, but GLIB (2.30.1)
*** was found! If pkg-config was correct, then it is best
*** 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.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
checking for glib-config... no
checking for GLIB - version >= 1.2.8... no
*** The glib-config script installed by GLIB could not be found
*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GLIB_CONFIG environment variable to the
*** full path to glib-config.
/////////////////////////////////////////////////////////////////
So i set the variables
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/bin/pkg-config:/usr/local/bin/pkg-config
export LD_LIBRARY_PATH=/usr/local/lib/pkgconfig:etc/ld.so.conf
it still gives the error.
and I also tried to change /etc/ld.so.conf file
include ld.so.conf.d/*.conf
/usr/local/lib
but that also did not work
and when I check pkg-config
////////////////////////////////////////////////////////////////////////////
[root@localhost gts-snapshot-111025]# pkg-config --list-all |grep glib
libsoup-2.4 libsoup - a glib-based HTTP library
json-glib-1.0 JSON-GLib - JSON Parser for GLib
glib-2.0 GLib - C Utility Library
gio-unix-2.0 GIO unix specific APIs - unix specific headers for glib I/O library
dbus-glib-1 dbus-glib - GLib integration for the free desktop message bus
libsoup-gnome-2.4 libsoup - a glib-based HTTP library
gio-2.0 GIO - glib I/O library
///////////////////////////////////////////////////////////////////////////
GLIB_CONFIG is only required if you are trying to build against Glib1. This is not your case, so no need to worry about that variable.
You installed a newer version of Glib (2.32.0) without removing the existing version (2.30.1). Does GTS really need the newer version of Glib?
Since you didn't pass the --prefix option when configuring Glib-2.32.0, it was installed in the /usr/local prefix. Your PKG_CONFIG_PATH should include /usr/local/lib/pkgconfig before /usr/lib/pkgconfig which you did. The /usr/bin/pkg-config and /usr/local/bin/pkg-config should not be included in the PKG_CONFIG_PATH variable.
LD_LIBRARY_PATH should include the list of directories to search for shared libraries before searching the default directories. The values you put in that variable are wrong because they point to directories that don't contain shared libraries (/usr/local/lib/pkgconfig) and to a file (/etc/ld.so.conf).
After making changes to /etc/ld.so.conf, you need to execute ldconfig.
[root@localhost bin]# ./cvmdst < test.dat
./cvmdst: error while loading shared libraries: libgts-0.7.so.5: cannot open shared object file: No such file or directory
and I also want to know how to execute ldconfig ????
You can execute ldconfig as root by typing ldconfig after the command prompt and pressing the Enter key. Try executing that command and see if it clears up your new error.
Hi
I run this
unset PKG_CONFIG_PATH
unset LD_LIBRARY_PATH
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
echo $LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
then again try to install gts library.It install without problem
but when I run "make check" it gave error. earlier when i installed gts I did not run "make check"
/bin/sh: line 9: ./test.sh: Permission denied
FAIL: test.sh
so i tried to make permission
[root@localhost /]# chmod 777 bin
[root@localhost /]# cd bin
[root@localhost bin]# chmod 777 sh
You'd need to ask someone far more familiar with gts and what the specific test are to get help with the test failures. Check if gts has an IRC channel or a mailing list. That would be a good place to start with the test suite failures.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.