読者です 読者をやめる 読者になる 読者になる

Geant4 9.3p01 で $G4INSTALL/env.sh が吐く warning

Geant4 Mac

Snow Leopard に Geant4 9.3p01 を先日入れたところ、~/.zshrc で $G4INSTALL/env.sh を読み込むたびに warning を吐くようになりました。

DYLD_LIBRARY_PATH is set to include CLHEP and Geant4 libraries.
 NOTE : you should verify that the correct path for the CLHEP library

 /usr/local/clhep/lib

 is included in the dynamic library search path ahead of any other
 installations of CLHEP on your system that may be referenced by this
 path.

この warning が言うような DYLD_LIBRARY_PATH の設定はしておらず、これは Geant4 側での処理が間違っているようです。$G4INSTALL/env.sh の以下の部分を全て comment out してしまえば OK です。怒られなくなります。

#
# Warning about LD_LIBRARY_PATH
#
echo ''
if [ $G4LIB_BUILD_SHARED ] ; then
    if test "X$G4SYSTEM" = "XDarwin-g++" ; then
        echo 'DYLD_LIBRARY_PATH is set to include CLHEP and Geant4 libraries. '
    else
        echo 'LD_LIBRARY_PATH is set to include CLHEP and Geant4 libraries. '
    fi
else
    if test "X$G4SYSTEM" = "XDarwin-g++" ; then
        echo 'DYLD_LIBRARY_PATH is set to include CLHEP libraries. '
    else
        echo 'LD_LIBRARY_PATH is set to include CLHEP libraries. '
    fi
fi
echo 'NOTE : you should verify that the correct path for the CLHEP library'
echo ''
echo ${CLHEP_BASE_DIR}/lib
echo ''
echo 'is included in the dynamic library search path ahead of any other'
echo 'installations of CLHEP on your system that may be referenced by this'
echo 'path.'
echo ''