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 12-09-2004, 10:11 AM   #1
lbermude
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Rep: Reputation: 0
Question How do I link to my custom libGL.la during configure/make/install if I am not root?


Hello

I am trying to install evas-1.0.0_pre13 (from enlightenment 0.17) in my system at work. However in this machine i am a simple user (no root access).

I usually install all programs from source with

./configure --prefix=/home/myuser/usr
make
make install

However while I was trying to install evas-1.0.0 I got:

libtool: link: `/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../..//libGL.la' is not a valid ibtool archive

Which after some searching I found out that is an nvidia bug in the libGL.la and I need to edit that file and add the word "libtool" to the second line:

These are the 2 first lines of libGL.la:

# libGL.la - a libtool library file
# Generated by nvidia-installer: 1.0.5

And they need to read:

# libGL.la - a libtool library file
# Generated by nvidia-installer: 1.0.5 (for use by libtool)

As stated at:
www dot nvnews dot net/vbulletin/archive/index.php/t-23019.html

(And they say linux is not obscure...)

Anyhow. My problem is that I am not root so I cannot change the file.

Is there any way that I can tell make to use my own copy of ligGL.la that I copied in my own directory?

I tried:

make -I=/home/myuser/libGL.la

but it did not work

Any other ideas?

Thanks

Leo
 
Old 12-09-2004, 10:39 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
You will have to add the directory to the start of the linker path, so your file gets found first. If memory serves, that's:
Code:
export LDPATH=/home/myuser/:$LDPATH
(do this before, and in the same shell as, configure and make)
 
Old 12-13-2004, 08:51 AM   #3
lbermude
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for the answer, here is what happened:

$ export LDPATH=/home/myuser/files/source_linux/evas/evas-1.0.0_pre13:$LDPATH
$ configure --prefix=/home/myuser/usr

.... no errors here ....

$ make

... same error: ...
/bin/sh ../../../../libtool --mode=link gcc -g -O2 -o libevas_engine_gl_common.la evas_gl_context.lo evas_gl_font.lo evas_gl_gradient.lo evas_gl_image.lo evas_gl_line.lo evas_gl_misc.lo evas_gl_polygon.lo evas_gl_rectangle.lo evas_gl_texture.lo -L/usr/lib32 -lGL -lGLU -lpthread

libtool: link: `/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../..//libGL.la' is not a valid libtool archive

then I checked my LDPATH:

$ echo $LDPATH

/home/myuser/files/source_linux/evas/evas-1.0.0_pre13:

hmm it seems that i did not have an LDPATH variable before. I confirmed this with a new terminal too.

I also checked the documentation for libtool and it seems it has a flag for the link mode:

`-Llibdir'
Search libdir for required libraries that have already been installed.

I dont know if that is the dir that libtool wants for libGL.la. I tried looking trough the configure and Makefile files but it was not easy for me to locate where should I insert the -Llibdir. configure and Makefile are still a little too complicated for me.

I would appreciate If somebody has any idea on how to install this as a normal user..

Thanks.

Leo
 
  


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
Custom install initrd for megaide - how to make? silversail76 Debian 1 07-27-2004 05:00 AM
Want to make custom install CD using newest xserver for fx5200 tuckerg76 Red Hat 0 12-29-2003 04:32 PM
can't make custom prompt work for root!? jaregi Linux - General 4 09-09-2003 11:40 PM
how to make custom install boot disk? xcp Slackware 0 07-06-2002 02:22 AM
Can I automate the tar, ./configure, make, and make install of about 50 packages? JoeLinux Linux - General 2 04-13-2002 03:35 AM

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

All times are GMT -5. The time now is 08:37 AM.

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