compiler錯誤 linker input file unused - Linux

By Una
at 2014-07-08T11:58
at 2014-07-08T11:58
Table of Contents
安裝軟體talys碰到的問題
猜測大概是因為compiler這部份出問題
或是 script還需要修改什麼
但目前不知道解決執行script後跳出的訊息
文件上寫說可以用的compiler
‧ Fujitsu/Lahey Fortran90/95 compiler on various Linux systems
‧ gnu g77 Fortran77 compiler on various Linux systems
‧ g95 Fortran compiler on various Linux systems
‧ gfortran Fortran compiler on various Linux systems
‧ Portland pgf95 Fortran compiler on various Linux systems
‧ Intel ifort Fortran compiler on various Linux systems
‧ Workshop 6.2 Fortran90 compiler on the SUN workstation
我是用GNU Fortran 95 compiler 和GNU Fortran compiler
其他像 g77 . ifort 跳出來的訊息更奇怪
以下是GNU Fortran 95 compiler 和GNU Fortran compiler都會跳出一樣的錯誤訊息 (雖
然顯示completed, 但在執行時會出現錯誤 Segmentation fault (core dumped) )
--------------------- 執行script後的結果
-------------------------------------------------
lee@lee-BM2320:~/talys$ ./talys.setup
gfortran: warning: /usr/bin/gfortran: linker input file unused because
linking not done
/usr/bin/ld: error in /usr/bin/gfortran(.eh_frame); no .eh_frame_hdr table
will be created.
The TALYS setup has been completed.
You will find a talys executable in your /home/lee/talys directory.
You are all set to run the sample problems in the samples directory
with the verify script.
--------------------------------------------------------------------------------------------------------
-------------------以下是talys.setup的script 修改了第八行compiler= 和11行
bindir= --------------------
#!/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='gfortran /usr/bin/gfortran'
#compiler='g95'
Thome=${HOME}
bindir=$Thome'/talys' # 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
talys.setup
http://ppt.cc/JSeX
--
Tags:
Linux
All Comments
Related Posts
SSD+HDD 混碟灌ubuntu/win8雙系統

By Susan
at 2014-07-08T09:50
at 2014-07-08T09:50
CentOS Release 7 is out

By Tracy
at 2014-07-08T08:57
at 2014-07-08T08:57
SSD+HDD 混碟灌ubuntu/win8雙系統

By Candice
at 2014-07-07T20:56
at 2014-07-07T20:56
SSD+HDD 混碟灌ubuntu/win8雙系統

By Christine
at 2014-07-07T19:02
at 2014-07-07T19:02
SSD+HDD 混碟灌ubuntu/win8雙系統

By Sierra Rose
at 2014-07-07T16:09
at 2014-07-07T16:09