簡體   English   中英

./configure:獲取tar.gz文件時沒有此類文件或目錄

[英]./configure: No such file or directory when getting tar.gz file

我正在創建一個Mac安裝程序外殼腳本並測試安裝Atom。 他們提供了有關如何安裝源代碼的說明 ,但是安裝源代碼通常比安裝二進制文件花費更多的時間。

當我運行sh腳本時,它將獲取並安裝二進制文件,

./configure:沒有這樣的文件或目錄

從這里:

...
x atom-1.12.7/vendor/jasmine-jquery.js
x atom-1.12.7/vendor/jasmine.js
ln: /usr/local/bin/atom: File exists
/Users/danniu/Desktop/Configs/Bash Setup/mac_setup_script/install_atom.sh: line 10: ./configure: No such file or directory
make: *** No targets specified and no makefile found.  Stop.
Password: _____

我已經嘗試按照這些說明進行操作 ,並添加了./configure --prefix=~/user/local/bin/atom進行配置,但是它也出現了同樣的問題。

劇本

mkdir -p ~/Desktop/testing123
cd ~/Desktop/testing123
ATOM_VER=1.12.7
echo "Hello $USER. Installing Atom v$ATOM_VER"
wget https://github.com/atom/atom/archive/v$ATOM_VER.tar.gz
tar -zxvf v$ATOM_VER.tar.gz
ln -s /Applications/Atom.app/Contents/Resources/app/atom.sh /usr/local/bin/atom
./configure
make
sudo make install
apm install atom-beautify
apm install docblockr
apm install pigments

您的腳本中缺少一個步驟:

cd atom-${ATOM_VER}

tar之后和configure之前。

編輯:這是基於一個configure腳本存在的假設!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM