php7 安装mysqli,无法在PHP7上安装php-mysqli

我已经安装了

PHP 7,mysql5.7,Apache2.2,CentOS6.

我正在安装CodeIgniter3.0.6.

当我使用数据库连接时,

发生错误并说

A PHP Error was encountered

Severity: Core Warning

Message: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_mysqli.so' - /usr/lib64/php/modules/php_mysqli.so: cannot open shared object file: No such file or directory

Filename: Unknown

Line Number: 0

当然’/usr/lib64/php/modules/php_mysqli.so’中没有文件,但我不知道如何安装mysqli.so.

我试过了

yum install php-mysql

Loaded plugins: fastestmirror, security

Setting up Install Process

Loading mirror speeds from cached hostfile

* base: ftp.iij.ad.jp

* epel: ftp.riken.jp

* extras: ftp.iij.ad.jp

* remi-safe: mirror.awanti.com

* updates: ftp.iij.ad.jp

Resolving Dependencies

--> Running transaction check

---> Package php-mysql.x86_64 0:5.3.3-46.el6_7.1 will be installed

--> Processing Dependency: php-common(x86-64) = 5.3.3-46.el6_7.1 for package: php-mysql-5.3.3-46.el6_7.1.x86_64

--> Finished Dependency Resolution

Error: Package: php-mysql-5.3.3-46.el6_7.1.x86_64 (updates)

Requires: php-common(x86-64) = 5.3.3-46.el6_7.1

Installed: php-common-7.0.4-1.el6.remi.x86_64 (@remi-php70)

php-common(x86-64) = 7.0.4-1.el6.remi

Available: php-common-5.3.3-40.el6_6.x86_64 (base)

php-common(x86-64) = 5.3.3-40.el6_6

Available: php-common-5.3.3-46.el6_6.x86_64 (updates)

php-common(x86-64) = 5.3.3-46.el6_6

Available: php-common-5.3.3-46.el6_7.1.x86_64 (updates)

php-common(x86-64) = 5.3.3-46.el6_7.1

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

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

它不起作用.

当我执行yum install php7.0-mysql或yum install php70w-mysql命令时,

Loaded plugins: fastestmirror, security

Setting up Install Process

Loading mirror speeds from cached hostfile

* base: ftp.iij.ad.jp

* epel: ftp.riken.jp

* extras: ftp.iij.ad.jp

* remi-safe: mirror.awanti.com

* updates: ftp.iij.ad.jp

No package php7.0-mysql available.

Error: Nothing to do

我根本不知道该怎么做.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值