Skip to content

Instantly share code, notes, and snippets.

@13i
Last active February 1, 2018 21:10
Show Gist options
  • Save 13i/5278899 to your computer and use it in GitHub Desktop.
Save 13i/5278899 to your computer and use it in GitHub Desktop.
Install libxl + php_excel on ubuntu 12.02 + apache2
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
@dikirill
Copy link

dikirill commented Feb 1, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment