LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-05-2005, 11:23 PM   #1
behmjoe
Member
 
Registered: Mar 2005
Posts: 80

Rep: Reputation: 15
"gxine" /usr/bin/ld: cannot find -lmozjs


Hi,
I'm attempting to install gxine-0.5.1, and running into problems. Help if you can, please. I have a scratch built linux system. Following linux from scratch cvs instructions in a loose sense of the phrase. Heres how it bails:

usr/lib/libcairo.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so -lmozjs
/usr/bin/ld: cannot find -lmozjs
collect2: ld returned 1 exit status
make[1]: *** [gxine] Error 1
make[1]: Leaving directory `/usr/src/beyond-linux-base/gxine/gxine-0.5.1/src'
make: *** [all-recursive] Error 1


Help PLEASE

thanks in advance
 
Old 12-06-2005, 05:59 AM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
have you installed mozilla or firefox yet? that's where the library you need comes from. if you don't want the mozilla/firefox plugin to be built, look in ./configure --help for an option to disable it.
 
Old 12-06-2005, 02:16 PM   #3
behmjoe
Member
 
Registered: Mar 2005
Posts: 80

Original Poster
Rep: Reputation: 15
Hi,

Yes I have mozilla-1.7.12 installed on my system. I folled the lfs instruction for its installation, and I have java jdk-1.5.0 installed with the proper symlink in /usr/lib/mozilla/plugins.
If anyone knows anyway to possible edit the source so it searches in the right spot for this code I'd appreciate your help.

thanks
 
Old 12-06-2005, 02:53 PM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
do you have the directory contianing the libraries in /etc/ld.so.conf and have you run ldconfig? otherwise, you could for ce the linker to look there, say if the lib is in /usr/lib/mozilla-1.7.5 you could:

Code:
export LD_LIBRARY_PATH=/usr/lib/mozilla-1.7.5:$LD_LIBRARY_PATH
and the library linker will search that directory. if you use this method though, it will have to be done at runtime too, so the dynamic linker can find the lib then also. it's better to have the directory in /etc/ld.so.conf and run ldconfig if you want it more hassle free.
 
Old 12-06-2005, 04:31 PM   #5
behmjoe
Member
 
Registered: Mar 2005
Posts: 80

Original Poster
Rep: Reputation: 15
Hi,

I enter /usr/lib/mozilla-1.7.12 into my /etc/ld.so.conf. I ran ldconfig, and I still get the same error.

thanks
 
Old 12-07-2005, 04:01 AM   #6
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
does /usr/lib/mozilla-1.7.12 contain libmozjs.so?
 
Old 12-07-2005, 06:54 PM   #7
behmjoe
Member
 
Registered: Mar 2005
Posts: 80

Original Poster
Rep: Reputation: 15
Hi,

Yes its does.

/usr/lib/mozilla-1.7.12/libmozjs.so

How can I tell if the library is functioning correctly a sort of sanity check?
 
Old 12-08-2005, 01:03 AM   #8
jlo_sandog
Member
 
Registered: Jul 2005
Location: USA
Distribution: F10 (x86_64)
Posts: 549

Rep: Reputation: 32
Not sure what distro you're running but on FC4 I dowloaded js and js-devel rpms from http://dag.wieers.com/packages/js/

I applied the patch given and eveything went as expected. Works great.
 
Old 12-08-2005, 02:58 AM   #9
behmjoe
Member
 
Registered: Mar 2005
Posts: 80

Original Poster
Rep: Reputation: 15
Hi,

I am am running a linux box built from source code. I followed lfs-cvs liberally. I did however follow the mozilla, and jdk-1.5.0 builds to the note. So I am kinda stumped on this one.

thanks
 
Old 12-16-2005, 12:35 AM   #10
behmjoe
Member
 
Registered: Mar 2005
Posts: 80

Original Poster
Rep: Reputation: 15
Hi

I have an idea I think gxine needs a static library to build against. before I mess around with this does anyone know if this is true?

thanks
 
  


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
"/usr/bin/ls: reading directory .: Input/output error" DiZi Slackware 15 07-13-2008 10:03 AM
problem "make"ing gtk+ "/usr/bin/env: perl -w" caid Linux - Newbie 8 07-29-2005 04:51 AM
"accidently deleted every program in /usr/bin that begins with the letter m*" behmjoe Linux From Scratch 1 04-15-2005 08:42 AM
invalid binary "/usr/bin/postgres" while running postgresql ukrainet Linux - Newbie 1 12-01-2004 08:36 AM
what is "S" instead of "X" in the file permission when i look at /usr/bin/chsh? Linux_interest Linux - Newbie 4 08-28-2004 09:22 AM

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

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