LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 01-31-2005, 06:29 PM   #1
cbranje
LQ Newbie
 
Registered: Jan 2005
Posts: 14

Rep: Reputation: 0
"libXm.so.3: cannot open shared object"


I get this error when I try and run a motif program. Even though in /etc/ld/so.conf
/usr/X11R6/lib exists where libXm.so.3 exists? PLEASE HELP!!! i'm pulling my hair out.

Carmen
 
Old 02-01-2005, 12:02 AM   #2
nixcraft
Member
 
Registered: Nov 2004
Location: BIOS
Distribution: RHEL3.0, FreeBSD 5.x, Debian 3.x, Soaris x86 v10
Posts: 379

Rep: Reputation: 30
You need this shared library. If it is installed then use LD_LIBRARY_PATH to define path.

Hope this helps.
 
Old 02-01-2005, 02:12 AM   #3
cbranje
LQ Newbie
 
Registered: Jan 2005
Posts: 14

Original Poster
Rep: Reputation: 0
How do I do thar?

How do I do thar? I'm using Mandrake 10
 
Old 02-01-2005, 05:46 AM   #4
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,458

Rep: Reputation: 98
Try install lesstiff or motif package for your mandrake

If you want to build it from source :
http://www.ist.co.uk/DOWNLOADS/motif_download.html

[edit]
as it seems present in your system, try:
export LD_LIBRARY_PATH=/usr/X11R6/lib

Then run your program

Last edited by keefaz; 02-01-2005 at 05:49 AM.
 
Old 02-01-2005, 07:17 AM   #5
cbranje
LQ Newbie
 
Registered: Jan 2005
Posts: 14

Original Poster
Rep: Reputation: 0
export $LD_LIBRARY_PATH WORKED!! but . .

.. but when I try running the program in another shell window, same thing it says lib.so.3 can't be found? Is there a more permentant/global solution?

Thank again
Carmen
 
Old 02-01-2005, 07:27 AM   #6
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,458

Rep: Reputation: 98
yes something like :

echo "export LD_LIBRARY_PATH=/usr/X11R6/lib" >> ~/.bashrc

So as ~/.bashrc is loaded when you open a new bash shell, LD_LIBRARY_PATH will
be exported
 
  


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 while loading shared libraries: libdb-4.1.so: cannot open shared object file putquery8581 Linux - Software 1 10-01-2004 07:03 AM
LDAP object classes: cn=admin, why "simpleSecurityObject" and "organizationalRole&quo Hko Linux - Networking 0 08-06-2004 07:55 AM
Not loading gdm;"libX11.so.6 cannot open shared object" zlobby Linux - Newbie 6 03-03-2004 04:30 PM
/usr/libexec/ld-elf.so.1: Shared object "libgd.so.4" not found lxxy *BSD 1 12-04-2003 12:01 PM
Can't locate object method "splitpath" via package "File::Spec" RobJohnston Linux - General 2 06-28-2003 09:59 AM


All times are GMT -5. The time now is 12:03 PM.

Main Menu
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