Bootstrap

lua.c:82:31: fatal error: readline/readline.h: No such file or directory

目录

坑(一)添加libreadline-dev 包

坑(2)显示缺少 libreadline6-dev, 于是又用命令 

坑(3)

解决办法:


    在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).

 

 

坑(2)显示缺少 li

悦读

道可道,非常道;名可名,非常名。 无名,天地之始,有名,万物之母。 故常无欲,以观其妙,常有欲,以观其徼。 此两者,同出而异名,同谓之玄,玄之又玄,众妙之门。

;