[gate-users] Re: gate-users Digest, Vol 19, Issue 15
Christian Wietholt
cwietholt at nhri.org.tw
Fri Oct 21 03:54:37 CEST 2005
Dear Sweta,
You might have to modify your env_gate.csh file. I least I had to,
to get rid of this message. I did several thing, but they seem a little
redundant.
I first suggest you make sure that the following lines point to the
directory with the file libCore.so
i.e. I had to place a "/root" after each "${ROOTSYS}/lib" occurance.
....
if (-d ${ROOTSYS}/lib/root) then
if ( ${?LD_LIBRARY_PATH} ) then
echo "Checking your LD_LIBRARY_PATH variable..."
echo $LD_LIBRARY_PATH | grep ${ROOTSYS}/lib/root > /dev/null
if ($status) then
echo " ==> OK: ${ROOTSYS}/lib/root added to your LD_LIBRARY_PATH"
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${ROOTSYS}/lib/root
else
echo " ==> OK: ${ROOTSYS}/lib/root is already in your LD_LIBRARY_PATH"
endif
else
echo " ==> ${ROOTSYS}/lib/root added to your LD_LIBRARY_PATH"
setenv LD_LIBRARY_PATH ${ROOTSYS}/lib/root
endif
else
echo "WARNING: there is no ${ROOTSYS}/lib/root directory"
echo " you should check that ROOT shared libraries are included in LD_LIBRARY_PATH"
endif
endif
....
Second, I put a new LD_LIBRARY_PATH statement in env_gate.csh right after
the initial setenv statements or I modified it, I am not sure anymore :
....
setenv G4INSTALL /usr/local/geant4.7.0.p01
setenv G4VERSION "7.0"
setenv GATEHOME /usr/local/gate_v2.2.0
if ( ${?LD_LIBRARY_PATH} ) then
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/usr/local/lib:/usr/lib:/usr/local/lib/root
else
setenv LD_LIBRARY_PATH /usr/local/lib:/usr/lib:/usr/local/lib/root
endif
....
again, pay attention that the PATH include the directory with libCore.so.
I hope this helps.
Christian
> ------------------------------
>
> Message: 4
> Date: Thu, 20 Oct 2005 12:01:25 +0100 (BST)
> From: Sweta <sweta_indbhavan at yahoo.co.in>
> Subject: [gate-users] usr_bin_ld error
> To: GATE users <gate-users at lphe1pet1.epfl.ch>
> Message-ID: <20051020110125.9222.qmail at web8404.mail.in.yahoo.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I get the following errors with gatev2.2.0. I sourced geant4 and gate env.csh and env_gate.csh files from shell script.
>
>
> when trying to make gate executable
>
> [sparker at GEANT4-2005 ~/gate_v2.2.0]$ make
>
> Using granular libraries ...
>
> Linking Gate ...
>
> /usr/bin/ld: cannot find -lCore
>
> collect2: ld returned 1 exit status
>
> make: *** [/home/sparker/bin/Linux-g++/Gate] Error 1
>
> ----------
>
> testing STIR library
>
> [sparker at GEANT4-2005 ~/STIR]$ make run_tests
>
> g++ -O3 -ffast-math -DNDEBUG -Wall -Wno-deprecated -I.
>
> est/test_Array.o -MMD -MP -c test/test_Array.cxx
>
> g++ -oopt/test/test_Array opt/test/test_Array.o opt/bu
>
> ck/recon_buildblock_registries.o opt/IO/IO_registrie
>
> istries.o opt/libstir.a -lm -lncurses
>
> opt/test/test_Array
>
> opt/test/test_Array: error while loading shared libraries:
>
> ch file or directory
>
> make: *** [run_test/test_Array] Error 127
>
> rm opt/test/test_Array
>
> -----------------
>
> with ecat library
>
> [sparker at GEANT4-2005 ~/ecat]$ make depend
>
> makedepend -Dunix -O -I. ./*.c ./lib_compress/*.c
>
> makedepend: warning: /usr/include/gnu/stubs.h: non-portable whitespace encount
>
> ered at line 7
>
> makedepend: warning: cannot open "./lib_compress/*.c"
>
>
>
> Also from Utilities directory within ecat directory
>
> [sparker at GEANT4-2005 ~/ecat/utils]$ make
>
> cc -O -I.. -o matlist ./matlist.c ../libecat.a -lrpcsvc -lnsl -lsocket -lm
>
> /usr/bin/ld: cannot find -lsocket
>
> collect2: ld returned 1 exit status
>
> make: *** [matlist] Error 1
>
>
>
> --------------
>
> when installing ROOT exe
>
> [sparker at GEANT4-2005 ~/root]$ make install
>
> Generating dictionary base/src/G__Base1.cxx...
>
> utils/src/rootcint_tmp -f base/src/G__Base1.cxx -c base/inc/TApplication.h base/inc/TApplicationImp.h base/inc/TAtt3D.h base/inc/TAttAxis.h base/inc/TAttFill.h base/inc/TAttLine.h base/inc/TAttMarker.h base/inc/TAttPad.h base/inc/TAttText.h base/inc/TBenchmark.h base/inc/TBrowser.h base/inc/TBrowserImp.h base/inc/TBuffer3D.h base/inc/TBuffer3DTypes.h base/inc/TBuffer.h base/inc/TCanvasImp.h base/inc/TColor.h base/inc/TComplex.h base/inc/TContextMenu.h base/inc/TContextMenuImp.h base/inc/TControlBarImp.h base/inc/TDatime.h base/inc/TDirectory.h base/inc/TEnv.h base/inc/TError.h base/inc/TException.h base/inc/TExec.h base/inc/TFile.h base/inc/TFolder.h base/inc/TFree.h base/inc/TGuiFactory.h base/inc/TInspectorImp.h base/inc/TKey.h base/inc/TKeyMapFile.h base/inc/TMapFile.h base/inc/TMath.h base/inc/TMD5.h base/inc/TMemberInspector.h base/inc/TMessageHandler.h base/inc/TNamed.h base/inc/TObject.h base/inc/TObjString.h base/inc/TPadView3D.h base/inc/TPluginManager.h base/inc/!
TPo
> int.h
> base/inc/TProcessID.h base/inc/TProcessUUID.h base/inc/TQCommand.h base/inc/TQConnection.h base/inc/TQObject.h base/inc/TRandom2.h base/inc/TRandom3.h base/inc/TRandom.h base/inc/TRealData.h base/inc/TRefCnt.h base/inc/TRef.h base/inc/TRegexp.h base/inc/TROOT.h base/inc/TStopwatch.h base/inc/TStorage.h base/inc/TString.h base/inc/TStringLong.h base/inc/TStyle.h base/inc/TSysEvtHandler.h base/inc/TSystemDirectory.h base/inc/TSystemFile.h base/inc/TSystem.h base/inc/TTask.h base/inc/TTime.h base/inc/TTimer.h base/inc/TUUID.h base/inc/TView.h base/inc/TVirtualFitter.h base/inc/TVirtualGL.h base/inc/TVirtualPadEditor.h base/inc/TVirtualPad.h base/inc/TVirtualPS.h base/inc/TVirtualUtil3D.h base/inc/TVirtualUtilHist.h base/inc/TVirtualUtilPad.h base/inc/TVirtualViewer3D.h base/inc/LinkDef1.h
>
> utils/src/rootcint_tmp: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
>
> make: *** [base/src/G__Base1.cxx] Error 127
>
> -----------------------
>
>
>
> I must admit that the previous time I installed, the gate files were corrupt and the env files assumed different names for G4WORKDIR. Hence I reinstalled geant4 and GATE again and now I check the variables everytime I login.
>
>
>
> I have installed the following on my system
>
> gcc3.4.4
>
> make 3.80
>
> geant4.7.0.p01
>
> CLHEP 1.8.1.0
>
> AIDA 3.2.1
>
> MesaGL 6.3.2
>
> STL
>
> LMF 2[1].0
>
> ROOT 4.03.04
>
> STIR
>
> ECAT
>
>
>
> Thanks in advance.
>
>
>
> Sweta
>
>
>
> ---------------------------------
> Yahoo! India Matrimony: Find your partner now.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://lphe1pet1.epfl.ch/mailman/private/gate-users/attachments/20051020/c8fe56e8/attachment-0001.htm
>
> ------------------------------
>
More information about the Gate-users
mailing list