LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 08-07-2008, 04:47 AM   #1
ko0nz
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Rep: Reputation: 0
[Library] libXm.so.3 missing


Hi,

I've just installed RHEL v4.7.
I was used to use "yum" to do everything...
And i'm not very good with "up2date" and "rpm"

I've have a missing library:
error while loading shared libraries: libXm.so.3: cannot open shared
object file: No such file or directory

So i've tried to install "openmotif".

# rpm -qa openmotif
openmotif-2.2.3-10.2.el4

# up2date openmotif

Fetching Obsoletes list for channel: rhel-x86_64-es-4...
########################################

Fetching rpm headers...

Name Version Rel
----------------------------------------------------------


The following packages you requested are already updated:
openmotif

So it existe the package but it can't find it...

what's the problem?

Thank you in advance for your help.
 
Old 08-07-2008, 09:54 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Looking at your post I thought about running a 32-bit application on a 64-bit system, but I checked and the openmotif package on RHEL 4 provides both the 32-bit and the 64-bit version of libXm.so.3. Can I ask you which application triggered the missing shared library error? If it is an ELF executable, can you try the following commands?
Code:
file /path/to/application
ldd /path/to/application
In particular the second one will check what shared objects are required by the executable and list them along with their absolute path. Then you can check if you're missing the library where it is expected to be.

You can also check the integrity of the installed openmotif package, using
Code:
rpm -V openmotif
 
Old 08-07-2008, 10:33 AM   #3
ko0nz
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Thank you.

But after looking for informations about the problem, i noticed that openmotif is finally installed...

For my library problem, i can't explain why it doesn't find the library.
I checked with the library presence:

# ldconfig
# ldconfig -p |grep -i libXm.so.3
libXm.so.3 (libc6) => /usr/X11R6/lib/libXm.so.3

and it's here but i get the same error:

$ et
Starting CADENCE/ET72/tools.lnx86/tb/tcl/main/guiMainForm.tcl
CADENCE/ET72/tools.lnx86/tb/bin/64bit/ILMserver: error while loading shared libraries: libXm.so.3: cannot open shared object file: No such file or directory

$ file et
Korn shell script text executable
$ ldd et
not a dynamic executable

Strange...
 
Old 08-07-2008, 10:45 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Uh, sorry but I did a mistake (indeed it sounded strange to me). Two different openmotif packages exist: the 32-bit version providing /usr/X11R6/lib/libXm.so.3 and the 64-bit version providing /usr/X11R6/lib64/libXm.so.3. You can verify if you have one of them or both installed using:
Code:
$ rpm -q --queryformat "%{NAME}.%{ARCH}\n" openmotif
openmotif.x86_64
openmotif.i386
The above is the output on my system with both versions installed. Then you can verify the shared objects required by the real binary executable, which is the file reported in the error line:
Code:
$ file CADENCE/ET72/tools.lnx86/tb/bin/64bit/ILMserver
$ ldd CADENCE/ET72/tools.lnx86/tb/bin/64bit/ILMserver
Looking at the path of the executable I suspect it is a 64-bit application and you have only the 32-bit version of openmotif. If this is the case you can try to install the 64-bit package using
Code:
# up2date openmotif.x86_64

Last edited by colucix; 08-07-2008 at 10:46 AM.
 
Old 08-08-2008, 07:51 AM   #5
ko0nz
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Original Poster
Rep: Reputation: 0
hi colucix,

Thank you for your help.

Yep, it seems that only the package for arch i386 is present:

Quote:
$ rpm -q --queryformat "%{NAME}.%{ARCH}\n" openmotif
openmotif.i386
and
Quote:
# up2date openmotif.x86_64
Fetching Obsoletes list for channel: rhel-x86_64-es-4...

Fetching rpm headers...

Name Version Rel
----------------------------------------------------------


The following packages you requested were not found:
openmotif.x86_64
Quote:
# uname -a
Linux srvtoto 2.6.9-78.ELsmp #1 SMP Wed Jul 9 15:46:26 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
yep, now i understand why it didn't work correctly because of the arch of the library.
The korn script search for libXm.so.3 for x86_64 arch and it existe only for the 1386 arch.

How could i installed openmotif the arch of x86_64 that seems it doesn't existe...

Thank you in advance.
 
Old 08-08-2008, 09:10 AM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Maybe you have to check the software repositories. I can confirm I have openmotif-2.2.3-10.2.el4 64-bit on a RHEL4 machine. Or eventually download it manually through your Red Hat Network account.
 
Old 08-11-2008, 01:03 PM   #7
ko0nz
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Original Poster
Rep: Reputation: 0
To force to install the package:

Quote:
# up2date --arch=x86_64 -i openmotif
Quote:
Fetching Obsoletes list for channel: rhel-x86_64-es-4...

Fetching rpm headers...
########################################

Name Version Rel
----------------------------------------------------------
openmotif 2.2.3 10.2.el4 x86_64


Testing package set / solving RPM inter-dependencies...
########################################
openmotif-2.2.3-10.2.el4.x8 ########################## Done.
Preparing ########################################### [100%]

Installing...
1penmotif ########################################### [100%]
 
Old 08-11-2008, 01:28 PM   #8
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Very good!
 
Old 10-13-2008, 05:37 PM   #9
jbottiger
LQ Newbie
 
Registered: Oct 2008
Location: Central FL
Posts: 21

Rep: Reputation: 0
Unable to execute Razor in RHEL-5.1

I was looking through your the messages within this thread and tried to execute the recommended statements. However, I have Red Hat Enterprise Linux 5.1 (RHEL-5.1) installed on my PC and just installed/configured Razor v5.2 (a configuration management tool consisting of three applications: issues, versions and threads).

I was able to activate the license and bring up Razor. However, when entering the statement:

"[appl] &", where [appl] is either "issues", "versions" or "threads"

I receive the following error message:

"error while loading shared libraries: libXm.so.3: cannot open shared object file: No such file or directory".

I performed an ldd command on the full path that each application resides and discovered that the libXm.so.3 and libXp.so.6 variables were missing. Further investigation revealed references to openmotif, which is not installed with RHEL-5.1. Please advise on what to do from here (I've been spinning my wheels on a task that should have been cut-and-dry to take only a day at most, but has taken me 3 days--AND I'M STILL NOT FINISHED SUCCESSFULLY!!!). Thank you.

John
 
Old 10-14-2008, 03:14 AM   #10
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
I do not have Red Hat Enterprise 5 for checking, but based on CentOS 5.2 it looks like the shared object libXm.so.3 is provided by a compatibility openmotif package, that is an older version of openmotif, since the current one provides libXm.so.4. On my system it is named openmotif22. Regarding libXp.so.6, it is provided by a package with the same name: libXp.
 
Old 05-24-2015, 12:49 PM   #11
debguy
Member
 
Registered: Oct 2014
Location: U.S.A.
Distribution: mixed, mostly debian slackare today
Posts: 207

Rep: Reputation: 19
newly compiled Motif (not lesstiff!!) by ?IST?redhat? (on sourceforge)

names itself libXm.so.3 3+ and is NOT COMPATIBLE with libXm.so.2

ie, xpdf, ddd (the wonderful gdb GUI front end) work with libXm.so.2.n not .so.3 unless you have hacked versions of (ddd) which are altered.

libXm.so.2.x has versions 0-3 and 2.3 should run 2.0 apps.

but so.3 runs ONLY newly compiled motif apps which look for .so.3 (ie, recompiling an Xm 2 app will many not mean it will work on Xm 3, not necessarily, it may still ask for Xm.so.2 - depends on Makefiles and etc)

(any pkgs / binaries compiled against lesstiff require lesstiff which is NOT motif compatible but steals the libXm.so name. you can fix either / run both using LD_LIBRARY_PATH, see ld(1) ). most old linux bins are lesstif ones but recompile them for Motif they work better than ever (lesstif has more bugs?)

there's an effort by ?ist? to add many features quickly to libXm (ie, more fonts, encryption, png) to turn it into a gnome-like library

that's good for future developement to rival java but, again, isn't useful at all for Motif products already released (2.n projects or products)

with iphone / X code , regnome: XFCE, java IDE, its unsure if "an improved libXm" will prevail in use anytime as Motif / X Designer or metrolink BXPRO IDE did.

for that reason - i'm unsure why they "needed to be incompatible with 2.0 - 2.3"

(that is, if you adding new features you CLEARLY HAVE THE CHOICE to rename hacked new features and let new software use the new names, so that existing software is not attacked)

Last edited by debguy; 05-24-2015 at 12:52 PM.
 
Old 05-24-2015, 12:57 PM   #12
debguy
Member
 
Registered: Oct 2014
Location: U.S.A.
Distribution: mixed, mostly debian slackare today
Posts: 207

Rep: Reputation: 19
here's what i do: i use 2.0'ish

http://sourceforge.net/projects/motif250/ (the one with new desktop panner)

and i recompile a few apps (just xpdf and ddd so far) (because my binaries use lesstiff)

the recompiled apps work nicely with real Motif

for libXm.so.3 , i have yet to download any source code that requires it

for libXm.so.3 i'd get motif-3.2.4 , which makes it , and have that installed as well
 
Old 05-24-2015, 04:37 PM   #13
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
if you are still using RHEL 4.7
you have a problem
only 4.9 is on extra life support
and you have to pay extra for it
and it is rhel4.9 only
 
  


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
libXm.so.3 missing Biosys Linux - Software 5 08-03-2008 11:32 PM
Loading libXm.so.3 shared library on a Linux server namatias Linux - Server 1 09-05-2007 01:30 PM
Missing Qt-mt library redhat_newbie Linux - Desktop 1 07-19-2007 06:27 AM
missing library kholdstayr Slackware 4 12-20-2003 04:56 PM
libXm.so.2 missing Rutnut Linux - Software 3 08-04-2002 02:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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