lua_path环境变量设置linux,ubuntu16.04安装lua环境
1.官網下載源碼 https://www.lua.org/download.html
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
2.安裝中報錯
lua.c:82:31: fatal error: readline/readline.h: 沒有那個文件或目錄
compilation terminated.
: recipe for target 'lua.o' failed
make[2]: *** [lua.o] Error 1
make[2]: Leaving directory '/opt/software/lua-5.3.5/src'
Makefile:110: recipe for target 'linux' failed
make[1]: *** [linux] Error 2
make[1]: Leaving directory '/opt/software/lua-5.3.5/src'
Makefile:55: recipe for target 'linux' failed
make: *** [linux] Error 2
官方的解釋如下:
If you’re running Linux and get compilation errors, make sure you have installed the readline development package (which is probably named libreadline-dev or readline-devel). If you get link errors after that, then try “make linux MYLIBS=-ltermcap”.
3.于是用apt search搜索了這兩個包,發(fā)現libreadline-dev沒有安裝
sudo apt-get install libreadline-dev
4.安裝好后重新編譯就可以了,然后是配置/etc/profile環(huán)境變量
export PATH=$PATH:/opt/software/lua-5.3.5/src
5.最后配置了clion中l(wèi)ua解釋器的路徑
總結
以上是生活随笔為你收集整理的lua_path环境变量设置linux,ubuntu16.04安装lua环境的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: pod 挂载点 mysql_Pod挂载(
- 下一篇: mysql自增字段_MySQL自增字段的