note 118206 added to lua.installation

From: Date: Mon, 26 Oct 2015 13:07:53 +0000
Subject: note 118206 added to lua.installation
Groups: php.notes 
Request: Send a blank email to php-notes+get-204029@lists.php.net to get a copy of this message
Ignore my previous note, I forgot to add in where to use the PECL command to install phplua. 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 Now execute the following command (1.1.0 is the version at the time of writing this): sudo pecl install lua-1.1.0 Add extension=lua.so to php.ini file (could be /etc/php5/(cli/apache)/php.ini) Hope this helps. ---- Server IP: 72.52.91.14 Probable Submitter: 109.109.117.146 ---- Manual Page -- http://php.net/manual/en/lua.installation.php Edit -- https://master.php.net/note/edit/118206 Del: integrated -- https://master.php.net/note/delete/118206/integrated Del: useless -- https://master.php.net/note/delete/118206/useless Del: bad code -- https://master.php.net/note/delete/118206/bad+code Del: spam -- https://master.php.net/note/delete/118206/spam Del: non-english -- https://master.php.net/note/delete/118206/non-english Del: in docs -- https://master.php.net/note/delete/118206/in+docs Del: other reasons-- https://master.php.net/note/delete/118206 Reject -- https://master.php.net/note/reject/118206 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#204029) next »