php8编译安装
wget https://www.php.net/distributions/php-8.0.0.tar.gz
tar zxvf php-8.0.0.tar.gz
cd php-8.0.0
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-opcache --enable-shmop --enable-pcntl --enable-cgi --enable-fpm --enable-sockets --enable-soap --enable-bcmath --enable-mbstring --enable-xml --with-zlib --with-mysqli --enable-pdo --with-pdo-mysql --with-curl --with-mhash --with-mcrypt --with-openssl --with-iconv
No package 'libcurl' found
yum install libcurl-devel
yum install libxml2-devel.x86_64
php编译安装报错:make: *** [sapi/cli/php] Error 1 解决办法
wget https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.15.tar.gz
tar zxvf libiconv-1.15.tar.gz
cd libiconv-1.15
# ./configure --prefix=/usr/local
make
make install
ln -s /usr/local/lib/libiconv.so.2 /usr/lib64/
No package 'oniguruma' found
yum install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng-dev \
zlib1g-dev \
libxml2-dev \
libzip-dev \
graphviz \
make 和 make install 报错
undefined reference to `curl_pushheader_bynum'
1
解决方法
yum remove curl-devel
Build complete.
Don't forget to run 'make test'.
[root@crius php-8.0.0]# make install
Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-non-zts-20200930/
Installing PHP CLI binary: /usr/local/php/bin/
Installing PHP CLI man page: /usr/local/php/php/man/man1/
Installing PHP FPM binary: /usr/local/php/sbin/
Installing PHP FPM defconfig: /usr/local/php/etc/
Installing PHP FPM man page: /usr/local/php/php/man/man8/
Installing PHP FPM status page: /usr/local/php/php/php/fpm/
Installing phpdbg binary: /usr/local/php/bin/
Installing phpdbg man page: /usr/local/php/php/man/man1/
Installing PHP CGI binary: /usr/local/php/bin/
Installing PHP CGI man page: /usr/local/php/php/man/man1/
Installing build environment: /usr/local/php/lib/php/build/
Installing header files: /usr/local/php/include/php/
Installing helper programs: /usr/local/php/bin/
program: phpize
program: php-config
Installing man pages: /usr/local/php/php/man/man1/
page: phpize.1
page: php-config.1
/cshare/php-8.0.0/build/shtool install -c ext/phar/phar.phar /usr/local/php/bin/phar.phar
ln -s -f phar.phar /usr/local/php/bin/phar
Installing PDO headers: /usr/local/php/include/php/ext/pdo/
posted on 2020-12-01 15:16 coding-farmer 阅读(1545) 评论(0) 编辑 收藏 举报