安裝軟體的路徑錯誤 - Linux

By Hedy
at 2014-01-23T00:17
at 2014-01-23T00:17
Table of Contents
抱歉我重新整理發問
我要安裝一個叫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
--
Tags:
Linux
All Comments
Related Posts
shell script 變數問題

By Zanna
at 2014-01-22T22:20
at 2014-01-22T22:20
關於Cloud Service的選擇

By Oliver
at 2014-01-22T22:20
at 2014-01-22T22:20
用shellscript發信的問題

By Ursula
at 2014-01-22T21:44
at 2014-01-22T21:44
shell script 變數問題

By Erin
at 2014-01-22T20:03
at 2014-01-22T20:03
lf95 not found

By Annie
at 2014-01-22T13:17
at 2014-01-22T13:17