Howto: install phplua extension for PHP
来源:互联网 发布:桌面日程安排软件推荐 编辑:程序博客网 时间:2024/06/05 10:14
Lua is an embeddable scripting language. If you are trying to embed it in PHP follow this instructions that may help you:
$ 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
- Howto: install phplua extension for PHP
- php Install pthreads extension
- install Toad Extension for Eclipse
- php composer.phar install error The openssl extension is required for SSL/TLS protection
- Install JSON PHP Extension on CentOs / RedHat
- Howto Install and Configure Doxygen for QtCreator on Ubuntu
- How to install a PHP PECL extension/module on Ubuntu
- Install Memcached + PHP Memcached Extension under Mac OS X lion
- How to Install PHP intl extension on OS X
- How to install PHP pthreads extension on Ubuntu?
- FreeRadius install howto
- composer install 报错(Install or enable PHP's redis extension)
- Install chrome extension
- 【Joomla】 Extension install
- HOWTO install and setup Android NDK for Windows(Android NDK 开发环境安装和配置)
- HOWTO install and setup Android NDK for Linux(Android NDK安装遇到的问题和解决方法)
- HOWTO install and setup Android NDK for Windows(Android NDK 开发环境安装和配置)
- PHP Extension
- YAML的简单介绍
- 《权威指南》笔记七 MapReduce的类型和格式
- 一个真实的中国互联网:精英与草根(zz)
- 非阻塞socket
- 如何使用XP盘卸载WINDOWS 7
- Howto: install phplua extension for PHP
- UI的几个函数小结
- 软件系统性能设计之一总述
- QWidget之键盘焦点
- SSL/TLS/WTLS,加密解密
- 鼠标轨迹识别
- Android开发环境配置
- 数数问题
- Vs2010本地帮助文档的安装