※ [本文轉錄自 Linux 看板 #1GrM80Cx ]
作者: a29788685 (嘉峰) 看板: Linux
標題: [問題] 安裝FormCalc 出現的問題
時間: Sat Dec 22 15:32:14 2012
最近安裝FormCalc
出現了一些問題 如:
./compile: 1: ./compile: : Permission denied
mkdir: 無法建立目錄‘’: 沒有此一檔案或目錄
Cannot create directory
google過很多辦法,始終無法解決,於是寄信給原作者詢問
他的回信如下:
please check that the partition on which you're installing
this software has execution enabled (see if there is e.g.
a noexec attribute in /etc/fstab).
Likewise, check that you have /bin/sh and that it's
executable.
Next, try running "sh -x ./compile" and see how far you get.
If compile stops while invoking a program (e.g. math),
run that program manually to see if there are any problems
with shared libraries. Maybe you just need to do an
ldconfig to refresh /etc/ld.so.cache.
其實我看不太懂他要我作些什麼,
我 sudo vi /etc/fstab 出現了:
# UNCONFIGURED FSTAB FOR BASE SYSTEM
/host/ubuntu/disks/swap.disk none swap sw 0 0
和網路上的例子好像很不一樣,如:
http://www.360doc.com/content/10/1008/11/1820059_59283748.shtml
(內含廣告)
後面,我嘗試使用指令 ldconfig 似乎沒有什麼效果
不知道有沒友人有類似經驗呢? 感謝
另外補上 sh -x ./complie 的結果:
+ CC=gcc
+ CXX=g++
+ MCC=mcc
+ CFLAGS=-O3 -fomit-frame-pointer -ffast-math -Wall -Wextra
+ dirname ./compile
+ SRC=.
+ mathcmd=math
+ exe=
+ shopt -s nullglob
+ set