PHP编译报错记录

PHP编译:error adding symbols: DSO missing from command line

经过半天的摸爬滚打,解决办法如下:

1. ./configure --disable-shared --enable-static

2. make&make test

3. make install

CentOS 7 编译安装 PHP 7.4 提示 No package oniguruma found

一般安装epel 然后安装即可:

yum install -y epel-release
yum install -y oniguruma oniguruma-devel

不行的话就手动安装/更新 epel:

rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
yum install -y https://www.elrepo.org/elrepo-release-7.el7.elrepo.noarch.rpm
yum install -y oniguruma oniguruma-devel

或者:

Centos 7,直接执行以下命令即可安装:

yum -y install https://rpms.remirepo.net/enterprise/7/remi/x86_64/oniguruma5php-6.9.6-1.el7.remi.x86_64.rpm
yum -y install https://rpms.remirepo.net/enterprise/7/remi/x86_64/oniguruma5php-devel-6.9.6-1.el7.remi.x86_64.rpm

或者:

yum remove epel-release #如果报冲突,先把冲突的包删除
rpm -ivh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install -y oniguruma oniguruma-devel
yum clean all && yum makecache
yum repolist all #检查 epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 是否启用

如何把boost单独编译进去so文件中

https://github.com/ulfjack/ryu/issues/111

https://www.boost.org/doc/libs/1_77_0/doc/html/boost_asio/using.html#boost_asio.using.optional_separate_compilation

 

posted @ 2021-11-15 15:06  花花蛋  阅读(148)  评论(0)    收藏  举报