linux php 7 configure:错误:请重新安装readline-我找不到readline.h,但已安装 [英] linux php 7 configure: error: Please reinstall readline - I cannot find readline.h, but it is installed

查看:659
本文介绍了linux php 7 configure:错误:请重新安装readline-我找不到readline.h,但已安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从源代码编译php7,并已在/home/mybin中预编译了许多依赖项,例如,我在

I am compiling php7 from source and have pre compiled a number of dependencies in /home/mybin for example I have openssl in

   /home/mybin/bin/openssl
   /home/mybin/include/openssl/*.h

我也将readline设为

I have also readline as

/home/mybin/include/readline/readline.h

使用php编译选项

./configure \
CC=/home/mybin/bin/gcc \
--prefix=/home/_cgi/php7 \
--bindir=/home/mybin/bin \
--libdir=/home/mybin/lib \
--with-libdir=/home/mybin/lib64 \
--includedir=/home/mybin/include \
--include-openssl \

我已经尝试过以下用于readline的选项

i have tried the following options for readline

--with-readline=/home/mybin/include/readline
OR 
--with-readline=/home/mybin/
OR
--with-readline

所有变体以configure: error: Please reinstall readline - I cannot find readline.h

从源代码和/home/mybin中构建的所有其他依赖项都没有问题.您能建议我设置什么标志以便找到readline.h吗?

All other dependencies built from source and in /home/mybin are found no problem. Can you suggest what flag I sould set so readline.h can be found?

thx Art

推荐答案

请参阅

please see http://stackoverflow.com/questions/35891777/linux-correct-flag-to-pass-gcc-mcrypt-h-location for a good description of how to fix this issue as both are related

这篇关于linux php 7 configure:错误:请重新安装readline-我找不到readline.h,但已安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆