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 04-17-2009, 12:45 PM   #1
MilanK
LQ Newbie
 
Registered: Mar 2009
Posts: 7

Rep: Reputation: 0
configure: error: can't find Xm (motif) library


I'm trying to configure (install and run) a program on Red Hat Enterprise Linux WS release 4 (Nahant Update 7). The last section in my failing configure log file is:

checking for X... libraries /usr/X11R6/lib64, headers /usr/X11R6/include
checking whether -R must be followed by a space... neither works
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking X11/Intrinsic.h usability... yes
checking X11/Intrinsic.h presence... yes
checking for X11/Intrinsic.h... yes
checking for X11/Intrinsic.h... (cached) yes
checking Xm/Xm.h usability... yes
checking Xm/Xm.h presence... yes
checking for Xm/Xm.h... yes
checking for Xm/Xm.h... (cached) yes
checking if Xm.h defines XmSCROLL_HOR... yes
checking if GL/GLwDrawA.h can be found... yes
checking if GLw/GLwDrawA.h can be found... no
checking if X11/GLw/GLwDrawA.h can be found... no
checking for main in -lX11... yes
checking for main in -lXt... yes
checking for main in -lXmu... yes
checking for library containing _XmStrings... no
configure: error: can't find Xm (motif) library

Any suggestions on how best to proceed would be greatly appreciated. Thanks.
 
Old 04-17-2009, 01:48 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,301

Rep: Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168
You will have to install 'openmotif-devel'



.....
 
Old 04-17-2009, 04:29 PM   #3
MilanK
LQ Newbie
 
Registered: Mar 2009
Posts: 7

Original Poster
Rep: Reputation: 0
openmotif-devel already installed, get same configure error

Thanks for your response. I tried to install the openmotif-devel package but it seems it's already installed:

# up2date openmotif-devel
Fetching Obsoletes list for channel: rhel-x86_64-ws-4...
Fetching rpm headers...
Name Version Rel
----------------------------------------------------------
The following packages you requested are already updated:
openmotif-devel

I then tried to configure my program again but I got the same failure:

checking for Xm/Xm.h... (cached) yes
checking if Xm.h defines XmSCROLL_HOR... yes
checking if GL/GLwDrawA.h can be found... yes
checking if GLw/GLwDrawA.h can be found... no
checking if X11/GLw/GLwDrawA.h can be found... no
checking for main in -lX11... yes
checking for main in -lXt... yes
checking for main in -lXmu... yes
checking for library containing _XmStrings... no
configure: error: can't find Xm (motif) library

I'd very much appreciate any other suggestions you may have. Thanks very much.
 
Old 04-17-2009, 05:39 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,301

Rep: Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168
Sorry for misreading post #1.

Try 'rpm -ql openmotif-devel' to see that the required
libXm.so is in /usr/X11R6/lib64/ .

May be, you will have to make a symlink to /usr/lib64/
so it can be found ? ?

Difficult to answer, with "unknown application".
.....

Last edited by knudfl; 04-18-2009 at 10:52 AM.
 
Old 04-30-2009, 06:03 PM   #5
MilanK
LQ Newbie
 
Registered: Mar 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks again for your help. Turned out that I didn't have a 64-bit version of the openmotif-devel package installed. That, and when I tried to install that package my version of RedHat Linux said either that the package was already installed or that it was unavailable. I ended up forcing the installation using: $ up2date --arch=x86_64 -i openmotif-devel . My software packages from the CTBTO (Comprehensive Nuclear-Test-Ban Treaty Organization) now configure, compile and run!
 
Old 05-24-2015, 01:10 PM   #6
debguy
Member
 
Registered: Oct 2014
Location: U.S.A.
Distribution: mixed, mostly debian slackare today
Posts: 207

Rep: Reputation: 19
if you need libXm.so.2.n you can also just download source and do:

$ cd motif-2.5.0
$ ./configure [opts]
$ make
$ make install
$ ldconfig

(you dont have to use rpm or rh binaries and separate packages - which you do depends on what you find easier)

http://sourceforge.net/projects/motif250/

is Motif 2.n which works with more recent automake (year 2010+)

Motif , motif 2.0-2.2

Panner support is back and optional

GNU/configure now builds easy

Imake is back too, Everything builds Quality Assurance Tests QUATS
 
Old 05-24-2015, 01:22 PM   #7
debguy
Member
 
Registered: Oct 2014
Location: U.S.A.
Distribution: mixed, mostly debian slackare today
Posts: 207

Rep: Reputation: 19
^^ the above works if your automake is year 2010+, however if your linux distro customized things greatly - they might have broken it and also all other source code - meaning your forced to use their hacked version of all software.

now to answer question ,

$ mdir="`find / -name libXm.so`"
$ dir="`dirname $mdir`"

this means configure must create files that add "-L${mdir}" to any code that links against libXm.so

./configure --with-motif-dir=${dir}

First as always we say: make sure you have motif and motif-dev installed if your using "distro pkgs" (not the method shown above), the right ones from your OS (which may need to be backported - difficult - if your distro dropped suport for motif-ver that you need in their "recent release")

However - the configure may not have a --with-motif option to let you tell it where motif is. In that case you'll just have to Diy. read the configure script searching for motif, if you see no rules to contend with there, check the Makefile*, and see where it "hopes to find libXm"

you might see "-lXm" and "-L/usr/X11/lib"
you need "-lXm" and (mdir) "-L/usr/Motif/lib"

(but you may install motif anywhere, even /usr/lib, if you compiled it yourself, in which case you can tell it where to install where things are looking for it)

newer X.org uses pkgconfig however no motif source code currenly makes a motif.pc (see /usr/X11/lib/pkgconfig/*.pc). you can copy a similar .pc and make one but any configure looking for Motif will not check for it, since motif "doesnt make one"

--------------------
as far as "libXm" for other architecture - obviously if you have only a 64 binary for whichever app, then you need a corresponding lib64/foo.so , and if you dont you would need to find or make one
 
Old 05-24-2015, 04:35 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,019

Rep: Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455
debguy, this will be a bit difficult on

Red Hat Enterprise Linux WS release 4

rhel4 is end of life

there is no support from redhat for rhel4
( well some extra extended life support for CRITICAL security fixes until 2016)

and if someone is still running a RHEL4 server

it is WAY past time to upgrade to RHEL 6 or 7
 
  


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
configure: error: Library requirements (gtk+-2.0 >= 2.0.5) not met; cottonfever Linux - Newbie 2 08-18-2006 04:18 PM
configure: error: Qt (>= Qt 3.3 and < 4.0) (library qt-mt) not found jaygee02 Linux - Software 2 04-30-2006 11:59 PM
Configure can't find mad library martinlinuxuser Linux - Software 1 04-22-2005 03:00 PM
knoda configure error re: qt-mt library not found tr6boy Linux - Software 0 07-12-2004 10:21 PM
configure: error: Qt (>= Qt 3.1 (20021021)) (library qt-mt) not found Mugatu Linux - Software 14 12-15-2003 04:11 AM


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