LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 04-02-2012, 02:23 PM   #1
x34
LQ Newbie
 
Registered: Mar 2012
Posts: 6

Rep: Reputation: Disabled
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
///////////////////////////////////////////////////////////////////////////


and I also could not find GLIB_CONFIG


Please help me to install gts .
 
Old 04-02-2012, 07:23 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
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.
 
Old 04-03-2012, 08:34 AM   #3
x34
LQ Newbie
 
Registered: Mar 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hi I was able to install gts after I set variable as follow

echo $LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib


but when I an try to run code it gives

[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 ????

please help
 
Old 04-03-2012, 08:46 AM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
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.
 
Old 04-03-2012, 12:50 PM   #5
x34
LQ Newbie
 
Registered: Mar 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
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

but this is not working

please help I am new to these
 
Old 04-03-2012, 01:32 PM   #6
x34
LQ Newbie
 
Registered: Mar 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hi I make permission in test.sh file then again run "make check"


[root@localhost gts-snapshot-111025]# make check
Making check in src
make[1]: Entering directory `/home/neth/Downloads/gts-snapshot-111025/src'
make check-am
make[2]: Entering directory `/home/neth/Downloads/gts-snapshot-111025/src'
make[2]: Nothing to be done for `check-am'.
make[2]: Leaving directory `/home/neth/Downloads/gts-snapshot-111025/src'
make[1]: Leaving directory `/home/neth/Downloads/gts-snapshot-111025/src'
Making check in tools
make[1]: Entering directory `/home/neth/Downloads/gts-snapshot-111025/tools'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/neth/Downloads/gts-snapshot-111025/tools'
Making check in examples
make[1]: Entering directory `/home/neth/Downloads/gts-snapshot-111025/examples'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/neth/Downloads/gts-snapshot-111025/examples'
Making check in doc
make[1]: Entering directory `/home/neth/Downloads/gts-snapshot-111025/doc'
Making check in manpages
make[2]: Entering directory `/home/neth/Downloads/gts-snapshot-111025/doc/manpages'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/home/neth/Downloads/gts-snapshot-111025/doc/manpages'
make[2]: Entering directory `/home/neth/Downloads/gts-snapshot-111025/doc'
make[2]: Nothing to be done for `check-am'.
make[2]: Leaving directory `/home/neth/Downloads/gts-snapshot-111025/doc'
make[1]: Leaving directory `/home/neth/Downloads/gts-snapshot-111025/doc'
Making check in test
make[1]: Entering directory `/home/neth/Downloads/gts-snapshot-111025/test'
Making check in boolean
make[2]: Entering directory `/home/neth/Downloads/gts-snapshot-111025/test/boolean'
make set boole cubes
make[3]: Entering directory `/home/neth/Downloads/gts-snapshot-111025/test/boolean'
make[3]: `set' is up to date.
make[3]: `boole' is up to date.
make[3]: `cubes' is up to date.
make[3]: Leaving directory `/home/neth/Downloads/gts-snapshot-111025/test/boolean'
make check-TESTS
make[3]: Entering directory `/home/neth/Downloads/gts-snapshot-111025/test/boolean'
make[3]: Entering directory `/home/neth/Downloads/gts-snapshot-111025/test/boolean'
PASS: set t1 t2
PASS: set t1 t3
PASS: set t1 t4
PASS: set t1 t5
PASS: set t1 t6
PASS: set t1 t7
PASS: set t1 t9
PASS: set t1 t10
PASS: set t1 t11
PASS: set t1 t12
PASS: set t1 t13
PASS: set t14 t15
PASS: set t11 t16
PASS: set t17 t18
PASS: set t19 t20
PASS: set t19 t21
PASS: set t31 t32
PASS: set t1 t22
PASS: set t1 t23
PASS: set t1 t24
PASS: set t27 t28
PASS: set cube cube1
PASS: boole cube cube1
PASS: set cube cube2
PASS: boole cube cube2
PASS: set cube cube5
PASS: boole cube cube5
PASS: set t29 t30
PASS: set cube cube8
PASS: boole cube cube8
PASS: set cube9 cube10
PASS: boole cube9 cube10
PASS: set t25 t26
PASS: set cube cube4
PASS: boole cube cube4
PASS: set cube6 cube7
PASS: boole cube6 cube7
PASS: set loc1 loc2
PASS: boole loc1 loc2
PASS: set p1 p2
PASS: boole p1 p2
PASS: set sponge cutter
PASS: boole sponge cutter
PASS: set 1.gts 2.gts
PASS: boole 1.gts 2.gts
PASS: set horse5.gts horse6.gts
PASS: boole horse5.gts horse6.gts
sh: line 1: 32198 Aborted (core dumped) ./set surfaces/horse4.gts surfaces/horse5.gts > /dev/null 2> log
XFAIL: set horse4.gts horse5.gts
XPASS: set horse5.gts horse5.gts
sh: line 1: 32272 Aborted (core dumped) ./boole surfaces/horse5.gts surfaces/horse5.gts > /dev/null 2> log
XFAIL: boole horse5.gts horse5.gts
PASS: set sphere.gts sphere.gts
PASS: boole sphere.gts sphere.gts
PASS: set a8.gts b8.gts
PASS: boole a8.gts b8.gts
PASS: set a9.gts b9.gts
PASS: boole a9.gts b9.gts
PASS: set a10.gts b10.gts
PASS: boole a10.gts b10.gts
PASS: set a23.gts b23.gts
PASS: boole a23.gts b23.gts
PASS: set a24.gts b24.gts
PASS: boole a24.gts b24.gts
PASS: set a25.gts b25.gts
PASS: boole a25.gts b25.gts
sh: line 1: 328 Aborted (core dumped) ./set surfaces/gts-crash.gts surfaces/gts-crash1.gts > /dev/null 2> log
FAIL: set gts-crash.gts gts-crash1.gts
FAIL: set buildings wcc3
FAIL: set buildings wcc2
FAIL: set buildings wcc1
FAIL: set buildings wcc
FAIL: set gerris.gts gerris.1
FAIL: set gerris.gts gerris.2
FAIL: set gerris.gts gerris.3
FAIL: set gerris.gts gerris.4
FAIL: set gerris.gts gerris.5
FAIL: set gerris.gts gerris.6
FAIL: set gerris.gts gerris.7
FAIL: set gerris.gts gerris.8
FAIL: set gerris.gts gerris.9
FAIL: set gerris.gts gerris.10
FAIL: set gerris.gts gerris.11
FAIL: set gerris.gts gerris.12
FAIL: set gerris.gts gerris.13
FAIL: set gerris.gts gerris.14
FAIL: set gerris.gts gerris.15
FAIL: set gerris.gts gerris.16
FAIL: set gerris.gts gerris.17
FAIL: set gerris.gts gerris.18
FAIL: set gerris.gts gerris.19
FAIL: set gerris.gts gerris.20
FAIL: set gerris.gts gerris.21
=====================
26 of 90 tests failed
=====================
FAIL: test.sh
==================
1 of 1 test failed
==================
make[3]: *** [check-TESTS] Error 1
make[3]: Leaving directory `/home/neth/Downloads/gts-snapshot-111025/test/boolean'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/home/neth/Downloads/gts-snapshot-111025/test/boolean'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/neth/Downloads/gts-snapshot-111025/test'
make: *** [check-recursive] Error 1


plese help
 
Old 04-03-2012, 02:53 PM   #7
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set PKG_CONFIG_PATH environment variable rahul8705 Linux - Software 4 03-25-2012 09:43 AM
How to set LD_LIBRARY_PATH galapogos Linux - Software 3 11-21-2008 09:25 AM
Unale to permanently set LD_LIBRARY_PATH cheeta05r Fedora 7 08-30-2007 08:16 PM
Cannot set LD_LIBRARY_PATH in .cshrc (able to set other env variables) senthilpr_in Linux - Newbie 4 02-26-2007 12:46 PM
set LD_LIBRARY_PATH to what? itz2000 Linux - Newbie 3 11-15-2006 08:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration