当前位置:首页 » 操作系统 » php7源码安装

php7源码安装

发布时间: 2024-12-24 21:38:10

‘壹’ php7.2.1安装文档

一. 在安装PHP7.2.1前,确保你的系统已经安装了必要的依赖。这包括了C语言编译器和可能的其他工具。

二. 需要编译libmcrypt、mhash、mcrypt库,这些库在处理加密和散列操作时非常有用。你可以通过下载源代码文件并执行编译过程来完成这一任务。具体步骤包括解压文件、进入源代码目录、运行configure脚本、然后执行make和make install命令。

三. 接下来,使用对应的安装命令来安装PHP7.2.1。这通常需要下载二进制安装包或源码,然后通过编译源码来生成可执行文件。请确保在安装过程中遵循正确的命令和路径。

四. 在安装过程中,有一些注意事项需要特别注意。例如,确保你的系统资源(如内存和CPU)足够用于安装和运行PHP。此外,需要检查已安装的系统库和软件是否与PHP7.2.1兼容。最后,确认安装路径和配置文件的位置,避免在后续使用中遇到问题。

五. 开启多PHP-fpm(FastCGI Process Manager)方法是提高PHP应用程序性能的关键步骤。这涉及到配置Apache或Nginx与PHP-fpm的连接,以及设置PHP-fpm池的参数。通过调整worker进程的数量、启动时间、最大连接数等参数,可以优化服务器性能和稳定性。确保在配置文件中正确设置这些参数,以确保应用能够高效运行。

‘贰’ php7 怎么安装mcrypt模块

进入php源程序目录中的ext目录中,这里存放着各个扩展模块的源代码,选择你需要的模块,比如curl模块:cd curl
执行phpize生成编译文件,phpize在PHP安装目录的bin目录下
/usr/local/php5/bin/phpize
运行时,可能会报错:Cannot find autoconf. Please check your autoconf installation and
the $PHP_AUTOCONF
environment variable is set correctly and then rerun this
script.,需要安装autoconf:
yum install autoconf(RedHat或者CentOS)、apt-get install
autoconf(Ubuntu linux
/usr/local/php5/bin/php -v
执行这个命令时,php会去检查配置文件是否正确,如果有配置错误,
这里会报错,可以根据错误信息去排查!你看过后很简单吧以后不会可以向我一样经常到后盾人平台找找相关教材看看就会了,希望能帮到你,给个采纳吧谢谢_(•̀ω•́ ”∠)_

‘叁’ linux环境安装PHP环境的步骤和前期准备的注意事项有哪些

一.架构。确认你安装 的架构是什么 lamp ,还是 lnmp。首先需要能搭建出环境
1。两者都要安装 php ,其中 php 安装的过程有很多
可以参考一下:php 源码安装
这个安装是 php5的,如果安装的 是 php7,编译会有一点不同:
安装 php -
2。都需要安装 mysql
mysql 源码安装
3。如果需要安装apache:
apache 安装
apache 都其他配置,请在本页面搜索:apache -
如果需要安装 nginx:
nginx 访问 php -
二.依赖模块编译。这种安装环境主要看你程序当中用到了那些 依赖模块,编译的时候需要注意
包括 nginx /apache ,php
三.配置。上面已经有相关配置介绍,需要自己去熟悉相关都配置是什么意思,需要哪些配置。
四.此处迁移还涉及到数据库到迁移,可以参考一下相关命令

‘肆’ ubuntu 16.04 php7.0婧愰噷闱㈠畨瑁呯殑镐庝箞寰閲岄溃娣诲姞妯″潡

ubuntu 16.04 php7.0婧愰噷闱㈠畨瑁呯殑镐庝箞寰閲岄溃娣诲姞妯″潡
pdo镓╁𪾢妯℃槸链夎洰澶氢简锛屽俻do_mysql涔熸槸pdo妯″潡涓镄勪竴涓浜嗭纴涓嬫枃鎴戜滑灏变互瀹夎卲do_mysql涓虹ず渚嫔府锷╁ぇ瀹朵粙缁崭竴涓嫔畨瑁呮ラゅ惂锛屽叾瀹幂殑pdo镓╁𪾢妯″潡瀹夎呮ラや篃鍙浠ヤ竴镙枫
锅囱绯hp鐩褰曚负/usr/local/php
mysql鐩褰曚负/usr/local/mysql
1. 杩涘叆PHP婧愮爜鍖卐xt/pdo鐩褰
cd ext/pdo
2. 镓ц/usr/local/php/bin/phpize[锅囱綪HP镄勫畨瑁呯洰褰曚负/usr/local/php]
/usr/local/php/bin/phpize
3. 閰岖疆镓╁𪾢pdo
./configure --with-php-config=/usr/local/php/bin/php-config --enable-pdo=shared
4. 缂栬疟 && 瀹夎卲do
make && make install
鎴愬姛鍒椤嚭鐜
Installing shared extensions: /usr/local/php//lib/php/extensions/no-debug-non-zts-20060613/
Installing header files: /usr/local/php//include/php/
Installing PDO headers: /usr/local/php//include/php/ext/pdo/
璇存槑鍦/usr/local/php//lib/php/extensions/no-debug-non-zts-20060613/鐩褰曚笅鐢熸垚浜唒do.so鏂囦欢
5. 鍦≒HP婧愮爜鍖呬腑杩涘叆pdo_mysql
cd ext/pdo_mysql
6. /usr/local/php/bin/phpize
/usr/local/php/bin/phpize
7. 閰岖疆pdo_mysql[锅囱綧ysql镄勫畨瑁呯洰褰曚负/usr/local/mysql]
1./configure --with-php-config=/usr/local/php/bin/php-config --with-pdo-mysql=/usr/local/mysql
8. 缂栬疟 瀹夎卲do_mysql
make && make install
鎴愬姛鍒椤嚭鐜
Installing shared extensions: /usr/local/php//lib/php/extensions/no-debug-non-zts-20060613/
璇存槑镄/usr/local/php//lib/php/extensions/no-debug-non-zts-20060613/鐩褰曚笅鐢熸垚浜唒do_mysql.so鏂囦欢
9. 鍦╬hp閰岖疆鏂囦欢涓锷犱笂
extension="/usr/local/php//lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so";
extension="/usr/local/php//lib/php/extensions/no-debug-non-zts-20060613/pdo.so";
10. 閲嶅惎鐩稿叧链嶅姟
/etc/init.d/php-fpm restart

‘伍’ PHP - php7编译安装及新特性

深入学习PHP7的初衷在于全面理解PHP底层原理与语言结构,为开发PHP扩展和构建Swoole框架提供坚实基础,以解决实际生产中的性能问题,提升工作效率。


在CentOS或Ubuntu系统上搭建环境,对于裸镜像,推荐使用yum update(centos)或apt-get update(Ubuntu)进行更新。


选择CentOS 7作为实验环境。


开始环境搭建,利用Docker在CentOS 7上搭建环境。选用合适版本的PHP源码,通过以下链接下载:https://www.php.net/distributions/php-版本号.tar.gz。


解压并编译PHP源码。在编译过程中,可能会遇到各种错误,如找不到编译器、缺少必要的软件等。解决这些错误通常需要安装相应的依赖包。


正确编译并执行make && make install,确保PHP安装成功。


对比PHP 5.6、PHP 7.1.0与PHP 8的官方性能测试结果,发现PHP 7.1.0的性能优于PHP 5.6,而PHP 8在性能测试中表现更优。


PHP 7的新特性包括:



  • 太空船操作符``,简化比较操作。

  • 类型声明,提高代码可读性和可维护性。

  • null合并操作符,优化null值处理。

  • NameSpace批量导入,简化大型项目的命名空间管理。


PHP 8新增特性之一是`throwable`接口,允许更精细地处理异常。


尝试`try..catch`结构,捕获并处理错误信息,提高程序鲁棒性。


使用列表的括号写法,使代码更简洁。


抽象语法树(AST)是PHP 7+版本的新增特性,提升编译器性能并支持更高级的编译优化。

‘陆’ debian8怎么安装php7

debian8 编译安装 php7
目录(?)[-]
Please reinstall the libcurl distributionCannot find OpenSSL
configure error Unable to locate gmph
Can not find recodeh anywhere under usr usrlocal usr optCannot find pspell
Please reinstall the mysql distribution
mcrypth not found Please reinstall libmcryptxml2-config not found
安装编译器
apt-get install build-essential autoconf automake libtool bison re2c获取PHP安装包
wget https://downloads.php.net/~ab/php-7.0.13RC1.tar.gz安装dev包
apt-get install libxml2-dev libssl-dev libbz2-dev libjpeg-dev libpng-dev libxpm-dev libfreetype6-dev libgmp-dev libgmp3-dev libmcrypt-dev libmysqlclient15-dev libpspell-dev librecode-dev进行编译安装
./buildconf //用来生成configure脚本
./configure \
--prefix=/usr \
--with-config-file-path=/etc \
--enable-mbstring \
--enable-zip \
--enable-bcmath \
--enable-pcntl \
--enable-ftp \
--enable-exif \
--enable-calendar \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx \
--with-curl \
--with-mcrypt \
--with-iconv \
--with-gmp \
--with-pspell \
--with-gd \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-zlib-dir=/usr \
--with-xpm-dir=/usr \
--with-freetype-dir=/usr \
--with-t1lib=/usr \
--enable-gd-native-ttf \
--enable-gd-jis-conv \
--with-openssl \
--with-pdo-mysql=/usr \
--with-gettext=/usr \
--with-zlib=/usr \
--with-bz2=/usr \
--with-recode=/usr \
--with-mysqli=/usr/bin/mysql_config
备注:错误1:Cannot find OpenSSL's libraries 解决:
确认已安装过 openssl、libssl-dev 包,还是会提示该错误;解决办法:
root@test2:~/php-5.3.27# find / -name libssl.so输出结果为: /usr/lib/x86_64-Linux-gnu/libssl.so初步判断它可能只会在 /usr/lib/ 下寻找 libssl.so 文件,于是:
ln -s /usr/lib/x86_64-linux-gnu/libssl.so /usr/lib错误2:debian Please reinstall the libcurl distribution 解决:
# RetHat CentOS or Fedora 使用下面安装命令yum install curl curl-devel
# Debian or Ubuntu使用下面的安装命令
apt-get install curl
apt-get install libcurl4-gnutls-dev
错误3:Unable to locate gmp.h 解决:
在https://launchpad.net/debian/+source/gmp 下载 gmp源码包,接着 ./configure && make && make install编译 安装
make &&make install
报错处理
Please reinstall the libcurl distributionaptitude search libcurl4
aptitude install libcurl4-gnutls-dev
Cannot find OpenSSL’
wget https://www.openssl.org/source/openssl-1.0.2j.tar.gztar -zxvf openssl-1.0.2j.tar.gz
cd openssl-1.0.2j
./config
make && make install
configure: error: Unable to locate gmp.h
sudo apt-get install libgmp-dev libgmp3-devln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.hCan not find recode.h anywhere under /usr /usr/local /usr /opt.
apt-get install librecode-dev
Cannot find pspell
apt-get install libpspell-dev
Please reinstall the mysql distribution
apt-get install libmysqlclient15-dev
mcrypt.h not found. Please reinstall libmcrypt.
apt-get install libmcrypt-dev
xml2-config not found
apt-get install libxml2-dev

‘柒’ 如何在linux下安装多个不同版本的PHP

Linux下部署php多版本共存
背景说明
自php7问世,身为最新版本控的我马上升级体验,但是由于服务器上还有旧程序在运行,只好部署一个php多版本共存环境。
现有环境是lnmp
- CentOS 6.7
- nginx 1.10.1
- mariadb-10.0.26
- php 7.0.8
为了更好兼容旧的php程序,推荐使用5.4.45. 主要是兼容mysql扩展。
开始安装
首先要下载php-5.4.45.tar.gz源码包。
通过源码安装
# tar xzvf php-5.4.45.tar.gz
# cd php-5.4.45

# ./configure --prefix=/usr/local/php54 --with-config-file-path=/usr/local/php54/etc --enable-fpm --with-fpm-user=www --with-fpm-group=www --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-iconv-dir --with-freetype-dir=/usr/local/freetype --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-mbstring --with-mcrypt --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --with-gettext --disable-fileinfo --enable-intl --with-xsl

# make ZEND_EXTRA_LIBS='-liconv'
# make install
# cp php.ini-proction /usr/local/php/etc/php.ini

------------------------------------------------------------------------------------------------
php.ini 配置
post_max_size = 50M
upload_max_filesize = 50M
date.timezone = PRC
short_open_tag = On
cgi.fix_pathinfo=0
max_execution_time = 300
disable_functions=passthru,exec,system,chroot,scandir,chgrp,chown,shell_exec,proc_open,proc_get_status,popen,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server
------------------------------------------------------------------------------------------------
php-fpm.conf 配置
------------------------------
# vim /usr/local/php/etc/php-fpm.conf1
[global]
pid = /usr/local/php54/var/run/php-fpm.pid
error_log = /usr/local/php54/var/log/php-fpm.log
log_level = notice

[www]
listen = /tmp/php54-cgi.sock
listen.backlog = -1
listen.allowed_clients = 127.0.0.1:9001
listen.owner = www
listen.group = www
listen.mode = 0666
user = www
group = www
pm = dynamic
pm.max_children = 40
pm.start_servers = 20
pm.min_spare_servers = 20
pm.max_spare_servers = 40
request_terminate_timeout = 100
request_slowlog_timeout = 0
slowlog = var/log/slow.log

----------------------------------------------------------------------------------
启动 php-fpm
# cp sapi/fpm/init.d.php-fpm /etc/init.d/php54-fpm
# chmod +x /etc/init.d/php54-fpm
# /etc/init.d/php54-fpm start
-------------------------------------------------------------------------------------------
修改nginx配置,对需要的服务配置使用php-5.4.45
location ~ [^/]\.php(/|$)
{
try_files $uri =404;
fastcgi_pass unix:/tmp/php54-cgi.sock;
fastcgi_index index.php;
include fastcgi.conf;
}
----------------------------------------------------------------------------------------
配置php-5.4.45 的php54-fpm 开机自动启动
# chkconfig --add php54-fpm
# chkconfig php54-fpm on

‘捌’ centos7安装php

centos7系统源码编译安装PHP7.3.5版本

新增系统用户组和用户:

下载PHP7.3.5

[root@localhost~]#mkdirdevdir

[root@localhost~]#cddevdir/腔李

[root@localhostdevdir]#wget

-bash:wget:未找到命令

[root@localhostdevdir]#rpm-qa|grepwget

[root@localhostdevdir]#yum-yinstallwget

[root@localhostdevdir]#rpm-qa|grepwget

wget-1.14-18.el7.x86_64

下载PHP7解压编译

wget-c

编译参数解释

--with-fpm-user=webu--with-fpm-group=webg添加PHP运行用户和用户组

配置信息出庆饥错:

下载gcc软件编译器yuminstall-ygcc

configure:error:libxml2notfound..

下载libzip-1.5.2.tar.gz

解决libzip和cmake版本问题

重新配置PHP7编译环境参数

libzip-1.5.2无法安装誉圆返,已经取消了。

提示off_t类型没有定义undefind,解决方法:

编译安装

测试PHP是否安装成功

转载自:

阿里云默认centos7上怎么安装php

首先更新系统软件/str

$yumupdate

安装nginx/str/str

1.安装nginx源

$yumlocalinstall.安装nginx

$yuminstallnginx

3.启动nginx

$servicenginxstart

Redirectingto/bin/systemctlstartnginx.service4.访问http://你的ip/

如果成功安装会出来nginx默认的欢迎界面

安装MySQL5.7.*

/str

1.安装mysql源/str

$yumlocalinstall.安装mysql

$yuminstallmysql-community-server

确认一下mysql的版本,有时可能会提示mysql5.63.安装mysql的开发包,以后会有用

$yuminstallmysql-community-devel

4.启动mysql

$servicemysqldstart

Redirectingto/bin/systemctlstartmysqld.service5.查看mysql启动状态

$servicemysqldstatus

出现pid

证明启动成功

6.获取mysql默认生成的密码

$grep'temporarypassword'/var/log/mysqld.log2015-12-05T05:41:09.104758Z1[Note]@localhost:%G1Rgns!dD!v/str

加粗的就是生成的密码

7.换成自己的密码

$mysql-uroot-p

Enterpassword:输入上面的密码

成功输入后进入一下步,这里你估计会输入好几次才进去8.更换密码

mysqlALTERUSER'root'李并@'localhost'IDENTIFIEDBY'MyNewPass4!'这个密码一定要足够复杂,不然会不让你改,提示密码不合法;9.退出mysql;

mysqlquit;

10.用新密码再登录,试一下新密码

$mysql-uroot-p

Enterpassword:输入你的新密码

11.确认密码正确后,退出mysql;

mysql哪衫迹quit;

编译安装php7.0.0

/str

/str

1.下载php7源码包/str

$cd/rootwget-Ophp7.tar.gz.解压源码包/str

$tar-xvfphp7.tar.gz

3./str

$cdphp-7.0.1

4.安塌乱装php依赖包/str

/str

$yuminstalllibxml2libxml2-developensslopenssl-develbzip2bzip2-devellibcurllibcurl-devellibjpeglibjpeg-devellibpnglibpng-develfreetypefreetype-develgmpgmp-devellibmcryptlibmcrypt-develreadlinereadline-devellibxsltlibxslt-devel5.编译配置,这一步我们会遇到很多configureerror,我们一一解决,基本都是相关软件开发包没有安装导致/str

/str

$./configure

--prefix=/usr/local/php

--with-config-file-path=/etc

--enable-fpm

--with-fpm-user=nginx

--with-fpm-group=nginx

--enable-inline-optimization

--disable-debug

--disable-rpath

--enable-shared

--enable-soap

--with-libxml-dir

--with-xmlrpc

--with-openssl

--with-mcrypt

--with-mhash

--with-pcre-regex

--with-sqlite3

--with-zlib

--enable-bcmath

--with-iconv

--with-bz2

--enable-calendar

--with-curl

--with-cdb

--enable-dom

--enable-exif

--enable-fileinfo

--enable-filter

--with-pcre-dir

--enable-ftp

--with-gd

--with-openssl-dir

--with-jpeg-dir

--with-png-dir

--with-zlib-dir

--with-freetype-dir

--enable-gd-native-ttf

--enable-gd-jis-conv

--with-gettext

--with-gmp

--with-mhash

--enable-json

--enable-mbstring

--enable-mbregex

--enable-mbregex-backtrack

--with-libmbfl

--with-onig

--enable-pdo

--with-mysqli=mysqlnd

--with-pdo-mysql=mysqlnd

--with-zlib-dir

--with-pdo-sqlite

--with-readline

--enable-session

--enable-shmop

--enable-simplexml

--enable-sockets

--enable-sysvmsg

--enable-sysvsem

--enable-sysvshm

--enable-wddx

--with-libxml-dir

--with-xsl

--enable-zip

--enable-mysqlnd-compression-support

--with-pear

--enable-opcache

configureerror:

1.configure:error:xml2-confignotfound..

解决:

$yuminstalllibxml2libxml2-devel

2.configure:error:CannotfindOpenSSL'sevp.h

解决:

$yuminstallopensslopenssl-devel

3.configure:error:解决:

$yuminstallbzip2bzip2-devel

4.configure:error:-easy.hshouldbeincurl-dir/include/curl/解决:

$yuminstalllibcurllibcurl-devel

5.Ifconfigurefailstry--with-webp-dir=DIRconfigure:error:jpeglib.hnotfound.

解决:

$yuminstalllibjpeglibjpeg-devel

6.Ifconfigurefailstry--with-webp-dir=DIR

checkingforjpeg_read_headerin-ljpeg...yesconfigure:error:png.hnotfound.

解决:

$yuminstalllibpnglibpng-devel

7.Ifconfigurefailstry--with-webp-dir=DIR

checkingforjpeg_read_headerin-ljpeg...yescheckingforpng_write_imagein-lpng...yesIfconfigurefailstry--with-xpm-dir=DIR

configure:error:freetype-confignotfound.

解决:

$yuminstallfreetypefreetype-devel

8.configure:error:Unabletolocategmp.h解决:

$yuminstallgmpgmp-devel

9.configure:error:mcrypt.hnotfound.Pleasereinstalllibmcrypt.

解决:

$yuminstalllibmcryptlibmcrypt-devel

10.configure:error:Pleasereinstallreadline-Icannotfindreadline.h解决:

$yuminstallreadlinereadline-devel

11.configure:error:xslt-confignotfound.Pleasereinstallthelibxslt=1.1.0distribution解决:

$yuminstalllibxsltlibxslt-devel

6.编译与安装

$makemakeinstall

这里要make好久,要耐心一下

7.添加PHP命令到环境变量

$vim/etc/profile

在末尾加入

PATH=$PATH:/usr/local/php/bin

exportPATH

要使改动立即生效执行

$./etc/profile

$source/etc/profile

查看环境变量

$echo$PATH

查看php版本

$php-v

8.配置php-fpm

$cpphp.ini-proction/etc/php.ini

$cp/usr/local/php/etc/php-fpm.conf.default/usr/local/php/etc/php-fpm.conf$cp/usr/local/php/etc/php-fpm.d//usr/local/php/etc/php-fpm.d/cpsapi/fpm/init.d.php-fpm/etc/init.d/php-fpm$chmod+x/etc/init.d/php-fpm

9.启动php-fpm

$/etc/init.d/php-fpmstart

配置nginx虚拟机,绑定域名/str

1.

/str

$vim/etc/nginx/conf.d/php7.thinkcmf.com.conf这里可以把php7.thinkcmf.com.conf改成自己的域名把下面的内容复制到php7.thinkcmf.com.conf里server{

listen80;

server_namephp7.thinkcmf.com;

root/var/www/html/php7.thinkcmf.com;#该项要修改为你准备存放相关网页的路径location/{

indexindex.phpindex.htmlindex.htm;

#如果请求既不是一个文件,也不是一个目录,则执行一下重写规则if(!-e$request_filename)

{

#地址作为将参数rewrite到index.php上。

rewrite^/(.*)$/index.php/$1;

#若是子目录则使用下面这句,将subdir改成目录名称即可。

#rewrite^/subdir/(.*)$/subdir/index.php/$1;}

}

#proxythephpscriptstophp-fpm

location~.php{

includefastcgi_params;

##pathinfo支持start

#定义变量$path_info,用于存放pathinfo信息set$path_info"";

#定义变量$real_script_name,用于存放真实地址set$real_script_name$fastcgi_script_name;#如果地址与引号内的正则表达式匹配

if($fastcgi_script_name~"^(.+?.php)(/.+)$"){#将文件地址赋值给变量$real_script_name

set$real_script_name$1;

#将文件地址后的参数赋值给变量$path_info

set$path_info$2;

}

#配置fastcgi的一些参数

fastcgi_paramSCRIPT_FILENAME$document_root$real_script_name;fastcgi_paramSCRIPT_NAME$real_script_name;fastcgi_paramPATH_INFO$path_info;

###pathinfo支持end

fastcgi_intercept_errorson;

fastcgi_pass127.0.0.1:9000;

}

}

2.重启nginx

$servicenginxreload

3.

$vim/var/www/html/php7.thinkcmf.com/index.php/str

把下面的代码复制到这个文件里

?php

phpinfo();

4.查看访问

Centos7下PHP7最新版怎么安装

步骤1:检查已安装的内核版本#uname-sr步骤2:在CentOS7中升级内核接下来,安装最新的主线稳定内核:#yum--enablerepo=elrepo-kernelinstallkernel-ml最后,重启机器并应用最新内核,困森链接着运行下面的命令检查汪孙最新内核版本还有一些代码我不想打了,楼主就自己去后盾人看看吧对你很春盯有帮助的

=0.11)'>CentOS7编译安装PHP7.4提示Nopackage'libzip'found或者(libzip>=0.11)

编译安装PHP7.4提示Nopackage'libzip'found或者(libzip=0.11),原因凯稿是libzip没有安装或者版本太低,解决方法如枝镇下:

安装完成后,查看是否存在/usr/local/lib/pkgconfig目录,如果存在,执行如下命令来设猛孙粗置PKG_CONFIG_PATH:

热点内容
c语言的认识 发布:2025-02-01 11:58:03 浏览:520
svn连接服务器地址 发布:2025-02-01 11:51:31 浏览:416
对源程序为什么要编译 发布:2025-02-01 11:47:46 浏览:218
sql表添加记录 发布:2025-02-01 11:22:08 浏览:864
word编辑加密 发布:2025-02-01 11:18:53 浏览:571
php变量文本 发布:2025-02-01 11:10:46 浏览:426
音悦台上传mv 发布:2025-02-01 11:05:02 浏览:516
微信如何设置访问限制 发布:2025-02-01 10:43:06 浏览:335
b站缓存视频下架还有吗 发布:2025-02-01 10:37:52 浏览:940
e卡通初始密码是多少 发布:2025-02-01 10:31:55 浏览:127