Message: Re: Error while loading shared libraries Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Error while loading shared libraries 

Forum: Documentation and Examples
Re: None Error while loading shared libraries (Arewa)
Date: 19 Jan, 2009
From: Paul Nicholas Colin Gloster <Paul Nicholas Colin Gloster>

On Fri, 16 Jan 2009, Arewa wrote:

|-----------------------------------------------------------------------|
|"I'm working on the geant4 nder vimwar. During the comlpilation of th  |
|example N03 and all the other examples, I have found this worring:     |
|                                                                       |
|/usr/bin/ld: warning: libXm.so.4, needed by                            |
|/home/local1/geant4/work/tmp/Linux-g++/exampleN03/libexampleN03.so, not|
|found (try using -rpath or -rpath-link) ... Done!"                     |
|-----------------------------------------------------------------------|

It seems that the computer might be missing a Motif library, or that you have not set an option for the operating system to find it.

|-----------------------------------------------------------------------|
|"Then when I was executing this example I found:                       |
|                                                                       |
|/home/local1/geant4/work/bin/Linux-g++/exampleN03: error while loading |
|shared libraries: libexampleN03.so: cannot open shared object file: No |
|such file or directory                                                 |
|                                                                       |
|[..]"                                                                  |
|-----------------------------------------------------------------------|

This would also be a problem of not finding a library, but is more serious. Unfortunately the Configure script does not clearly advise that the instructions on HTTP://Geant4.web.CERN.CH/geant4/UserDocumentation/UsersGuides/InstallationGuide/html/ch02s02.html should be read. However env.sh is not completely satisfactory, such that you might find it easier to run the example if you also copy the file libCLHEP-2.0.4.2.so into the same directory which contains the file exampleN03 .

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

1 None: Re: Error while loading shared libraries   (Paul Nicholas Colin Gloster - 19 Jan, 2009)
 Add Message Add Message
to: "Re: Error while loading shared libraries"

 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 ]