LinuxQuestions.org
Review your favorite Linux distribution.
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 11-11-2005, 09:35 PM   #1
sparX CG
LQ Newbie
 
Registered: Nov 2005
Distribution: SLAX 5.0.6 (Slackware 10.1)
Posts: 3

Rep: Reputation: 0
Problem installing - libtool: link: cannot find the library `__LIBGL_PATH__/libGL.la'


Hello all, I'm new to Linux at the moment...

I'm running on an HD-installed SLAX 5.0.6, a Live CD distribution based on Slackware. I've tried installing Metisse on it, it didn't work. Sorry, I can't post the link to it yet, so you'll have to google it.

So, I installed all required libraries (nucleo and wm-icons). Those weren't a problem at all, they all compiled and installed smoothly. Then, I moved on to Metisse, and...

libtool: link: cannot find the library `__LIBGL_PATH__/libGL.la'
make[3]: *** [FvwmAmetista] Error 1
make[3]: Leaving directory `/root/metisse-0.3.5/FvwmAmetista/main'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/metisse-0.3.5/FvwmAmetista'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/metisse-0.3.5'
make: *** [all] Error 2

Looked around, we told me to install the graphics drivers. I run on an nVidia card, so I went to download the nVidia drivers. Can't install them. Recompiled the kernel about three times (keep in mind I'm new!!), and the driver finally installed. Woohoo, I even got Direct Rendering!

So I was happy, and I tried to install Metisse again. And guess what?

libtool: link: cannot find the library `__LIBGL_PATH__/libGL.la'
make[3]: *** [FvwmAmetista] Error 1
make[3]: Leaving directory `/root/metisse-0.3.5/FvwmAmetista/main'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/metisse-0.3.5/FvwmAmetista'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/metisse-0.3.5'
make: *** [all] Error 2

Same error! That 'libgl.la' file is in my /usr/lib folder alright. And so are all the required libraries. libtool just can't seem to find them. I even tried 'export __LIBGL_PATH__=/usr/lib' Nothing seems to work...

Please help, thanks in advance...
 
Old 11-12-2005, 09:20 AM   #2
sparX CG
LQ Newbie
 
Registered: Nov 2005
Distribution: SLAX 5.0.6 (Slackware 10.1)
Posts: 3

Original Poster
Rep: Reputation: 0
Nobody? Please help me...

It seems to be a problem with libtool. I don't know how to fix it though...
 
Old 11-12-2005, 07:00 PM   #3
jdogpc
Member
 
Registered: Jul 2005
Location: Mafra, PT
Distribution: Fedora Core
Posts: 90

Rep: Reputation: 15
Hi it looks like __LIBGL_PATH__ is a variable that should be defined in Makefile but for some reason it is not being defined correctly.
Try edit the "Makefile" file in 'root/metisse-0.3.5' and see if there it is any ocurence for that variable.

you can always try issue ./configure command like this:
ENV='-L /usr/lib' ./configure
this instructes the compiler to search for libraries in '/usr/lib'.

Hope this helps.

JdogPC
 
Old 11-13-2005, 06:01 PM   #4
runlevel0
Member
 
Registered: Mar 2005
Location: Hilversum/Holland
Distribution: Debian GNU/Linux 5.0 (“Lenny”)
Posts: 290

Rep: Reputation: 31
Re: Problem installing - libtool: link: cannot find the library `__LIBGL_PATH__/libGL.la'

Quote:
Originally posted by sparX CG
Hello all, I'm new to Linux at the moment...
libtool: link: cannot find the library `__LIBGL_PATH__/libGL.la'
make[3]: *** [FvwmAmetista] Error 1
make[3]: Leaving directory `/root/metisse-0.3.5/FvwmAmetista/main'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/metisse-0.3.5/FvwmAmetista'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/metisse-0.3.5'
make: *** [all] Error 2

Same error! That 'libgl.la' file is in my /usr/lib folder alright. And so are all the required libraries. libtool just can't seem to find them. I even tried 'export __LIBGL_PATH__=/usr/lib' Nothing seems to work...
Uuuups, Metisse is still not production software, it could perfectly happen that it had a bug.

A very simple answer could be setting your LDFLAGS variable to the current libGL.la path. This is set as a part of the compiler invocation:
Code:
LDFLAGS=/path/to/your/library ./configure --flags
I found two other possible solutions on this page:
Kurztipp: »cannot find the library«-Fehler beheben

For the sake of non-German speakers, here's the translation of the procedures:

NOTE: UGLY HACK TO FOLLOW
If the above solution does not work, the correct way would be sending the Metisse team a bug report and waiting for their answer. What follows can work, but it's a darn ugly hack. Proceed at your own risk.



First method
Libtool uses a script called ltmain.sh and it happens that many packages use their own local version of this script instead of using the one already installed on your system. To fix this you need to copy your system's ltmain.sh into the package tree overwriting the local script:

Code:
cp /usr/share/libtool/ltmain.sh /path/to/your/package/ltmain.sh
Ensure that you copy into the directory where this ltmain.sh file resides. BTW, you don't need to be root to do this.
If this fails after issuing ./configure and make, there is a second step to try

second method
This hack involves editing the ltmain.sh file in your package's tree. The German text says that the expression we search is in the line 1537, but this could have changed. So the first thing we have to do is getting the line number with the expression with grep [1]:

Code:
grep -n "esac # case $deplib" ltmain.sh
(I found it at line 2247)

Now open the file with your favorite editor and use the Go-To-Line function to jump to this line.
In vim you can first enable line numbering (to know where you are) and then jump straight to this line (ESC is the ESC key)
Code:
ESC :set nu
ESC :2247
Now you have to insert a new line of code in the line before this one with the code -pthread) continue;;.
In vim you can operate in this way (from the line found with grep):
Code:
ESC :O
a
 -pthread) continue;;
ESC :wq
The result should be like this:
Code:
...
2246:    -pthread) continue;;
2247:   esac # case $deplib
...
So long the author, this should let the stuff compile.

Don't forget to post if it works



[1] You can of course use the built-in search function of your favorite editor, but to keep things editor-neutral I use this approach.

Last edited by runlevel0; 11-13-2005 at 06:08 PM.
 
Old 11-14-2005, 05:45 PM   #5
sparX CG
LQ Newbie
 
Registered: Nov 2005
Distribution: SLAX 5.0.6 (Slackware 10.1)
Posts: 3

Original Poster
Rep: Reputation: 0
Hiya, thanks, jdogpc's method worked, but now the compiled and installed metisse can't find nucleo, a library thats required to run it. I DID download, compile and install it.

Anyways, I got around this problem by downloading and installing precompiled binaries

I should probably try compiling the next version myself though
 
  


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
libtool link error tibbar66 Linux - Newbie 1 04-09-2005 05:14 PM
How do I link to my custom libGL.la during configure/make/install if I am not root? lbermude Linux - Software 2 12-13-2004 08:51 AM
Libtool cant find library that exists... Kane635 Linux - Software 0 12-13-2004 06:38 AM
Problem installing jfsutils-1.1.7, cannot find uuid library kit_johnson Linux - Software 1 11-30-2004 08:07 AM
make error "libtool: link: cannot find the library `' " jdolluc Linux - Software 2 10-15-2003 09:51 PM

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

All times are GMT -5. The time now is 04:13 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