Created
June 18, 2015 04:44
-
-
Save zedshaw/4e14bbca46eb21aad08d to your computer and use it in GitHub Desktop.
If you ever need to build apache APR on OSX Yosemite, just touch it a whole bunch.
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
set -e | |
# go somewhere safe | |
cd /tmp | |
# get the source to base APR 1.5.2 | |
curl -L -O http://archive.apache.org/dist/apr/apr-1.5.2.tar.gz | |
# extract it and go into the source | |
tar -xzvf apr-1.5.2.tar.gz | |
cd apr-1.5.2 | |
# you need this on OSX Yosemite | |
touch libtoolT | |
# configure, make, make install | |
./configure | |
make | |
sudo make install | |
# reset and cleanup | |
cd /tmp | |
rm -rf apr-1.5.2 apr-1.5.2.tar.gz | |
# do the same with apr-util | |
curl -L -O http://archive.apache.org/dist/apr/apr-util-1.5.4.tar.gz | |
# extract | |
tar -xzvf apr-util-1.5.4.tar.gz | |
cd apr-util-1.5.4 | |
# you need this on OSX Yosemite | |
touch libtoolT | |
# configure, make, make install | |
./configure --with-apr=/usr/local/apr | |
# you need that extra parameter to configure because | |
# apr-util can't really find it because...who knows. | |
make | |
sudo make install | |
#cleanup | |
cd /tmp | |
rm -rf apr-util-1.5.4* apr-1.5.2* | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It truly saved my day. Thanks!