Last active
December 13, 2015 22:08
-
-
Save codemoran/4981752 to your computer and use it in GitHub Desktop.
Install the graphdat PHP extension on XAMPP with x64 linux
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 | |
# get the latest | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
# download XAMPP | |
wget -Oxampp-linux-1.8.1.tar.gz http://www.apachefriends.org/download.php?xampp-linux-1.8.1.tar.gz | |
wget -Oxampp-linux-devel-1.8.1.tar.gz http://www.apachefriends.org/download.php?xampp-linux-devel-1.8.1.tar.gz | |
# install XAMPP | |
sudo tar xvfz xampp-linux-1.8.1.tar.gz -C /opt | |
sudo tar xvfz xampp-linux-devel-1.8.1.tar.gz -C /opt | |
sudo apt-get -y install g++-multilib | |
sudo apt-get -y install ia32-libs | |
# get the graphdat module | |
wget -Ographdat-sdk-php.zip https://github.com/alphashack/graphdat-sdk-php/archive/master.zip | |
sudo apt-get install unzip | |
unzip graphdat-sdk-php.zip | |
cd graphdat-sdk-php-master | |
# create the extension | |
sudo apt-get -y install autoconf | |
/opt/lampp/bin/phpize | |
CFLAGS=-m32 CPPFLAGS=-m32 CCASFLAGS=-m32 ./configure --enable-graphdat --with-php-config=/opt/lampp/bin/php-config | |
sudo apt-get -y install build-essential | |
make | |
sudo make install | |
# add the graphdat extension | |
sudo bash -c 'echo "extension=\"graphdat.so\"" >> /opt/lampp/etc/php.ini' | |
sudo /opt/lampp/lampp stop | |
sudo /opt/lampp/lampp start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment