LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 09-30-2011, 10:35 PM   #1
Melvin168
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Rep: Reputation: Disabled
How to resolve the error /usr/bin/ld: cannot find -lXm using Fedora 14?


Tried to use X-Windows in Fedora 14. After installing the following packages, openmotif-2.3.3-1.fc14/x86_64.rpm, openmotif-devel-2.3.3-1.fc14/x86_64.rpm,and libX11-devel-1.3.4-3.fc14.x86_64.rpm, all the files using X-Windows(or X11) got compiled without any error. However,it failed during the linking because of the error "cannot find -lXm". Checking \usr\lib and \user\lib64\X11, I did not see any libraries related to X11. It appeared that the X11 libraries were not installed at all. Need help to figure out what steps or package(s) are missing. Thanks.
 
Old 09-30-2011, 11:57 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Did you use the recommended way for those rpm's
" yum install ?????? "
or did you grab random rpms from random websites

if the later there are a few incompatible sources and you might have KILLED the install

Quote:
Tried to use X-Windows in Fedora 14
How ???

unless you did NOT install the default GUI ( Gnome2 ) then it WAS installed by default at time of install

if you ONLY installed the TEXT ONLY - no gui then you would need to install a gui
like gnome
Code:
su -
yum groupinstall " Gnome Desktop Environment "
double check the spelling from the list of installable groups
Code:
su -
 yum grouplist
x11 would be installed and there would be no need to try to install it if gnome,kde,lxcf,.... are installed

as to "Tried to use X-Windows"
boot the computer the gui pops up .There is a 3 sec. countdown then the normal boot
that there IS x window being used


Quote:
After installing the following packages, openmotif-2.3.3-1.fc14/x86_64.rpm, openmotif-devel-2.3.3-1.fc14/x86_64.rpm,and libX11-devel-1.3.4-3.fc14.x86_64.rpm, all the files using X-Windows(or X11) got compiled without any error.
that makes no sense
installing a rpm DOSE NOT build software
rpm's ARE prebuilt all ready compiled programs -- you do not "compile" them

Last edited by John VV; 10-01-2011 at 12:00 AM.
 
Old 10-01-2011, 07:46 AM   #3
Melvin168
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
This is what I did. I used Fedora-14-x86_64.DVD to install the Linux and I checked almost all the possible boxes (or options) during the installation. I also used "yum install ---" to install all the other openmotif-devel and libX11-devel three packages.

Entered "yum grouplist" and found the following installed group lists:
:
:
KDE Software Compilation
KDE Software Development
GNOME Desktop Environment
GNOME Software Development
Legacy Font
:
X Software Development
X Window System

As above shows the X Software Development package seemed to be installed. But when I tried to compile my X-Windows application (not the packages)and got this "cannot find -lXm" error.

I wonder what X libraries are missing or something else?
Thanks,
 
Old 10-01-2011, 03:10 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
This is what I did. I used Fedora-14-x86_64.DVD to install the Linux and I checked almost all the possible boxes (or options) during the installation. I also used "yum install ---" to install all the other openmotif-devel and libX11-devel three packages.
that right there might be the problem

installing EVERYTHING
gnome
kde
xfce

ALL web development
ALL desktop Development
all database development
EVERYTHING

has been known to install a NON working Operating system


Quote:
I tried to compile my X-Windows application
What is it and where did you get it
HOW are you "compileing it " - the step by step would help
was it wrote for the VERY OLD xfree86 of MS windows ? ( think win 98 & xp )
If so you will have problems on any modern OS
 
Old 10-01-2011, 08:49 PM   #5
Melvin168
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
"cannot find -lXm" error.

I tried to re-install Fedora 14 again without including those Web, desktop,.. stuff. I also used "yum install" to install openmotif-devel, libX11-devel and xorg*. Well, the error message was the same - "cannot find -lXm". I started to wonder if X11 libraries were really supported in Fedora 14. No idea where I can get the answer.

What I am trying to do is to port an application written more than 10 years ago for running on Unix to Linux platform. I was told Fedora was a good one to pick and didn't expect this X11 issue. Not sure if I can try to use the xfree86 libraries in Fedora 14 or I should just explore other Linux OS for 64-bit. Thanks.
 
Old 10-01-2011, 09:05 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
What I am trying to do is to port an application written more than 10 years ago
that is the problem


in a MS windows analogy
that x windows program is like a windows 95 program ( 16 bit)
and you are trying to build it on windows 7 64
Quote:
I was told Fedora was a good one to pick and didn't expect this X11 issue
WHO told you that ????
fedora is the like the Developers BETA preview of windows 8
it is THE NEWEST OF THE NEW

a old x program coded for a VERY old version of x on a NEW os
-- wont work ---

delete it and start from scratch
wright a 100% NEW version
scrap the old


now you might have ? maybe ? a 5% chance on CentOS 4.9
mabe
but you will need to install a VERY old version of gcc something like gcc2.8

-- i would not even try


do a 100% NEW rewright of the program
from the ground up

delete the old one
 
Old 10-01-2011, 10:09 PM   #7
Melvin168
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
OK! I got the message. Your help is really appreciated. Best Regards.
 
Old 10-01-2011, 10:28 PM   #8
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -
Quote:
However,it failed during the linking because of the error "cannot find -lXm"
"libXm" is an old, mid-1990's GUI toolkit called "Motif". There's an open-source implementation, called "Open Motif", here:

http://www.ist.co.uk/downloads/motif_download.html

It couldn't hurt to download it, even though it sounds like you've downloaded some (or all) of Open Motif already.

It also couldn't hurt to see if you've already got some equivalent of "libXm" (perhaps called something slightly different) and rename it "libXm" or create a symbolic link ("ln -s") to alias it to "libXm".

Yet another complicating factor could be 32-bit vs. 64-bit libraries in the mix.

'Hope that helps .. PSM

Last edited by paulsm4; 10-01-2011 at 10:31 PM.
 
Old 10-06-2011, 08:46 PM   #9
Melvin168
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
missing lXm error

We switched to use CentOS 5.7 and the missing X11 libraries issue went away. Our application was successfully compiled and ran.
 
  


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/ld: cannot find -lusb error?? Hyperion007 Linux - Newbie 5 07-25-2016 07:28 PM
echo $PATH = /home/g3rc4n/bin:/usr/local/bin:/usr/bin:/bin:/usr/games ? i_heart_pandas Linux - Software 7 09-18-2009 08:33 AM
I met an error : /usr/bin/ld: cannot find -lc deuxliquid Linux - Software 3 07-15-2009 04:12 PM
troubles compiling c++ on FC6: /usr/bin/ld: cannot find -lXm michael123 Programming 5 09-19-2008 11:55 AM
fedora 7 error: /usr/bin/ld: cannot find -lXext immortaltechnique Linux - Software 1 02-22-2008 04:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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