lua
2013-11-25 20:51
141 查看
tar -zvxf lua-5.2.1.tar.gz
yum -y install gcc* gcc-c++* autoconf* automake* zlib* libxml* ncurses-devel* libmcrypt* libtool* flex* pkgconfig* libevent* glib*
make linux
错误:gcc -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX -c -o lua.o lua.clua.c:67:31: error: readline/readline.h: No such file or directorylua.c:68:30: error: readline/history.h: No such file or directorylua.c: In function ‘pushline’:lua.c:271: warning: implicit declaration of function ‘readline’lua.c:271: warning: assignment makes pointer from integer without a castlua.c: In function ‘loadline’:lua.c:301: warning: implicit declaration of function ‘add_history’make[2]: *** [lua.o] Error 1make[2]: Leaving directory `/root/lua-5.2.0/src'make[1]: *** [linux] Error 2make[1]: Leaving directory `/root/lua-5.2.0/src'make: *** [linux] Error 2
yum install -y readline-devel ncurses-devel
本文出自 “IT” 博客,请务必保留此出处http://benly.blog.51cto.com/460663/1331358
yum -y install gcc* gcc-c++* autoconf* automake* zlib* libxml* ncurses-devel* libmcrypt* libtool* flex* pkgconfig* libevent* glib*
make linux
错误:gcc -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX -c -o lua.o lua.clua.c:67:31: error: readline/readline.h: No such file or directorylua.c:68:30: error: readline/history.h: No such file or directorylua.c: In function ‘pushline’:lua.c:271: warning: implicit declaration of function ‘readline’lua.c:271: warning: assignment makes pointer from integer without a castlua.c: In function ‘loadline’:lua.c:301: warning: implicit declaration of function ‘add_history’make[2]: *** [lua.o] Error 1make[2]: Leaving directory `/root/lua-5.2.0/src'make[1]: *** [linux] Error 2make[1]: Leaving directory `/root/lua-5.2.0/src'make: *** [linux] Error 2
yum install -y readline-devel ncurses-devel
本文出自 “IT” 博客,请务必保留此出处http://benly.blog.51cto.com/460663/1331358
相关文章推荐
- Lua的小问题:命令行参数
- 在VS下搭建Lua开发环境
- lua table传值是传的引用
- lua redis 发布订阅
- Luajit笔记---关于如何FFI与C++代码交互
- NGINX安装lua-nginx-module模块
- ngx_lua常用变量参数
- Lua中的metatable详解
- Lua简介:开发《魔兽争霸》和《愤怒的小鸟》的语言
- Lua性能优化技巧
- lua 垃圾回收标记函数 reallymarkobject
- slua 集protobuf
- objective-c与Lua的交互(一)
- Lua string字符串
- lua中遍历table的几种方式比较
- 【Cocos2dx-lua 3.11.1】打包lua项目为安卓apk
- Lua入门 - helloworld
- Lua教程(二):C++和Lua相互传递数据示例
- Lua和C++交互详细总结
- 编写高性能的Lua代码