error: readline/readline.h: No such file or directory

报如下错:

[[email protected] rpy2-2.8.5]# python setup.py install
R version 3.3.2 (2016-10-31) -- "Sincere Pumpkin Patch"
/usr/lib64/R/bin/R CMD config --ldflags
/usr/lib64/R/bin/R CMD config --cppflags

    Compilation parameters for rpy2‘s C components:
        include_dirs    = [‘/usr/include/R‘]
        library_dirs    = [‘/usr/lib64/R/lib‘]
        libraries       = [‘R‘, ‘pcre‘, ‘lzma‘, ‘bz2‘, ‘z‘, ‘rt‘, ‘dl‘, ‘m‘, ‘icuuc‘, ‘icui18n‘]
        extra_link_args = [‘-Wl,--export-dynamic‘, ‘-fopenmp‘]

running install
running bdist_egg
running egg_info
writing requirements to rpy2.egg-info/requires.txt
writing rpy2.egg-info/PKG-INFO
writing top-level names to rpy2.egg-info/top_level.txt
writing dependency_links to rpy2.egg-info/dependency_links.txt
R version 3.3.2 (2016-10-31) -- "Sincere Pumpkin Patch"
reading manifest file ‘rpy2.egg-info/SOURCES.txt‘
reading manifest template ‘MANIFEST.in‘
warning: no previously-included files matching ‘*patch*‘ found anywhere in distribution
warning: no previously-included files matching ‘*diff*‘ found anywhere in distribution
warning: no previously-included files matching ‘.hg‘ found anywhere in distribution
warning: no files found matching ‘MANIFEST‘
warning: no files found matching ‘README‘
warning: no files found matching ‘MPL_LICENSE‘
warning: no files found matching ‘GPL_LICENSE‘
warning: no files found matching ‘LGPL_LICENSE‘
no previously-included directories found matching ‘dist‘
warning: no files found matching ‘doc/source/rpy2_logo.png‘
writing manifest file ‘rpy2.egg-info/SOURCES.txt‘
installing library code to build/bdist.linux-x86_64/egg
running build_clib
building ‘r_utils‘ library
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./rpy/rinterface -I/usr/include/R -c ./rpy/rinterface/r_utils.c -o build/temp.linux-x86_64-2.7/./rpy/rinterface/r_utils.o
In file included from /usr/include/R/Rdefines.h:32,
                 from ./rpy/rinterface/r_utils.c:23:
/usr/include/R/R_ext/Memory.h:47: warning: function declaration isn’t a prototype
In file included from /usr/include/R/Rdefines.h:36,
                 from ./rpy/rinterface/r_utils.c:23:
/usr/include/R/Rinternals.h:882: warning: function declaration isn’t a prototype
ar rc build/temp.linux-x86_64-2.7/libr_utils.a build/temp.linux-x86_64-2.7/./rpy/rinterface/r_utils.o
running install_lib
running build_py
running build_ext
building ‘rpy2.rinterface._rinterface‘ extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DR_INTERFACE_PTRS=1 -DHAVE_POSIX_SIGJMP=1 -DRIF_HAS_RSIGHAND=1 -DCSTACK_DEFNS=1 -DHAS_READLINE=1 -I./rpy/rinterface -I/usr/include/R -I/usr/local/python27/include/python2.7 -c ./rpy/rinterface/_rinterface.c -o build/temp.linux-x86_64-2.7/./rpy/rinterface/_rinterface.o
In file included from /usr/local/python27/include/python2.7/Python.h:8,
                 from ./rpy/rinterface/_rinterface.c:49:
/usr/local/python27/include/python2.7/pyconfig.h:1190:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/signal.h:29,
                 from ./rpy/rinterface/_rinterface.c:45:
/usr/include/features.h:213:1: warning: this is the location of the previous definition
In file included from /usr/include/R/R.h:76,
                 from ./rpy/rinterface/_rinterface.h:8,
                 from ./rpy/rinterface/_rinterface.c:52:
/usr/include/R/R_ext/Memory.h:47: warning: function declaration isn’t a prototype
In file included from ./rpy/rinterface/_rinterface.h:9,
                 from ./rpy/rinterface/_rinterface.c:52:
/usr/include/R/Rinternals.h:882: warning: function declaration isn’t a prototype
In file included from ./rpy/rinterface/_rinterface.c:64:
/usr/include/R/Rinterface.h:146: warning: function declaration isn’t a prototype
In file included from ./rpy/rinterface/_rinterface.c:73:
/usr/include/R/R_ext/Rdynload.h:32: warning: function declaration isn’t a prototype
./rpy/rinterface/_rinterface.c:80:31: error: readline/readline.h: No such file or directory
In file included from ./rpy/rinterface/_rinterface.c:116:
./rpy/rinterface/embeddedr.c: In function ‘SexpObject_clear’:
./rpy/rinterface/embeddedr.c:48: warning: unused variable ‘res’
In file included from ./rpy/rinterface/_rinterface.c:119:
./rpy/rinterface/sexp.c: In function ‘Sexp_init’:
./rpy/rinterface/sexp.c:742: warning: unused variable ‘copy’
./rpy/rinterface/_rinterface.c: In function ‘EmbeddedR_init’:
./rpy/rinterface/_rinterface.c:1393: error: ‘rl_completer_word_break_characters’ undeclared (first use in this function)
./rpy/rinterface/_rinterface.c:1393: error: (Each undeclared identifier is reported only once
./rpy/rinterface/_rinterface.c:1393: error: for each function it appears in.)
./rpy/rinterface/_rinterface.c:1396: error: ‘rl_basic_word_break_characters’ undeclared (first use in this function)
error: command ‘gcc‘ failed with exit status 1

解决办法:

[[email protected] rpy2-2.8.5]# yum install readline-devel
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirrors.btte.net
 * extras: mirrors.zju.edu.cn
 * updates: mirrors.zju.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package readline-devel.x86_64 0:6.0-4.el6 will be installed
--> Processing Dependency: ncurses-devel for package: readline-devel-6.0-4.el6.x86_64
--> Running transaction check
---> Package ncurses-devel.x86_64 0:5.7-4.20090207.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================================================================================================
 Package                                    Arch                               Version                                          Repository                        Size
=======================================================================================================================================================================
Installing:
 readline-devel                             x86_64                             6.0-4.el6                                        base                             134 k
Installing for dependencies:
 ncurses-devel                              x86_64                             5.7-4.20090207.el6                               base                             641 k

Transaction Summary
=======================================================================================================================================================================
Install       2 Package(s)

Total download size: 776 k
Installed size: 2.0 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): ncurses-devel-5.7-4.20090207.el6.x86_64.rpm                                                                                              | 641 kB     00:00
(2/2): readline-devel-6.0-4.el6.x86_64.rpm                                                                                                      | 134 kB     00:00
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                  1.2 MB/s | 776 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : ncurses-devel-5.7-4.20090207.el6.x86_64                                                                                                             1/2
  Installing : readline-devel-6.0-4.el6.x86_64                                                                                                                     2/2
  Verifying  : ncurses-devel-5.7-4.20090207.el6.x86_64                                                                                                             1/2
  Verifying  : readline-devel-6.0-4.el6.x86_64                                                                                                                     2/2 

Installed:
  readline-devel.x86_64 0:6.0-4.el6                                                                                                                                    

Dependency Installed:
  ncurses-devel.x86_64 0:5.7-4.20090207.el6                                                                                                                            

Complete!
[[email protected] rpy2-2.8.5]# 
时间: 2024-08-09 05:35:22

error: readline/readline.h: No such file or directory的相关文章

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

出错mlogc.c:32:23: error: curl/curl.h: No such file or directory

出现下列错误: mlogc.c:32:23: error: curl/curl.h: No such file or directory mlogc.c:1091: error: expected ')' before '*' token mlogc.c: In function 'logc_init': 出错原因:缺少libcurl-dev or libcurl-devel centOS上安装依赖包: yum install libcurl-dev libcurl-devel 出错mlogc.

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 \

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

error: zlib.h:no such file or directory

今天在编译openssl时,出现了 error: zlib.h:no such file or directory 去看了下出错的文件,里面这么一句#include c_zlib.c:25:19: fatal error: zlib.h: No such file or directory # include <zlib.h> zlib地址:http://www.zlib.net/ zlib标准安装指导: /usr/local/src/zlib-1.2.8 构建静态库 .../zlib-1.2

error: openssl/md5.h: No such file or directory

出现:error: openssl/md5.h: No such file or directory 原因是openssl-devel没有安装,运行: yum install libssl-dev 就能够了 我用的Fodera找不到libssl-dev,就运行yum install openssl openssl-devel linux下apache+php安装常见问题 http://hi.baidu.com/easyphp/item/f0e4064c21679deea4c066c9 2) Ch

Redis 安装报错 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 directory zmalloc.h:55:2: error: #error "Newer version of jemalloc required" make[1]: *** [adlist.o] Error 1 make[1]: Leaving directory `/data0/src/redis-2.6.2/

编译 redis 报错 error: jemalloc/jemalloc.h: No such file or directory

gcc编译redis时报错: zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or directory zmalloc.h:55:2: error: #error "Newer version of jemalloc required" 原因是jemalloc重载了Linux下的ANSI C的malloc和free函数.解决办法:make时添加参数. make MALLOC=libc