LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-17-2008, 05:46 PM   #1
michael123
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Rep: Reputation: 0
troubles compiling c++ on FC6: /usr/bin/ld: cannot find -lXm


Hi all,

This is my first post- I hope I'm putting it in the right place. I'm trying to compile an example c++ program. I don't know exactly which version of gcc I'm using .. it's whatever came with FC6. When I compile the output is:
Quote:
[Beowulf@localhost A01]$ make clean
Cleaning up ...
[Beowulf@localhost A01]$ make
Making dependency for file A01app.cc ...
.
.
.
Compiling A01Trajectory.cc ...
Creating/replacing object files in /home/Beowulf/g4work/tmp/Linux-g++/A01app/libA01app.a ...
ar: creating /home/Beowulf/g4work/tmp/Linux-g++/A01app/libA01app.a
Compiling A01app.cc ...
Using granular libraries ...
Linking A01app ...
/usr/bin/ld: cannot find -lXm
collect2: ld returned 1 exit status
make: *** [/home/Beowulf/g4work/bin/Linux-g++/A01app] Error 1
I've scoured this website and google to no avail. A lot of people have a similar problem but the solutions (slightly modified for -lXm) don't seem to work. I saw on one post to install libXp-devel. I did such by using:
Quote:
[root@localhost bin]# yum install libXp-devel
I've also installed compat-libstdc++-33 to combat another install error by typing:
Quote:
[root@localhost ~]# yum install compat-libstdc++-33
I got the idea from another thread to try installing libXm.so.3. I typed and got in response:
Quote:
[root@localhost usr]# yum whatprovides libXm.so.3
Loading "priorities" plugin
Loading "installonlyn" plugin
No Matches found
As per another suggestion I have tried to install openmotif (honestly, I don't know what this is).

I'm a fairly new Linux user and have no more ideas of what to do. Any thoughts? I'm hope I included all the needed information .. if not I'll be happy to include more.

Thanks in advance!
 
Old 09-17-2008, 06:06 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,646

Rep: Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654
fedora 6 past it's END OF LIFE long ago
the repos for fedora 6 were RETIRED 1.5 years ago .That means that yum NO LONGER will work on fedora 6
all updates including all dev tools and lib like libXp,libstdc++-33 MUST be built from the source
you might as well do this
Code:
rpm -e yum
because yum is useless on fedora 6
PS. fedora 10 is due in about 1 to 2 months
 
Old 09-18-2008, 12:43 PM   #3
michael123
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Original Poster
Rep: Reputation: 0
#1) For what it's worth, I made a mistake. I'm running FC7. This is a company computer constantly running Monte Carlo simulations and I cannot upgrade the OS at a whim.

#2) Does anyone have any useful suggestions?

Thanks!
 
Old 09-18-2008, 01:34 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,646

Rep: Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654
the same thing applies for fedora 7 as 6
fedora 7 is also past it's end of life
Build all new code for fedora 7 from the source .Because yum will no longer work.
 
Old 09-19-2008, 11:53 AM   #5
michael123
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Original Poster
Rep: Reputation: 0
How do I install the appropriate files off of the CD? I can't even figure out which files I need...
 
Old 09-19-2008, 12:55 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,646

Rep: Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654
pop the first cd( you will need all 6) in and from your desktop go to


Applications / Add and remove software ,click on that and enter your root password in the prompt .Then on the left side of the window click on Development ,then on the right side window put a check in "Development Libraries", "Development Tools","Gnome Software Development","Legacy Software Development ", X software Development" and click the " apply" button .
then put in the correct cd as it is asked for
this should get you most of the things you need
 
  


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
Error compiling PHP: /usr/bin/ld: cannot find -lltdl nyheat Linux - Server 4 09-16-2009 03:40 PM
Compiling error /usr/bin/ld: cannot find -ltclstub84 OlRoy *BSD 7 01-26-2007 05:24 PM
Compiling Evas (E17) - /usr/bin/ld: cannot find -lvga victorhooi Linux - Software 1 10-20-2005 05:33 PM
Is '/usr/bin/find' reliable if '/bin/ls' has been replaced? DigaMe Linux - Security 2 11-12-2004 11:42 PM
error compiling cdrtools on kernel 2.6.0: /usr/bin/ld: cannot find -lscg qanopus Linux - Software 1 12-21-2003 09:15 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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