LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 11-09-2006, 10:42 AM   #1
johnpaulodonnell
Member
 
Registered: Jun 2006
Location: Galway
Distribution: Suse 10.1
Posts: 114

Rep: Reputation: 15
cannot find -lX11


Hi.

Running Suse10.1 on an x86_64 machine. Trying in vain to install some software...

When I run 'make' I'm getting the following error:

...
/usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make[1]: *** [../shc] Error 1
make[1]: Leaving directory 'usr/local/SH-SHM/sh/source'
make: *** [sd-source] Error 2


Any help would be much appreciated!

Thanks
 
Old 11-09-2006, 11:01 AM   #2
Caeda
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Suse 6.0+, Mandrake 5.0-10.0, Redhat 6.0-9.0, Gentoo 1.2+, Gnoppix, Knoppix, Sabayon, Ubuntu 5.04+
Posts: 1,811

Rep: Reputation: 45
What software? What version? You have the sources for compiling programs installed? Much more info needed, you probably won't get an answer with just this...
 
Old 11-09-2006, 11:15 AM   #3
johnpaulodonnell
Member
 
Registered: Jun 2006
Location: Galway
Distribution: Suse 10.1
Posts: 114

Original Poster
Rep: Reputation: 15
The program is Seismic Hander - it's a seismic analysis tool. The version I'm trying to install is SH-5.0a_SHM_2.4e, which includes a command line driven SH-5.0a version and a motif version SHM_2.4e. Prerequisites are the gcc compiler and the openmotif libraries including development package, all of which I've already installed.
 
Old 11-09-2006, 11:21 AM   #4
soggycornflake
Member
 
Registered: May 2006
Location: England
Distribution: Slackware 10.2, Slamd64
Posts: 249

Rep: Reputation: 31
You need to add '-L/usr/X11R6/lib' to the relevant command in the Makefile, gcc doesn't look there by default.
 
Old 11-09-2006, 11:27 AM   #5
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
Are you using the installation script?
 
Old 11-09-2006, 11:58 AM   #6
johnpaulodonnell
Member
 
Registered: Jun 2006
Location: Galway
Distribution: Suse 10.1
Posts: 114

Original Poster
Rep: Reputation: 15
installation script didn't work for me - so I'm following instructions for a manual installation.

When I try running the installation script I get the error:

"Program uil not found in search path. Please add"

I have no idea what this program is and whereis doesn't give me anything.

I have installed an earlier command line version of Seismic Handler before using the manual installation and it worked fine...but I need the motif version now.

Have had a look at the makefile and do not see where I can add '-L/usr/X11R6/lib'

...would post the makefile but problem with proxy server on linux machine and I'm posting this from a windows machine
 
Old 11-09-2006, 01:43 PM   #7
soggycornflake
Member
 
Registered: May 2006
Location: England
Distribution: Slackware 10.2, Slamd64
Posts: 249

Rep: Reputation: 31
Quote:
Originally Posted by johnpaulodonnell
installation script didn't work for me - so I'm following instructions for a manual installation.

When I try running the installation script I get the error:

"Program uil not found in search path. Please add"

I have no idea what this program is and whereis doesn't give me anything.

I have installed an earlier command line version of Seismic Handler before using the manual installation and it worked fine...but I need the motif version now.

Have had a look at the makefile and do not see where I can add '-L/usr/X11R6/lib'

...would post the makefile but problem with proxy server on linux machine and I'm posting this from a windows machine
Tacking it onto the end of CFLAGS is the usual place.

I'm assuming that the X "development" libraries are installed, if necessary. Apparently some distros separate run-time and development stuff. No such nonsense under Slackware, unix is by definition a development system, even more so with Linux.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 solve the cannot find lX11 northern_lights Linux - Newbie 1 08-30-2006 05:58 PM
g++ : ld cannot find -lX11 infinitycool Slackware 5 09-23-2004 05:48 PM
can not find lX11 problem lljxh Linux - Software 4 08-27-2003 01:58 AM
ld -lX11 can not find -lX11 Alexop Linux - Newbie 1 08-18-2002 08:01 PM
ld -lX11 can not find -lX11 Alexop Linux - General 1 08-18-2002 07:24 PM


All times are GMT -5. The time now is 05:51 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration