[問題] 安裝FormCalc 出現的問題

看板Linux作者 (嘉峰)時間13年前 (2012/12/22 15:32), 編輯推噓1(1011)
留言12則, 2人參與, 最新討論串1/1
最近安裝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 -- + uname -s + test -z + PATH=/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: which math + mathcmd= + -run Print[$SystemID]; Exit[] ./compile: 1: ./compile: : Permission denied + tr \r + tail -1 + set -- + test 0 -ne 1 + DEST= + test -d + mkdir mkdir: 無法建立目錄‘’: 沒有此一檔案或目錄 + echo Cannot create directory Cannot create directory + exit 1 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.122.196.185 a29788685:轉錄至看板 Mathematica 12/22 16:00

12/22 16:01, , 1F
你有裝好methmatica了嗎?
12/22 16:01, 1F

12/22 16:12, , 2F
12/22 16:12, 2F

12/22 16:27, , 3F
他的DEST內容是空白的,所以不能mkdir
12/22 16:27, 3F

12/22 16:27, , 4F
我沒有mathmatica,猜不出來那些變數"正常"的內容是什麼
12/22 16:27, 4F

12/22 16:33, , 5F
非常感謝,您給了我一些線索,我再google一下
12/22 16:33, 5F

12/22 16:42, , 6F
-.- 該去哪裡找DEST內容呢?
12/22 16:42, 6F

12/22 16:44, , 7F
另外想請問你知道他回信給我的第一段 他要我檢查什麼嗎?
12/22 16:44, 7F

12/22 18:37, , 8F
你問的部份你都沒有問題,你可以把sh -x 那一段寄給他?
12/22 18:37, 8F

12/22 18:38, , 9F
然後你有沒有用過別的mathematica module?也許可以看看別的
12/22 18:38, 9F

12/22 18:38, , 10F
module是怎麼build的
12/22 18:38, 10F

12/23 01:05, , 11F
謝謝,我把sh -x 那部分寄出去了,我沒有用過別的mathem
12/23 01:05, 11F

12/23 01:06, , 12F
etica module ,我可能要去參考別人的看看
12/23 01:06, 12F
文章代碼(AID): #1GrM80Cx (Linux)