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
Similar Posts:
- [Solved] php -v Error: error while loading shared libraries: libonig.so.5:cannot open share directory
- How to Enable EPEL Repository for CentOS 7.x/6.x/5.x
- [Solved] Cannot retrieve metalink for repository: epel
- Yum installer reported an error: nothing to do [How to Solve]
- The solution of error: XZ compression not available
- Installing iperf on CentOS
- [How to Solve] Centos 14: problem making ssl connection
- Delta RPMs disabled because /usr/bin/applydeltarpm not installed
- Centos6 upgrades glibc-2.17 to solve requirements: libc. So. 6 (glibc)_ 2.14) (64bit) error resolution
- Python upgrade resulted in an error using yum