Message: /usr/bin/ld: cannot find -lXmu while making novice example N01(Ubuntu) Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question /usr/bin/ld: cannot find -lXmu while making novice example N01(Ubuntu) 

Keywords: Problem Example Novice N01 lXmu
Forum: Installation and Configuration
Date: 10 May, 2007
From: Eleonora Sarli <milkywaypv@yahoo.it>

Hello everyone! 
I have just installed Ubuntu Feisty Fawn on my laptop. 
I downloaded and installed geant4.8.2.p01.gtar.gz and 
clhep-2.0.3.1-slc4_ia32_gcc34.tgz,installed Mesa, Vrmlview, sourced 
env.sh, set G4INSTALL, G4SYSTEM, G4WORKDIR, CLEP_BASE_DIR,
LD_LIBRARY_PATH variables. When I write on terminal env | grep G4 I get:

G4LEVELGAMMADATA=/usr/local/geant4.8.2.p01/data/PhotonEvaporation2.0
G4INSTALL=/usr/local/geant4.8.2.p01
G4VIS_BUILD_VRML_DRIVER=1
G4LEDATA=/usr/local/geant4.8.2.p01/data/G4EMLOW4.2
G4RADIOACTIVEDATA=/usr/local/geant4.8.2.p01/data/RadioactiveDecay3.1
G4VIS_USE_DAWN=1
G4LIB=/usr/local/geant4.8.2.p01/lib
G4VIS_BUILD_RAYTRACERX_DRIVER=1
G4LIB_BUILD_SHARED=1
G4UI_USE_TCSH=1
G4LIB_USE_GRANULAR=1
G4VIS_USE_RAYTRACERX=1
G4SYSTEM=Linux-g++
G4VIS_BUILD_DAWN_DRIVER=1
G4WORKDIR=/usr/local/geant4.8.2.p01/examples/novice/N01
G4VIS_USE_VRML=1
NeutronHPCrossSections=/usr/local/geant4.8.2.p01/data/G4NDL3.10

which sounds good to me, but when I make the examples (novice/N01, for instance)
I get the following output:

Making dependency for file exampleN01.cc ...
Making dependency for file src/ExN01PrimaryGeneratorAction.cc ...
Making dependency for file src/ExN01PhysicsList.cc ...
Making dependency for file src/ExN01DetectorConstruction.cc ...
Compiling ExN01DetectorConstruction.cc ...
Compiling ExN01PhysicsList.cc ...
Compiling ExN01PrimaryGeneratorAction.cc ...
Creating shared library /usr/local/geant4.8.2.p01/examples/novice/N01/tmp/Linux-g++/exampleN01/libexampleN01.so ...
/usr/bin/ld: cannot find -lXmu
collect2: ld returned 1 exit status
make: *** [/usr/local/geant4.8.2.p01/examples/novice/N01/tmp/Linux-g++/exampleN01/libexampleN01.so] Error 1

I looked for a directory called /usr/bin/ld but I cannot find it. 
On the other hand, I have in /usr/lib two links called libXmu.so.6, libXmuu.so.1
and two shared libraries called libXmu.so.6.2.0 and libXmuu.so.1.0.0.Do they
have anything to do with my missing lXmu? 
I'm a total newbie and honestly I don't really know how to fix it. Is it
possible that my problem resides in not having Scientific Linux? Should 
I install it instead of Ubuntu? Or, maybe, is there just a mistake 
somewhere in the installation process of Geant4?
Thanks so much for your help!
Eleonora Sarli

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: /usr/bin/ld: cannot find -lXmu while making novice example N01(Ubuntu)   (John Allison - 11 May, 2007)
(_ None: Re: /usr/bin/ld: cannot find -lXmu while making novice example N01(Ubuntu)   (Eleonora Sarli - 13 May, 2007)
(_ None: Re: /usr/bin/ld: cannot find -lXmu while making novice example N01(Ubuntu)   (Tom Roberts - 13 May, 2007)
(_ None: Re: /usr/bin/ld: cannot find -lXmu while making novice example N01(Ubuntu)   (Eleonora Sarli - 14 May, 2007)
(_ None: Re: /usr/bin/ld: cannot find -lXmu while making novice example N01(Ubuntu)   (Eleonora Sarli - 14 May, 2007)
(_ None: Re: /usr/bin/ld: cannot find -lXmu while making novice example N01(Ubuntu)   (Eleonora Sarli - 16 May, 2007)
 Add Message Add Message
to: "/usr/bin/ld: cannot find -lXmu while making novice example N01(Ubuntu)"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]