Last active
February 1, 2018 21:10
-
-
Save 13i/5278899 to your computer and use it in GitHub Desktop.
Install libxl + php_excel on ubuntu 12.02 + apache2
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
sudo su -- | |
cd /src | |
wget http://www.libxl.com/download/libxl.tar.gz | |
tar -zxvf libxl.tar.gz | |
cd libxl-3.4.1.4 | |
ln -s include_c include | |
ln -s libxl.so /usr/lib/libxl.so | |
wget https://github.com/iliaal/php_excel/archive/master.zip master.zip | |
unzip master.zip | |
rm php_excel-master | |
cd php_excel-master | |
phpize | |
./configure --with-excel --with-libxl-incdir=../libxl-3.4.1.4/ --with-libxl-libdir=../libxl-3.4.1.4/lib64 | |
make | |
make test | |
make install | |
service apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For PHP7 check this gist: https://gist.github.com/dikirill/846c29c68ccc7fe5cfe4c777202b4e66