Message: Re: GRAS -lgdml error Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: GRAS -lgdml error 

Forum: Installation and Configuration
Re: Question GRAS -lgdml error (Lisandro Martinez)
Date: 27 Jan, 2009
From: Paul Nicholas Colin Gloster <Paul Nicholas Colin Gloster>

On Mon, 26 Jan 2009, Lisandro Martinez sent:

|-----------------------------------------------------------------------------------|
|"I am trying to instal GRAS ( a geant4 application for space use), and I           |
|have finally completed most of the                                                 |
|                                                                                   |
|installation process and I am trying to do the final installation.                 |
|                                                                                   |
|As I do, I come across the following error:                                        |
|                                                                                   |
|      -n Copying libraries to /Applications/geant4work/gras-2.3/lib/Darwin-g++     |
|                                                                                   |
|       Using granular libraries ...                                                |
|                                                                                   |
|       Linking gras ...                                                            |
|                                                                                   |
|       ld: library not found for -lgdml                                            |
|                                                                                   |
|       collect2: ld returned 1 exit status                                         |
|                                                                                   |
|       make[1]: *** [/Applications/geant4work/gras-2.3/bin/Darwin-g++/gras] Error 1|
|                                                                                   |
|I am not sure the reason for this and I hope someone out there could               |
|give me a hand.                                                                    |
|                                                                                   |
|[..]"                                                                              |
|-----------------------------------------------------------------------------------|

Hello,

The -lgdml switch for the linker commands (viz. ld and collect2 ) was for linking GRAS (which you have been compiling) with a GDML library (which should had been compiled and installed already). Two possibilities exist: you had not installed a GDML library (in which case learn how to obtain it from HTTP://GDML.web.CERN.CH/GDML/ ) or a GDML installation is already present but somehow it was not found. Some ideas on how to let ld find it are to find the directory in which it is installed yourself then add this directory to the list of directories in the operating system environment variables named LIBRARY_PATH and LD_RUN_PATH and LD_LIBRARY_PATH (you might need different environment variables instead: these ones are for GNU/Linux and FreeBSD but MacOS X is based on FreeBSD). If you already have at least one other directory listed in one of those three environment variables, then place a colon ( : ) between directories' names. If you use the Bourne Again SHell (BASH) on MacOS, then use the export command instead of the set command to assign values to environment variables.

I have never installed a GDML library nor GRAS (but I am involved in space so if I find out what GRAS is then I might find it useful to install it myself) so there may be more specific ways to avoid the linking error (for example, specifiying the location of the GDML library installation during configuration before you invoke the compiler).

Regards, Colin Paul Gloster

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

1 None: Re: GRAS -lgdml error   (Paul Nicholas Colin Gloster - 29 Jan, 2009)
2 More: Re: GRAS -lgdml error   (Geng Chao - 20 Apr, 2011)
 Add Message Add Message
to: "Re: GRAS -lgdml error"

 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 ]