我正在创建一个Mac安装程序shell脚本并测试安装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
脚本的假设!