我一直在嘗試使用命令export PRIMOSBASE=/directory/for/primosfiles
在Cygwin中設置環境變量。在Cygwin中設置環境變量
當我檢查變量使用命令echo $PRIMOSBASE
它顯示/目錄/ for/primosfiles。希望這意味着環境變量已設置。
但是當我嘗試爲/目錄中運行一個shell腳本(PRIMOS)/爲/ primosfiles,它顯示
./primos: line 8: /prilaunch.pl: No such file or directory
chmod: failed to get attributes of `step1.sh': No such file or directory
這意味着我沒有設置PRIMOSBASE環境。任何人都可以請告訴我,我錯了......
謝謝...
你能給我們那個shell腳本的內容到第8行嗎?你如何運行該shell腳本? –