Cloud Studio 下Lua环境安装
2019-02-25 本文已影响0人
空娴
作者:空娴
Cloud Studio 下Lua环境安装
Cloud Studio默认环境为Ubuntu,资料搜索可直接搜索Ubutun/Linux下Lua安装
下载与安装Lua正常步骤
左下角终端输入
curl -R -O http://www.lua.org/ftp/lua-5.3.5.tar.gz
tar zxf lua-5.3.5.tar.gz
cd lua-5.3.5
make linux test
sudo make install
安装Lua出现问题以及解决方式
fatal error: readline/readline.h: No such file or directory
make[1]: Entering directory '/home/coding/workspace/lua-5.3.5/src'
....
...
lua.c:82:31: fatal error: readline/readline.h: No such file or directory
compilation terminated.
解决方式:安装libreadline-dev库
sudo apt-get install libreadline-dev
安装libreadline-dev库出现问题以及解决方式
E: Unable to locate package libreadline-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libreadline-dev
解决方式:更新apt-cache
sudo apt-get update
apt-cache search readline
如上,解决后重复上述步骤即可
重新make linux之前记得使用make clean指令