Skip to content

Instantly share code, notes, and snippets.

@masuidrive
Created December 26, 2009 13:57
Show Gist options
  • Save masuidrive/263954 to your computer and use it in GitHub Desktop.
Save masuidrive/263954 to your computer and use it in GitHub Desktop.
#!/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