I am compiling php7 from source and have pre compiled a number of dependencies in /home/mybin
for example I have openssl in
我从源代码编译php7,并在/home/mybin中编译了一些依赖项,例如,我有openssl。
/home/mybin/bin/openssl
/home/mybin/include/openssl/*.h
I have also readline as
我也有readline。
/home/mybin/include/readline/readline.h
using the php compile options
使用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 \
i have tried the following options for readline
我已经尝试了下面的选项以供readline使用。
--with-readline=/home/mybin/include/readline
OR
--with-readline=/home/mybin/
OR
--with-readline
all variations end with configure: error: Please reinstall readline - I cannot find readline.h
所有的变化都以配置结束:错误:请重新安装readline -我无法找到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?
从源和/home/mybin构建的所有其他依赖项都没有发现问题。你能建议我应该设置什么标志吗?h可以找到?
thx Art
thx艺术
2 个解决方案
#1
1
please see http://*.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
请参见http://*.com/questions/35891777/linux-correct- pass-gcc-mcrypt-h-location,以便更好地描述如何解决这两个问题。
#2
0
for readline you need to install
对于readline,您需要安装。
sudo apt install -y libedit-dev libreadline-dev
sudo apt安装-y libedit-dev libreadline-dev。
#1
1
please see http://*.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
请参见http://*.com/questions/35891777/linux-correct- pass-gcc-mcrypt-h-location,以便更好地描述如何解决这两个问题。
#2
0
for readline you need to install
对于readline,您需要安装。
sudo apt install -y libedit-dev libreadline-dev
sudo apt安装-y libedit-dev libreadline-dev。