目录
坑(2)显示缺少 libreadline6-dev, 于是又用命令
在ubuntu16.0.4上安装lua 5.3.5,运行命令
make linux
报错
lua.c:82:31: fatal error: readline/readline.h: No such file or directory
compilation terminated.
<builtin>: recipe for target 'lua.o' failed
make[2]: *** [lua.o] Error 1
make[2]: Leaving directory '/usr/local/lua/lua-5.3.5/src'
Makefile:110: recipe for target 'linux' failed
make[1]: *** [linux] Error 2
make[1]: Leaving directory '/usr/local/lua/lua-5.3.5/src'
Makefile:55: recipe for target 'linux' failed
make: *** [linux] Error 2
原因是缺少libreadline-dev依赖包,造成找不到readline.h。
坑(一)添加libreadline-dev 包
sudo apt-get install libreadline-dev
结果又报错
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libreadline-dev : Depends: libreadline6-dev (= 6.3-8ubuntu2) but it is not going to be installed
libsmbclient : Depends: samba-libs (= 2:4.3.11+dfsg-0ubuntu0.16.04.21) but 2:4.3.11+dfsg-0ubuntu0.16.04.15 is to be installed
samba-libs : Depends: libwbclient0 (= 2:4.3.11+dfsg-0ubuntu0.16.04.15) but 2:4.3.11+dfsg-0ubuntu0.16.04.21 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).