user3871
user3871

Reputation: 12718

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

I'm creating a mac setup shell script and testing out installing Atom. They give instructions on how to Install the source, but installing source tends to take a lot longer than installing binaries.

When I run the sh script, It gets and installs the binaries,

./configure: No such file or directory

From here:

...
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: _____

I've tried following these instructions, and added ./configure --prefix=~/user/local/bin/atom to configure, but it gives the same issue.

Script:

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

Upvotes: 0

Views: 2172

Answers (1)

mauro
mauro

Reputation: 5950

There's a missing step in your script:

cd atom-${ATOM_VER}

right after tar and before configure.

EDIT: This is based on the assumption that a configure script exists!

Upvotes: 1

Related Questions