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

make linux
cd src && make linux
make[1]: Entering directory `/root/lua/lua-5.3.2/src‘
make all SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline"
make[2]: Entering directory `/root/lua/lua-5.3.2/src‘
gcc -std=gnu99 -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -c -o lua.o lua.c
lua.c:80:31: fatal error: readline/readline.h: No such file or directory
#include <readline/readline.h>
^
compilation terminated.
make[2]: *** [lua.o] Error 1
make[2]: Leaving directory `/root/lua/lua-5.3.2/src‘
make[1]: *** [linux] Error 2
make[1]: Leaving directory `/root/lua/lua-5.3.2/src‘
make: *** [linux] Error 2

解决方法:
缺少libreadline-dev依赖包
centos: yum install readline-devel
debian: apt-get install libreadline-dev.

http://www.vcerror.com/?p=1786

# make linux
cd src && make linux
make[1]: Entering directory `/home/lua/lua-5.3.2/src‘
make all SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline"
make[2]: Entering directory `/home/lua/lua-5.3.2/src‘
gcc -std=gnu99 -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -c -o lua.o lua.c
gcc -std=gnu99 -o lua lua.o liblua.a -lm -Wl,-E -ldl -lreadline
gcc -std=gnu99 -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -c -o luac.o luac.c
gcc -std=gnu99 -o luac luac.o liblua.a -lm -Wl,-E -ldl -lreadline
make[2]: Leaving directory `/home/lua/lua-5.3.2/src‘
make[1]: Leaving directory `/home/lua/lua-5.3.2/src‘

时间: 2024-08-05 07:07:52

lua.c:80:31: fatal error: readline/readline.h: No such file or directory的相关文章

fatal error: openssl/sha.h: No such file or directory 解决方案

出现这个或者fatal error: openssl/名单.h: No such file or directory.都是没有安装libssl-dev- libssl-dev包含libraries, header files and manpages,他是openssl的一部分,而openssl对ssl进行了实现- 解决方案: 使用sudo apt-get install libssl-dev来安装libssl-dev即可

解决fatal error: sys/system_properties.h: No such file or directory compilation terminated.

编译的异常log: system/core/include/cutils/properties.h:22:35: fatal error: sys/system_properties.h: No such file or directory compilation terminated. make[1]: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libinput_intermediates/<strong>xxxxx</strong>

cocos2d-x 移植到android中编译的一些问题:fatal error: Box2D/Box2D.h: No such file or directory&amp;quot;

1.fatal error: Box2D/Box2D.h: No such file or directory" 须要加入box2d库的支持,改动android.mk文件,例如以下: 查看文本打印? LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := game_shared LOCAL_MODULE_FILENAME := libgame LOCAL_SRC_FILES := hellocpp/main.cpp \

转:fatal error: SDL/SDL.h: No such file or directory

Ubuntu的新得立已经包含SDL库,所以通过几个简单的命令就可以安装,比windows还傻瓜! sudo apt-get install libsdl1.2-dev(比较大,10M左右) 附加包: sudo apt-get install libsdl-image1.2-dev sudo apt-get install libsdl-mixer1.2-dev sudo apt-get install libsdl-ttf2.0-dev sudo apt-get install libsdl-g

cocos2d-x3.2中fatal error: cocostudio/CocoStudio.h: No such file or directory

Android工程环境下jni/android.mk 需要自己手动把引用cocostudio引用库添加上才可以编译 代码参考如下 LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static LOCAL_WHOLE_STATIC_LIBRARIES += cocosdenshion_static LOCAL_WHOLE_STATIC_LIBRARIES += box2d_static LOCAL_WHOLE_STATIC_LIBRARIES += cocostu

错误: fatal error: bits/libc-header-start.h: No such file or directory #include &lt;bits/libc-header-start.h&gt;

出现这个错误时,这多半是你所编译的项目是在64位机器上生成32位的项目,你需要安装对应的gcc 32位的库:此时检查gcc一定有-m32的存在: 你系统中gcc没有安装multilib 库:使用这个库可以在64位的机器上产生32位的程序或者库文件: 你可以选择:apt install gcc-multilib进行完善安装: 也可以只编译特定平台的文件: 例如 make x86_64: 具体编译的目标,请查看Makefile文件进行阅读: 保持更新,转载请注明出处:更多内容请关注cnblogs.c

fatal error: openssl/opensslv.h: No such file

ubuntu系统pip安装paramiko报错fatal error: openssl/opensslv.h: No such file or directory 首先根据报错检查OpenSSL是正常安装的,查看openssl-devel是没有安装的,尝试安装无法安装成功,网上搜索了一下看到这篇文章https://jingyan.baidu.com/article/ea24bc39f72681da62b331d7.html是因为缺少libssh-dev,安装之后可以正常安装paramiko模块了

Redis 2.8.18 安装报错 error: jemalloc/jemalloc.h: No such file or directory解决方法

错误描述 安装Redis 2.8.18时报错: zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or directoryzmalloc.h:55:2: error: #error "Newer version of jemalloc required"make[1]: *** [adlist.o] Error 1make[1]: Leaving directory `/data0/src/redis-2.6.2/src

Redis 2.8.18 安装报错 error: jemalloc/jemalloc.h: No such file or directory

Redis是一个开源的使用ANSI C语言编写.支持网络.可基于内存亦可持久化的日志型.Key-Value数据库,并提供多种语言的API. 本文为大家讲解的是Redis 2.8.18 安装报错 error: jemalloc/jemalloc.h: No such file or directory解决方法,感兴趣的同学参考下. 错误描述 安装Redis 2.8.18时报错: zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or