Tag Archives: PHP Compile Error

[Solved] PHP Compile error: error adding symbols: DSO missing from command line

PHP compilation: error adding symbols: DSO missing from command line

After half a day’s struggle, the solution is as follows:

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

2. make& make test

3. make install

Tips for compiling and installing PHP 7.4 in CentOS 7

Generally, install EPEL and then install:

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

If not, install/update EPEL manually:

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

Or:

CentOS 7 can be installed directly by executing the following commands:

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

Or:

yum remove epel-release #If a conflict is reported, remove the conflicting package first
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 #Check epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 is or not disabled

How to compile boost into a separate so file
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