Last active
May 18, 2022 10:21
-
-
Save tals/8414170 to your computer and use it in GitHub Desktop.
install arcanist (OSX)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
dir="~/Applications/arcanist/" | |
eval dir=$dir | |
if [ -d "$dir" ]; then | |
printf "arc already installed. Remove and install again? (y/n) " | |
read answer | |
if [ "$answer" != "y" ]; then | |
exit | |
fi | |
rm -fR "$dir" | |
fi | |
mkdir -p ~/Applications/arcanist | |
pushd ~/Applications/arcanist > /dev/null | |
git clone git://github.com/facebook/libphutil.git | |
git clone git://github.com/facebook/arcanist.git | |
ln -Fs ~/Applications/arcanist/arcanist/bin/arc /usr/local/bin/arc | |
popd | |
echo "installed!" | |
echo | |
echo -e "if this is your first time, run \033[92marc install-certificate\033[0m in your project's directory" | |
You have to buy Server from the Mac App Store, then run it once and quit. (None of the services provided y Server will be enabled if you just quit.) You have to do this because php depends on software inside the /Applications/Server.app bundlle. If you don't run Server at least once, something like this can happen:
0 216 Z% arc --version
PHP Warning: PHP Startup: Unable to load dynamic library '/Applications/Server.app/Contents/ServerRoot/usr/lib/php/extensions/no-debug-non-zts-20100525/pdo_pgsql.so' - dlopen(/Applications/Server.app/Contents/ServerRoot/usr/lib/php/extensions/no-debug-non-zts-20100525/pdo_pgsql.so, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/Applications/Server.app/Contents/ServerRoot/usr/lib/php/extensions/no-debug-non-zts-20100525/pgsql.so' - dlopen(/Applications/Server.app/Contents/ServerRoot/usr/lib/php/extensions/no-debug-non-zts-20100525/pgsql.so, 9): image not found in Unknown on line 0
arcanist 60a5a24033606a7da77a467d40cc64b437a3d770 (18 May 2015)
libphutil 797a903e2a4222158856e93a8f3605febbfcacb0 (18 May 2015)
0 217 Z% find /Applications/Server.app/Contents/ServerRoot/usr/lib/php/extensions -type f
/Applications/Server.app/Contents/ServerRoot/usr/lib/php/extensions/no-debug-non-zts-20121212/opcache.so
/Applications/Server.app/Contents/ServerRoot/usr/lib/php/extensions/no-debug-non-zts-20121212/pdo_pgsql.so
/Applications/Server.app/Contents/ServerRoot/usr/lib/php/extensions/no-debug-non-zts-20121212/pgsql.so
0 222 Z%
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run with:
bash -c "$(curl -fsSL https://gist.githubusercontent.com/tals/8414170/raw/a7b00372d03b3d7f1fe12c8bcc32420a747b3d6c/install_arcanist.bash)"