compiler錯誤 linker input file unused - Linux

Una avatar
By Una
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

SSD+HDD 混碟灌ubuntu/win8雙系統

Susan avatar
By Susan
at 2014-07-08T09:50
※ 引述《KOBER81 (中壢李姓客官)》之銘言: : ※ [本文轉錄自 Notebook 看板 #1JkXoyYa ] : 作者: KOBER81 (中壢李姓客官) 看板: Notebook : 標題: [問題] SSD+HDD 混碟灌ubuntu/win8雙系統 : 時間: Mon Jul 7 12: ...

CentOS Release 7 is out

Tracy avatar
By Tracy
at 2014-07-08T08:57
http://lists.centos.org/pipermail/centos-announce/2014-July/020393.html CentOS 7出了 這次好快,RHEL 7也不過6月初才發布 只過了一個月就立即跟進 趕快載下來玩玩 - ...

SSD+HDD 混碟灌ubuntu/win8雙系統

Candice avatar
By Candice
at 2014-07-07T20:56
※ 引述《KOBER81 (中壢李姓客官)》之銘言: : 目前舊筆電 windows7 非混碟 灌雙系統ubuntu蠻簡單的 : 只要有磁碟空間 直接灌ubuntu進去就可 小弟筆電也是SSD+HDD 之前有試過一次 但因為對電腦不熟 不敢動SSD 所以就把硬碟切割後直接灌(需要先改BIOS) 使用上是正常 ...

SSD+HDD 混碟灌ubuntu/win8雙系統

Christine avatar
By Christine
at 2014-07-07T19:02
※ 引述《Vdragon (V字龍)》之銘言: : ※ 引述《KOBER81 (中壢李姓客官)》之銘言: : : windows8 買來就灌好了 : : 直接把ubuntu灌進去可用空間 我怕不能開機 : 讓 Ubuntu 安裝媒體以 UEFI 的開機模式(而非傳統個人電腦的開機模式)開機,剩下的 : 依照安 ...

SSD+HDD 混碟灌ubuntu/win8雙系統

Sierra Rose avatar
By Sierra Rose
at 2014-07-07T16:09
※ 引述《KOBER81 (中壢李姓客官)》之銘言: : windows8 買來就灌好了 : 直接把ubuntu灌進去可用空間 我怕不能開機 讓 Ubuntu 安裝媒體以 UEFI 的開機模式(而非傳統個人電腦的開機模式)開機,剩下的 依照安裝程式的指示做就可以了,幾乎跟以前一樣,如果沒有自動指定好的話要手動 ...