Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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!
^^ 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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.