note 118204 deleted from lua.installation by cmb
| From: | cmb@php.net | Date: | Wed, 16 Dec 2015 15:52:37 +0000 |
| Subject: | note 118204 deleted from lua.installation by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-204414@lists.php.net to get a copy of this message | ||
Note Submitter: rutgerspeksnijder at hotmail dot com
----
Installation on Ubuntu 14.04
"*.*" means version number
Packages to install (sudo apt-get install):
Install php5
Install php-pear
Install php5-dev
Install lua*.*
Install liblua*.*
Create soft link of /usr/include/lua TO /usr/include/lua*.*:
sudo ln -s /usr/include/lua*.*/ /usr/include/lua
Find liblua*.*.so and liblua*.*.a files in /usr/lib.
If they don't exist, they could be in /usr/lib/x86_64-linux-gnu or /usr/lib/i386-linux-gnu
depending on OS.
Copy them from that directory into /usr/lib as liblua.so and liblua.a (WITHOUT VERSION NUMBER).
Example:
sudo cp /usr/lib/x86_64-linux-gnu/liblua5.2.a /usr/lib/liblua.a
Add extension=lua.so to php.ini file (could be /etc/php5/(cli/apache)/php.ini)
Hope this helps.