Last active
December 18, 2020 08:55
-
-
Save munsiwoo/b3f4a92c5bd6cf97fefaba4e0349f77d to your computer and use it in GitHub Desktop.
php compile and run - sh
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 | |
# data: 2019-01-29 | |
# made by munsiwoo | |
echo php compile and run | |
PHP_PATH="/php/php-7.0.30" | |
if [ -f /usr/local/bin/php ]; then | |
rm -rf /usr/local/bin/php | |
fi | |
if [ -f /usr/local/lib/php ]; then | |
rm /usr/local/lib/php | |
fi | |
if [ -f /usr/local/include/php ]; then | |
rm /usr/local/include/php | |
fi | |
make --directory=$PHP_PATH > make.log | |
make install --directory=$PHP_PATH > make_install.log | |
if [ -f test.php ]; then | |
php test.php | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
./configure --disable-all --enable-debug