libertines
2014-01-22 16:17:39 UTC
抱歉我重新整理發問
我要安裝一個叫talys的軟體
README裡面寫到
https://www.dropbox.com/s/k04n9m5y61c3i75/README
talys.setup
https://www.dropbox.com/s/ardxgrm4w1q30am/talys.setup
我把talys的資料夾放在
/home/lee/physics/talys
Loading Image...
但我應該是在
3. machine這邊有打錯?
所以有structure data base not installed的錯誤
想請教該怎麼打
我把 talysdir 換成/home/lee/physics/talys
應該沒錯吧?
Loading Image...
#!/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
我要安裝一個叫talys的軟體
README裡面寫到
https://www.dropbox.com/s/k04n9m5y61c3i75/README
talys.setup
https://www.dropbox.com/s/ardxgrm4w1q30am/talys.setup
我把talys的資料夾放在
/home/lee/physics/talys
Loading Image...
但我應該是在
3. machine這邊有打錯?
所以有structure data base not installed的錯誤
想請教該怎麼打
我把 talysdir 換成/home/lee/physics/talys
應該沒錯吧?
Loading Image...
#!/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