作者:空嫻
Cloud Studio 下Lua環(huán)境安裝
Cloud Studio默認環(huán)境為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出現(xiàn)問題以及解決方式
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庫出現(xiàn)問題以及解決方式
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
如上毕源,解決后重復(fù)上述步驟即可
重新make linux之前記得使用make clean指令