Created
December 26, 2009 13:57
-
-
Save masuidrive/263954 to your computer and use it in GitHub Desktop.
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/sh | |
wget http://1978th.net/tokyocabinet/tokyocabinet-1.4.41.tar.gz | |
tar xvzf tokyocabinet-1.4.41.tar.gz | |
cd tokyocabinet-1.4.41 | |
./configure; make | |
sudo make install | |
cd .. | |
wget http://1978th.net/tokyodystopia/tokyodystopia-0.9.13.tar.gz | |
tar xvzf tokyodystopia-0.9.13.tar.gz | |
cd tokyodystopia-0.9.13 | |
./configure; make | |
sudo make install | |
cd .. | |
wget http://github.com/fujimoto/php-tokyo-dystopia/tarball/master | |
tar xvfz fujimoto-php-tokyo-dystopia-*.tar.gz | |
cd fujimoto-php-tokyo-dystopia-* | |
export CFLAGS="-arch x86_64" | |
phpize | |
./configure --with-tokyo-dystopia-dir=/usr/local | |
make | |
sudo make install | |
sudo sh -c 'echo "extension=tokyo_dystopia.so" >> /usr/local/php5/lib/php.ini' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment