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-14-2006, 12:40 PM   #1
johnpaulodonnell
Member
 
Registered: Jun 2006
Location: Galway
Distribution: Suse 10.1
Posts: 114

Rep: Reputation: 15
cannot find -lMrm


Hi.

Trying to install Seismic Handler program(SH-5.0a-SHM-2.4e) on an x86_64 machine running Suse 10.1.
The program is 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.

Have already solved problem "cannot find -lX11" with help from this forum. Next error encountered was:

cannot find include file "Xm/Xm.h" & cannot find include file "Mrm/MrmPublic.h"
-which showed up when I ran make...

It was then suggested that I could get above header files by downloading the lesstif package(lesstif-0.95.0) , which I did. So I put these files in the appropriate directory /usr/include and reran make...

much improved output but now getting error:

Linking shm ...
gcc shm.o -L/usr/local/SH-SHM/sh/lib/ -L/usr/X11R6/lib64 -lmotif -lsource -lgraph -lgcf -lseed -lfrgn -lutil -lsource -lm -lMrm -lXm -lXt -lXext -L/usr/X11R6/lib -lX11 -lICE -lSM -lXpm -o shm
/usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld: cannot find -lMrm
collect2: ld returned 1 exit status
make: *** [shm] Error 1


Any ideas would be most welcome!

Thanks
 
Old 11-15-2006, 05:41 AM   #2
johnpaulodonnell
Member
 
Registered: Jun 2006
Location: Galway
Distribution: Suse 10.1
Posts: 114

Original Poster
Rep: Reputation: 15
In the Makefile I replace this:

CFLAGS = $(SH_CCOPTIONS) -I$(SH_SOURCE) -I$(SH_UTIL) -I$(SH_SOURCE)/newgraph -I$(SH_SOURCE)/foreign -DBASECNST=\"basecnst.h\"
CC = $(SH_COMPILER)
LD = $(SH_COMPILER)
RANLIB = $(SH_RANLIB)
LDFLAGS = -L$(SH_LIB) $(SH_LINKOPTIONS)
LIBS = -lmotif -lsource -lgraph -lgcf -lseed -lfrgn -lutil -lsource \
-lm -lMrm -lXm -lXt -lXext -L/usr/X11R6/lib -lX11 $(SH_LINKLIBS) $(SH_MOTIFLIBS)


with this:

CFLAGS = $(SH_CCOPTIONS) -I$(SH_SOURCE) -I$(SH_UTIL) -I$(SH_SOURCE)/newgraph -I$(SH_SOURCE)/foreign -DBASECNST=\"basecnst.h\"
CC = $(SH_COMPILER)
LD = $(SH_COMPILER)
RANLIB = $(SH_RANLIB)
LDFLAGS = -L$(SH_LIB) $(SH_LINKOPTIONS)
LIBS = -lmotif -lsource -lgraph -lgcf -lseed -lfrgn -lutil -lsource \
-lm -L/usr/include/Mrm -L/usr/include/Xm -lXt -lXext -L/usr/X11R6/lib -lX11 $(SH_LINKLIBS) $(SH_MOTIFLIBS)

This only works when the 'L' is a capital....what's the difference between the lower and uppercase l's in this context...and what have dies it actually mean to do what I've just done because I've really stumbled across this solution

Thanks.
 
  


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
linux find to find files with multiple patterns subu_s Programming 6 12-15-2010 01:15 AM
Can`t find C-compiler in Debian ,or at least can`t find one that can make executables hemmelig Linux - Software 4 05-26-2008 04:07 AM
I can find the camera but can't find the images? sneckert Linux - Newbie 2 02-02-2005 09:51 AM
find: . changed during execution of find suse degraffenried13 Linux - General 3 12-12-2004 08:13 PM
linux 'find' to find text files subu_s Programming 2 12-02-2004 03:56 AM


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