Howto: install phplua extension for PHP
2011-12-04 00:39
399 查看
Lua is an embeddable scripting language. If you are trying to embed it in PHP follow this instructions that may help you:
At this point you are almost done, BUT please edit the file Makefile and change the line:
php test.php
转自:http://blog.csdn.net/pihizi/article/details/5916502
$ sudo apt-get install liblua5.1-0-dev $ git clone git://repo.or.cz/phplua.git src $ cd src/ $ phpize $ ./configure
At this point you are almost done, BUT please edit the file Makefile and change the line:
LUA_SHARED_LIBADD = -lluaby:
LUA_SHARED_LIBADD = -llua5.1Then is time to finish cooking:
$ make $ sudo make installlua.ini
extension=lua.soAlmost done, do a test:
php test.php
$lua=new lua(); $lua->test="Hello World!\n"; $lua->evaluate("print(test)");
转自:http://blog.csdn.net/pihizi/article/details/5916502
相关文章推荐
- php composer.phar install error The openssl extension is required for SSL/TLS protection
- MagickWandforPHPlinuxINSTALL安装
- install php wrapper for imagemagick
- How to install Microsoft's SQL Server Driver for PHP
- Install mcrypt for php on Mac OSX 10.10 Yosemite for a Development Server
- install sphinx for php on ubuntu
- How to install PHP pthreads extension on Ubuntu?
- How to install a PHP PECL extension/module on Ubuntu
- Install IIS 7.5 PHP & FastCGI for PHP on Windows 7
- nginx,php for window 7(64bit) install
- nginx,php for window 7(64bit) install
- How to Install PHP intl extension on OS X
- Let’s Install JSON for PHP 5
- php install extension
- I took time for preliminary study of the lua and php, it's too difficlt to squeeze time for me
- PHP: to use scptask, you need to install the SSH extension.
- An IDE For PHP: Install PhpStorm on Ubuntu 16.04, 17.04
- Error: You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-d
- Install JSON PHP Extension on CentOs / RedHat