lua-1:lua安装 [ /usr/bin/ld: cannot find -lreadline collect2: ld returned 1 exit status]
2012-11-10 11:35
731 查看
在linux中build lua:
1.安装readline >>你有可能已经安装过,可以直接跳到3,检查。如没有安装,可执行此操作
addr: http://ftp.gnu.org/gnu/readline/
tar -zxvfreadline-6.1.tar.gz
cd readline-6.1
./configure
make
make install
ldconfig
2.安装ncurses >>也许你可以不用安装
addr:http://invisible-island.net/ncurses/
tar –xvf ncurses-5.7.tar.gz
cd ncurses-5.7
./configure
make
make install
3.安装lua:
addr:http://www.lua.org/ftp/
tar –xvf lua-5.2.1.tar.gz
cd lua-5.2.1
/******************运行make命令,你将看到如下提示:
Please do
make PLATFORM
where PLATFORM is one of
these:
aix ansi bsd freebsd generic linux macosx mingw posix solaris
See
INSTALL for complete instructions.
查看你的系统平台名称是否在支持的列表中,如果存在则继续运行make
PLATFORM命令,否则按照lua的INSTALL说明我们可以选择运行make generic命令
****************/
make linux
>>出现 /usr/bin/ld: cannot find -lreadline collect2: ld returned 1 exit status;请检查1
make test
make local //此命令会在当前目录下生产一个install目录,其中包含了bin、include、lib等目录
在windows中build lua:
1.进入Visual Studio 2008命令提示符下面。 2.进入lua-5.2.1目录下面。 3.执行etc\luavs.bat命令。
>>可行
相关文章推荐
- /usr/bin/ld: cannot find -lGL collect2: error: ld returned 1 exit status
- svn 安装过程出现/usr/bin/ld: cannot find -lexpat collect2: ld returned 1 exit status make: *** [subversion/svn/svn] Error 1 解决方法
- /usr/bin/ld: cannot find -lltdl collect2: ld returned 1 exit status make: *** [sapi/cgi/php-cgi] Err
- Ubuntu 14.04 64bit下安装HTK工具箱时 “/usr/bin/ld: cannot find -lX11” 错误的解决
- chkrootkit安装过程中出现/usr/bin/ld: cannot find -lc的解决方法
- Fedora 17安装Qt5.0.0遇到/usr/bin/ld: cannot find -lGL的解决方法
- linux 编译安装的时候提示/usr/bin/ld: cannot find -lc
- linux下Qt问题cannot find -lGL collect2: error: ld returned 1 exit status
- fedora17安装Qt5.0.0遇到/usr/bin/ld: cannot find -lGL的解决方法
- tiny210 安装QTE4.6.0时错误/usr/bin/ld: cannot find -lGLU解决办法
- 非root用户解决/usr/bin/ld: cannot find -lxx缺失库函数安装
- 安装chkrootkit 报 /usr/bin/ld: cannot find -lc出错
- 在编译安装程序时候遇到/usr/bin/ld: cannot find -lxxx的时候的解决办法。
- Ubuntu15.04中测试安装的opencv2.4.9 时遇到usr/bin/ld: cannot find -lcufft解决方法。
- ubuntu下安装Qt时,编译时出现”/usr/bin/ld: cannot find -LXXX” 错误
- ubuntu12.04(64bit)安装 android4.2.2 出现 /usr/bin/ld: cannot find -llzo2
- /usr/bin/ld: 找不到 -lz collect2: error: ld returned 1 exit status
- /usr/bin/ld: cannot find -lltdl collect2: ld returned 1 exit status make: *** [sapi/cgi/php-cgi] Err