[英]./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.