[問題] 安裝軟體的路徑錯誤

看板Linux作者 (libertines)時間12年前 (2014/01/23 00:17), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/12 (看更多)
抱歉我重新整理發問 我要安裝一個叫talys的軟體 README裡面寫到 https://www.dropbox.com/s/k04n9m5y61c3i75/README talys.setup https://www.dropbox.com/s/ardxgrm4w1q30am/talys.setup 我把talys的資料夾放在 /home/lee/physics/talys https://www.dropbox.com/s/oto32ia0csc9g94/%202014-01-23-2.png
但我應該是在 3. machine這邊有打錯? 所以有structure data base not installed的錯誤 想請教該怎麼打 我把 talysdir 換成/home/lee/physics/talys 應該沒錯吧? https://www.dropbox.com/s/7e79nheif81vavb/2014-01-23.png
#!/bin/sh unalias -a # # This script takes care of the TALYS installation. # All you have to do is adapt the next variables to your own situation, # and run..... # #compiler='lf95 --staticlink' compiler='g95' Thome=${/home/lee/physics/talys} bindir=$Thome'/home/lee/physics/talys/bin' # destiny directory of the TALYS executable # # From here on, the rest should work automatically # # 1. Define the talys directory # talysdir=`pwd` # # 2. Ensure that all directories have execute permission and that # all files have a read and write permission # cd .. chmod -R u+rwX talys # # 3. Ensure that TALYS can read the structure database by replacing # the path name in subroutine machine.f # datapath=${talysdir}'/' datapathnew=`echo $datapath | sed 's/\//\\\\\//g'` cd ${talysdir}'/source/' sed "s/ home='.*'/ home='${datapathnew}'/" machine.f > machine_tmp.f mv -f machine_tmp.f machine.f # # 4. Compile TALYS. # Please note that the compilation of ecis06t.f # may result in some trivial warning messages # ${compiler} -c *.f ${compiler} *.o -o talys # # 5. Check whether the setup procedure has been successful # if [ -e talys ] then mv -f talys ${bindir}/talys echo ' ' echo 'The TALYS setup has been completed.' echo ' ' echo 'You will find a talys executable in your' $bindir 'directory.' echo ' ' echo 'You are all set to run the sample problems in the samples directory' echo 'with the verify script.' else echo 'TALYS setup failed' fi -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 101.3.35.40
文章代碼(AID): #1It-yadH (Linux)
討論串 (同標題文章)
文章代碼(AID): #1It-yadH (Linux)