李繼飛做的GATE安裝指南_第1頁
李繼飛做的GATE安裝指南_第2頁
李繼飛做的GATE安裝指南_第3頁
李繼飛做的GATE安裝指南_第4頁
李繼飛做的GATE安裝指南_第5頁
已閱讀5頁,還剩8頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

1、為了使用pet仿真平臺,我裝了大約一周,主要是中間出現(xiàn)各種問題,幸好可以借助google,baidu,以及那些先賢們的blog,終于歷盡千辛萬苦,成功攻克這一難題,僅以此文幫助那些后來者,本文包括如何安裝clhep,安裝geant4,安裝root等等。其中g(shù)eant4部分主要借鑒了這樣一篇文章在ubuntu10.04.1下安裝geant4作者陶仕達(dá)等??傮w來說pet仿真平臺的安裝更需要以下幾篇文章基于 gate 的 pet 仿真環(huán)境的實現(xiàn)與應(yīng)用-張斌以及官網(wǎng)下載的gateinstallation guide。另外文中很多問題是我遇到的,希望可以幫助你們!2012.07.19上海大學(xué)430實驗室

2、-李繼飛我開始是用的ubtuntu10.04.1版本,把仿真平臺裝好后又升級到unbuntu12.04 lts版本,我升級后發(fā)現(xiàn)一個問題,新版本的新立得包管理器竟然找不到從哪里用,恕我不才,至今不會用。所以老老實實的按照在ubuntu10.04.1下安裝geant4來做就可以,等一切ok之后,再升級到ubuntu 12.04 lts版本。有的地方需要用管理員權(quán)限#來安裝,否則會因權(quán)限不夠,導(dǎo)致出現(xiàn)錯誤,到時候用命令sudo-i進(jìn)入root#第一、安裝gate運行所必須的支撐庫文件即安裝基本編譯環(huán)境:1. 安裝基本編譯環(huán)境sudo apt-get install build-essential2

3、.安裝 opengl librarysudo apt-get install libgl1-mesa-dev3. 安裝 opengl utilitiessudo apt-get install libglu1-mesa-dev4. 安裝 sudo apt-get install libxt-dev不裝這個包在編譯 geant4 時會報 error: x11/intrinsic.h: no such file or directory 的錯誤。5. 安裝 libxmu。打開新立得軟件包管理器,查找 libxmu。把找到的七項全裝上。(這里ubuntu10.04.1就有新立得包管理器,而12.04

4、就不能用,不知道為什么?)6. 安裝 sudo apt-get install libxi-dev7. 確認(rèn)系統(tǒng)已經(jīng)安裝了gcc:(ubuntu默認(rèn)是已經(jīng)安裝的,我們這里只是確認(rèn)一下它是哪個版本的,不太低就好)gcc -v第二、配置root運行的相關(guān)文件庫,尤其是系統(tǒng)字體庫,否則后面運行root時會出現(xiàn):couldnt find font -adobe-helvetica-medium-r-*-*-10-*-*-*-*-*-iso8859-1,trying fixed. please fix your system so helvetica can be found,this font typ

5、ically is in the rpm (or pkg equivalent) packagexfree86-75,100dpi-fonts or fonts-xorg-75,100dpi,這個問題我可是費了好大功夫才解決,這里特別感謝遠(yuǎn)在海外的邵立晶博士的指導(dǎo)!1. install xfs and xfstt:命令為 sudo apt-get install xfs xfstt2. install the following fonts: 命令為sudo apt-get install t1-xfree86-nonfree ttf-xfree86-nonfree ttf-xfree86-n

6、onfree-syriac xfonts-75dpi xfonts-100dpi 也就是下面四個系統(tǒng)字體 t1-xfree86-nonfree 即- non-free postscript type 1 fonts from xfree86 ttf-xfree86-nonfree 即- non-free truetype fonts from xfree86 ttf-xfree86-nonfree-syriac 即- non-free syriac opentype fonts from xfree86 xfonts-75dpi 即- 75 dpi fonts for x xfonts-100

7、dpi 即- 100 dpi fonts for x第三、安裝clhep,血淋淋的教訓(xùn)呀!一定要一開始就把它裝在geant4(我自己新建的文件夾)這個文件夾下到以下網(wǎng)站下載 clhep 數(shù)據(jù)包。http:/proj-clhep.web.cern.ch/proj-clhep/distribution/clhep.html,我下載的是版本1把下載的數(shù)據(jù)包放到某個文件夾例如home/fei/geant42解壓clhep-.tgzcd /home/fei/geant4tar -zxvf clhep-.tgz成功安裝會顯示/clhep/vector

8、/configure/clhep/config.guess/clhep/config.sub/clhep/makefile.in/clhep/configure3 進(jìn)入你解壓出來的文件夾配置環(huán)境。命令如下:首先獲取權(quán)限,因為是make和make install需要權(quán)限sudo -icd /home/fei/geant4//clhep./configure -prefix=/home/fei/geant4/clhep(這個地方要根據(jù)你想把clhep所裝的位置來設(shè)置,這里的clhep是運行命令后自動產(chǎn)生的新目錄,也就是我們的cl

9、hep安裝目錄,一會會用到該目錄,注意絕對不能是//clhep,否則會出錯),大約一分鐘成功安裝會顯示config.status: creating test/exctest4.shconfig.status: creating test/exctestnothrow.shconfig.status: creating test/excdblthrow.shconfig.status: creating exceptions/defs.hconfig.status: executing depfiles commands4 編譯clhepmake大約三分鐘,成功編譯會顯示rm -

10、f libclhep-.aliblist=./getobjectlist -static units vector evaluator genericfunctions geometry random matrix randomobjects cast refcount exceptions; ar cru libclhep-.a $liblist; ranlib libclhep-.arm -f libclhep-.soliblist=./getobjectlist -shared units vector evaluator gene

11、ricfunctions geometry random matrix randomobjects cast refcount exceptions; g+ -o -ansi -pedantic -wall -d_gnu_source -g -o2 -o libclhep-.so -shared -wl,-no-undefined -wl,-soname,libclhep-.so $liblist -o libclhep-.so./build-headermake1:正在離開目錄 /home/fei/geant4//clhep5 安裝cl

12、hepmake install成功安裝會顯示test -z /home/fei/geant4/clhep/include/clhep | mkdir -p - /home/fei/geant4/clhep/include/clhepif test -f clhepversion.h; then echo /usr/bin/install -c -m 644 clhepversion.h /home/fei/geant4/clhep/include/clhep/clhepversion.h; /usr/bin/install -c -m 644 clhepversion.h /home/fei/

13、geant4/clhep/include/clhep/clhepversion.h; else :; fi /usr/bin/install -c -m 644 clhepversion.h /home/fei/geant4/clhep/include/clhep/clhepversion.hmake2: 沒有什么可以做的為 install-data-am。(這一句沒有關(guān)系,呵呵,看到也不要擔(dān)心)make2:正在離開目錄 /home/fei/geant4//clhepmake1:正在離開目錄 /home/fei/geant4//clhep這樣,我在/home/fei

14、/geant4/clhep目錄里看到include和lib兩個目錄,表示clhep安裝成功。那么我的clhep安裝路徑就是/home/fei/geant4/clhep,到時我們會用到這個路徑注意用命令exit退出終端第四、下載安裝geant4重新進(jìn)入終端1. 到以下網(wǎng)站下載你所需的數(shù)據(jù)包 。http:/geant4.web.cern.ch/geant4/,在soucefiles選擇所需版本2. 解壓 geant4.9.3.p02.tar.gz。把下載的壓縮包解壓到某一個文件夾。cd /home/fei/geant4tar -zxvf geant4.9.3.p02.tar.gz成功解壓會顯示ge

15、ant4.9.3.p02/source/visualization/modeling/src/g4trajectoryparticlefilter.ccgeant4.9.3.p02/source/visualization/modeling/src/g4vmodel.ccgeant4.9.3.p02/source/visualization/modeling/src/g4vtrajectorymodel.ccgeant4.9.3.p02/source/visualization/modeling/src/g4vistrajcontext.cc3. 另外在data里下載各種data files(

16、我是下載了所有的data files ,管它是干什么用的呢),在你 geant4.9.3.p02 文件夾里新建一個名為data 的文件夾,把下載的 g4emlow.6.9.tar.gz等數(shù)據(jù)包(我下載了7個包)放進(jìn)去,逐個解壓(其他數(shù)據(jù)包同理)。解壓命令如下:cd /geant4.9.3.p02/datatar -zxvf g4emlow.6.9.tar.gz然后重復(fù),一直把這七個包都解壓完。成功解壓會顯示g4emlow6.9/tripdata/pp-trip-cs-95.datg4emlow6.9/tripdata/pp-trip-cs-96.datg4emlow6.9/tripdata/p

17、p-trip-cs-97.datg4emlow6.9/tripdata/pp-trip-cs-98.datg4emlow6.9/tripdata/pp-trip-cs-99.dat接著逐個解壓其他的data文件4. 配置環(huán)境:進(jìn)入 geant4.9.3.p02 文件夾配置環(huán)境。命令如下:cd /home/fei/geant4/geant4.9.3.p02./configure -build回答問題。輸入以上兩條命令按回車后,你將在終端被問一系列問題,除以下兩個問題外,全部采用默認(rèn)設(shè)置。問題一:when it asks:enable building of the x11 opengl visu

18、alization driver? nenter: ythis tells geant4 that you want to include the optional opengl visualizationdriver.問題二:when it asks:enable building of the x11 raytracer visualization driver? nenter: ythis tells geant4 that you want to include the optional raytracerx visualizationdriver.如果問找不到clhep,則手動輸入為

19、/home/fei/geant4/clhep,也就是包括lib和inclde文件的那個目錄其他的就一頓enter就可以,只要出問題答案不對,它會提示你的,而且就自動停止,直到你解決問題。問題回答完后,終端將顯示如下內(nèi)容press enter to start installation or use a shell escape to editconfig.sh:5. 安裝geant4 按下回車,開始安裝,這時在終端可以看到now starting geant4 libraries build.當(dāng)你看到以下內(nèi)容的時候,我又要恭喜你,你的編譯已經(jīng)成功開始了。內(nèi)容如下:compiling g4all

20、ocatorpool.cc .即使看到一大堆warning也不要緊,它是由gcc編譯器本身引起的,直接忽視,不會有影響的!6. 安裝成功,繼續(xù)等上個 40 分鐘左右,如果你看到以下內(nèi)容的話,恭喜你,你的 geant4 至此已經(jīng)安裝成功了。當(dāng)然你不必坐在電腦前干等,插上電源線,趁機(jī)去洗個衣服或吃個飯什么的都行。大爺?shù)模以趺礇]早看到,白白坐了半天。另外務(wù)必注意,不要隨便動終端,血的教訓(xùn)呀,我裝了大概30分鐘時,切換qq,不知怎么回事鼠標(biāo)切到終端里了,結(jié)果悲劇呀編譯暫停,害我又重新裝了40分鐘!安裝成功會顯示:# your geant4 installation seems to be succe

21、ssful! # to be sure please have a look into the log file: # /home/fei/geant4/geant4.9.3.p02/.config/bin/linux-g+/g4make.log #第五、運行應(yīng)用程序1. 創(chuàng)建geant4腳本,命令如下./configure會看到以下內(nèi)容 - geant4 toolkit installation - (setting environments for user )-the geant4 toolkit installation was found.the files env.csh will

22、 be copied to your current directory.for setting geant4 environments you should make:source env.cshor. env.shit will also check g4workdir setting and set it toyour home if needed.you can use these files also for further modifications(adding your own environments).-這樣,你將在home/fei/geant4/geant4.9.3.p0

23、2目錄下看到兩個文件env.sh 和 env.csh 兩個文件2. 創(chuàng)建geant4工作目錄:首先創(chuàng)建一個文件夾命名為g4work,注意不要放在geant4的安裝目錄geant4.9.3.p02里。g4work將作為我們geant4的工作目錄,這樣做是為了防止破壞原始geant4的安裝目錄。在終端命令如下export g4workdir=/home/fei/geant4/g4work3. 把應(yīng)用程序復(fù)制到工作目錄:這里選擇a01,直接在終端敲入命令如下cp -r /home/fei/geant4/geant4.9.3.p02/examples/extended/analysis/a01 $g4

24、workdir/a01,這里務(wù)必要注意$前面有一個空格,否則會出現(xiàn)cp: 在/home/fei/geant4/geant4.9.3.p02/examples/extended/analysis/a01/home/fei/g4work/a01 后缺少了要操作的目標(biāo)文件請嘗試執(zhí)行cp -help來獲取更多信息。完成以后,我們在/home/fei/g4work就可以看到復(fù)制的應(yīng)用文件a01.4. 配置應(yīng)用程序運行環(huán)境。注意,每次在一個新終端運行應(yīng)用程序時你都應(yīng)該做這一步。命令如下:export g4workdir=/home/fei/geant4/g4workexport ld_library_pa

25、th=/home/fei/geant4/clhep/lib/:$ld_library_pathsource /home/fei/geant4/geant4.9.3.p02/env.sh備注(我們裝geatn4其實是為了一會裝應(yīng)用gate-v6.1,所以配置環(huán)境變量這一步以后用gate的時候不用每次在終端輸入,到時有專門的環(huán)境配置文件來做,一會就會講到。不過這里我們來檢驗geatn4是否安裝成功的時候,還是需要每次都這樣做的。)it will respond:on this machine the g4system=linux-g+on this machine the g4install=/h

26、ome/fei/geant4/geant4.9.3.p02on this machine the g4lib=/home/fei/geant4/geant4.9.3.p02/libon this machine the g4levelgammadata=/home/fei/geant4/geant4.9.3.p02/data/photonevaporation2.0on this machine the g4radioactivedata=/home/fei/geant4/geant4.9.3.p02/data/radioactivedecay3.2on this machine the g4

27、ledata=/home/fei/geant4/geant4.9.3.p02/data/g4emlow6.9on this machine the g4neutronhpdata=/home/fei/geant4/geant4.9.3.p02/data/g4ndl3.13on this machine the g4abladata=/home/fei/geant4/geant4.9.3.p02/data/g4abla3.0on this machine the g4realsurfacedata=/home/fei/geant4/geant4.9.3.p02/data/realsurface1

28、.0on this machine the clhep_base_dir=/home/fei/geant4/clhepon this machine the clhep_include_dir=/home/fei/geant4/clhep/includeon this machine the clhep_lib_dir=/home/fei/geant4/clhep/libon this machine the clhep_lib=clhepon this machine the g4ui_use_tcsh=1on this machine the g4vis_build_openglx_dri

29、ver=1on this machine the g4vis_build_raytracerx_driver=1on this machine the g4vis_use_openglx=1on this machine the g4vis_use_raytracerx=1on this machine the xmflags=on this machine the xmlibs=on this machine the xmflags=on this machine the xawflags=on this machine the xawlibs=on this machine the g4l

30、ib_build_shared=15. 編譯程序,進(jìn)入你的應(yīng)用程序文件夾編譯程序,終端輸入命令cd $g4workdir/a01make如果成功則顯示creating shared library /home/fei/geant4/g4work/tmp/linux-g+/a01app/liba01app.so .compiling a01app.cc .using global libraries .linking a01app. done!6. 運行生成的可執(zhí)行文件。命令如下:$g4workdir/bin/linux-g+/a01app你將在終端看到如下內(nèi)容:chamber2physical

31、0 chamber2logical 1 argongas wireplane2physical0 wireplane2logical 0 argongas /chamber2 chamber2physical1 chamber2logical 1 argongas wireplane2physical0 wireplane2logical 0 argongas /chamber2 chamber2physical2 chamber2logical 1 argongas wireplane2physical0 wireplane2logical 0 argongas /chamber2 cham

32、ber2physical3 chamber2logical 1 argongas wireplane2physical0 wireplane2logical 0 argongas /chamber2 chamber2physical4 chamber2logical 1 argongas wireplane2physical0 wireplane2logical 0 argongas /chamber2 emcalorimeterphysical0 emcalorimeterlogical 1 csi cellphysical-1 celllogical 0 csi /emcalorimete

33、r hadcalorimeterphysical0 hadcalorimeterlogical 1 lead hadcalcolumnphysical-1 hadcalcolumnlogical 1 lead hadcalcellphysical-1 hadcalcelllogical 1 lead hadcallayerphysical-1 hadcallayerlogical 1 lead hadcalscintiphysical0 hadcalscintilogical 0 scintillator /hadcalorimeteridle 7. 打開視窗,查看你定義的幾何模型。即在“id

34、le”后輸入以下命令:/vis/open oglix/vis/drawvolume你將在一個新窗口看到如下圖形,這里省略了。8. 查看粒子徑跡和粒子碰撞過程。即在終端繼續(xù)輸入如下命令:/vis/scene/add/trajectories/vis/scene/add/hits/run/beamon 1圖略9. 運行完畢退出,命令:exit第六、安裝root(這幾個是我在root網(wǎng)張上看得,說是安裝root需要的一些基本編譯環(huán)境,所以我就安裝了,具體什么用我也不清楚,貌似沒多大用處,因為本身ubuntu里已經(jīng)默認(rèn)安裝好了大部分)sudo apt-get install subversionsud

35、o apt-get install libx11-devsudo apt-get install libxpm-devsudo apt-get install libxft-devsudo apt-get install libxext-dev1. 到下述網(wǎng)站下載root安裝包http:/root.cern.ch/drupal/,我下載的是root_v5.34.01.source.tar.gz,而并不用binary版本一是因為太大,二是因為安裝好像不太方便。把安裝包放到/home/fei/geant4中2. 打開終端輸入,并解壓文件cd /home/fei/geant4tar -xvzf ro

36、ot_v5.34.01.source.tar.gz3. 編譯獲取權(quán)限sudo -icd /home/fei/geant4/root_v5.34.01(這里我把解壓后產(chǎn)生的文件夾root重命名為root_v5.34.01,這是為了下一步預(yù)編譯產(chǎn)生一個新的root安裝目錄)./configure -prefix=/home/fei/geant4/root(注意這里為什么更改root為root_v5.34.01呢?原因是安裝目錄和解壓后的文件目錄如果放在一塊,會發(fā)生錯誤庫文件調(diào)用,引起很大的麻煩)成功會顯示enabled support for asimage, astiff, builtin_af

37、terimage, builtin_ftgl, builtin_glew, builtin_pcre, builtin_lzma, cintex, explicitlink, genvector, memstat, opengl, reflex, shadowpw, shared, tmva, x11, xft, xml.to build root type: make make install4. make大約30分鐘,如順利則顯示cp /home/fei/geant4/root_v5.34.01/cint/reflex/python/genreflex/genrootmap.py lib/

38、python/genreflex/genrootmap.pycp /home/fei/geant4/root_v5.34.01/cint/reflex/python/genreflex/selclass.py lib/python/genreflex/selclass.py = = root build successful. = = run make install now. = =5. make install成功會顯示 = = root build successful. = = run make install now. = =installing binaries in /home/

39、fei/geant4/root/bininstalling libraries in /home/fei/geant4/root/lib/rootinstalling headers in /home/fei/geant4/root/include/rootinstalling /home/fei/geant4/root_v5.34.01/main/src/rmain.cxx in /home/fei/geant4/root/include/rootinstalling cint/cint/include cint/cint/lib and cint/cint/stl in /home/fei

40、/geant4/root/lib/root/cintinstalling icons in /home/fei/geant4/root/share/root/iconsinstalling fonts in /home/fei/geant4/root/share/root/fontsinstalling misc docs in /home/fei/geant4/root/share/doc/rootinstalling tutorials in /home/fei/geant4/root/share/doc/root/tutorialsinstalling tests in /home/fe

41、i/geant4/root/share/doc/root/testinstalling macros in /home/fei/geant4/root/share/root/macrosinstalling man(1) pages in /home/fei/geant4/root/share/man/man1installing config files in /etc/rootinstalling autoconf macro in /home/fei/geant4/root/share/aclocalinstalling emacs lisp library in /home/fei/g

42、eant4/root/share/emacs/site-lispinstalling gdml conversion scripts in /home/fei/geant4/root/lib/root6. 配置root環(huán)境變量add bin/ to path and lib/ to ld_library_path.即添加路徑,直接在終端輸入下列命令:. bin/thisroot.sh(注意是. bin/thisroot.sh,里面有個點)退出終端重新進(jìn)入7. 運行root看是否成功安裝source /home/fei/geant4/root/bin/thisroot.shroot會看到 fei

43、ubuntu:$ source /home/fei/geant4/root/bin/thisroot.shfeiubuntu:$ root * * * * w e l c o m e to r o o t * * * * version 5.34/01 13 july 2012 * * * * you are welcome to visit our web site * * http:/root.cern.ch * * * *root 5.34/01 (tags/v5-34-0145048, jul 13 2012, 15:31:31 on linux)cint/root c/c+ inte

44、rpreter version 5.18.00, july 2, 2010type ? for help. commands must be c+ statements.enclose multiple statements between .root 0 強(qiáng)制關(guān)掉終端開始下一步第七、安裝gate1.首先安裝ecat和lmf(什么用處,目前我還不知道),下載/installinggate放到文件夾geant4中后,解壓縮,命令:cd /home/fei/geant4tar -xvzf ecat.tar.gzsudu -icd

45、 /home/fei/geant4/ecatmake會看到 ar r libecat.a crash.o make3dfilter.o makefilter.o matpkg.o matrix_extra.o matrix.o matrix_xdr.o sino_dets.o machine_indep.o matrix_64.o convert_64.o convert_70.o rts_cmd.o rfa_xdr.o matrix_slice.o ecat_model.o plandefs.o interfile.o analyze.o num_sort.o save_volume7.o

46、load_volume7.oar: creating libecat.a然后命令:make install 會看到chmod -r 700 ./ecat_7mkdir -p ./ecat_7/lib/linux-g+mkdir -p ./ecat_7/includerm -rf ./ecat_7/lib/linux-g+/*rm -rf ./ecat_7/include/*cp *.a ./ecat_7/lib/linux-g+/cp *.h ./ecat_7/include/chmod -r 555 ./ecat_72. 安裝lmf,(好像也是從上面ecat那個網(wǎng)站下載的,反正,這個包很容易

47、找的,具體哪個版本不做要求)解壓,命令:cd /home/fei/geant4tar -zvxf lmf_v3.0.tar.gzsudu -i獲取權(quán)限cd /home/fei/geant4/lmf_v3.0./configure會顯示#ifndef _format_for_lmf_#define _format_for_lmf_typedef char i8;typedef unsigned char u8;typedef short i16;typedef unsigned short u16;typedef long i32;typedef unsigned long u32;typede

48、f unsigned long long int u64;typedef long long int i64;#endif命令:make為什么顯示etags src/*.c,cc includes/*.h,hh/bin/sh: etags: not foundmake: * tags 錯誤 127?(對后面好像沒什么影響)命令:make install 會顯示chmod -r 700 ./lmf_3.0mkdir -p ./lmf_3.0/libmkdir -p ./lmf_3.0/includesrm -rf ./lmf_3.0/./lib/liblmf.a rm -rf ./lmf_3.0

49、/includes/*cp ./lib/liblmf.a ./lmf_3.0/./lib/liblmf.a cp includes/* ./lmf_3.0/includes/chmod -r 555 ./lmf_3.03. 安裝gate:從該網(wǎng)站下載安裝包gate_v6.1/2.把它放到目錄/home/fei/geant4中,解壓cd /home/fei/geant4tar -xvzf gate_v6_1_tar_gz_98524.gz4. 設(shè)置安裝前的環(huán)境變量:用文本編輯器打開目錄gate_v6.1里的env_gate.s

50、h文件在該文件頭部粘貼export g4workdir=/home/fei/geant4/g4work(注意這個文件夾是我自己新建的用來當(dāng)作gate的工作目錄)export gatehome=/home/fei/geant4/gate_v6.1(注意這個地址是gate的安裝地址)export g4install=/home/fei/geant4/geant4.9.3.p02(這個是geant4的安裝地址)export g4version=9.3(這個版本號要看你裝得是哪個版本,必須跟你安裝的版本一致,我裝的是geant4.933.p02,所以用寫9.3就可以,目前最新的geant4版本是9.5

51、)export rootsys=/home/fei/geant4/root(注意不是解壓產(chǎn)生的那個目錄root5.34.01(就是被我重命名的那個文件夾),而是我安裝的root目錄)export ld_library_path=$ld_library_path:$rootsys/lib:/home/fei/geant4/clhep/lib(它是指定動態(tài)鏈接庫,指向clhep和root的安裝目錄文件庫)export path=$path:$rootsys/lib:$gatehome/bin/$g4system(它可以使我們從終端的任意目錄下運行g(shù)ate和root)保存后,退出5. 然后在終端里運

52、行source /home/fei/geant4/gate_v6.1/env_gate.sh會顯示checking your path variable. = ok: /home/fei/geant4/gate_v6.1/bin/linux-g+ added to your path variablechecking your ld_library_path variable. = ok: /home/fei/geant4/gate_v6.1/tmp/linux-g+/gate added to your path variableg4version9_3 is set: gate is co

53、mpatible with the geant4 version 9.3 and 9.4done6. 安裝cd /home/fei/geant4/gate_v6.1make成功會顯示source/physics finishedcreating shared library tmp/linux-g+/gate/libgate.so .compiling gate.cc .using global libraries .linking gate. done!第八、運行g(shù)ate1. source /home/fei/geant4/root/bin/thisroot.sh(這個是配置root運行的環(huán)境變量,如果不配置,gate也不能用,會出現(xiàn)gate: error while loading shared libraries: libcore.so: cannot open shared object file: no such file or directory)2. source /home/fei/geant4

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論