note 118205 added to lua.installation
| From: | rutgerspeksnijder at hotmail dot com | Date: | Mon, 26 Oct 2015 13:04:44 +0000 |
| Subject: | note 118205 added to lua.installation | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-204028@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 91.199.167.223
Probable Submitter: 109.109.117.146
----
Manual Page -- http://php.net/manual/en/lua.installation.php
Edit -- https://master.php.net/note/edit/118205
Del: integrated -- https://master.php.net/note/delete/118205/integrated
Del: useless -- https://master.php.net/note/delete/118205/useless
Del: bad code -- https://master.php.net/note/delete/118205/bad+code
Del: spam -- https://master.php.net/note/delete/118205/spam
Del: non-english -- https://master.php.net/note/delete/118205/non-english
Del: in docs -- https://master.php.net/note/delete/118205/in+docs
Del: other reasons-- https://master.php.net/note/delete/118205
Reject -- https://master.php.net/note/reject/118205
Search -- https://master.php.net/manage/user-notes.php