鍍金池/ 問答/PHP/ 安裝 phpmyadmin 報錯:php71u-json conflicts w

安裝 phpmyadmin 報錯:php71u-json conflicts with PHP -common-5.4.16

安裝的環(huán)境:centos7 php7 openresty

輸入:yum install -y phpmyadmin

出現(xiàn):

Error: php71u-json conflicts with php-common-5.4.16-43.el7_4.1.x86_64

Error: php71u-common conflicts with php-common-5.4.16-43.el7_4.1.x86_64

You could try using --skip-broken to work around the problem

You could try running: rpm -Va --nofiles --nodigest

已經(jīng)嘗試執(zhí)行:--skip-broken 和 rpm -Va --nofiles --nodigest,沒有任何作用。google 了一堆絲毫不起作用,請問同學們如何解決?

回答
編輯回答
涼心人

yum install scl-utils
yum install https://dl.fedoraproject.org/...
yum install http://rpms.remirepo.net/ente...
yum install php70
yum install php70-php-mysqlnd
yum install php70-php-curl
yum install php70-php-simplexml
yum install php70-php-devel php70-php-gd php70-php-json php70-php-mcrypt php70-php-mbstring php70-php-opcache php70-php-pear php70-php-pecl-apcu php70-php-pecl-geoip php70-php-pecl-imagick php70-php-pecl-json-post php70-php-pecl-memcache php70-php-pecl-xmldiff php70-php-pecl-zip php70-php-pspell php70-php-soap php70-php-tidy php70-php-xml php70-php-xmlrpc
sudo yum install -y phpmyadmin

Finally,google works.

2017年3月11日 19:33
編輯回答
陪妳哭

這是因為你的yum源是php5.4,而你的7+版本而沖突。兩種方法,更換yum源再用yum安裝,或者用源碼包編譯安裝,編譯安裝可能會遇到需要安裝依賴,自己看著辦

2017年8月29日 13:58