php7 没有phpize的解决方法

本文操作环境:ubuntu 16.04系统、PHP7.0版、DELL G3电脑

php7 没有phpize怎么办?

ubuntu服务器下php7没有phpize文件解决方案

第一种:

sudo vim /etc/resolv.conf

添加nameserver 8.8.8.8

第二种:

/etc/apt/sources.list 的内容换成
deb http://old-releases.ubuntu.com/ubuntu/ raring main universe restricted multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ raring main universe restricted multiverse
deb http://old-releases.ubuntu.com/ubuntu/ raring-security main universe restricted multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ raring-security main universe restricted multiverse
deb http://old-releases.ubuntu.com/ubuntu/ raring-updates main universe restricted multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ raring-updates main universe restricted multiverse
deb http://old-releases.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ raring-proposed main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ raring-proposed main restricted universe multiverse

然后sudo apt-get update一下

再执行 apt-get install php7.0-dev

知识点扩展:

没有PHPIZE的解决方法

# which phpize
/usr/bin/phpize

# rpm -q –whatprovides /usr/bin/phpize
php-devel-4.3.10-3.2

Give “yum install php-devel” a try!

在redhat的网站上找到了这个

默认centOS和FC6都没有装这个phpize

就像上面说的,yum install php-devel

到此这篇关于php7 没有phpize的解决方法的文章就介绍到这了,更多相关php7 没有phpize怎么办内容请搜索我们以前的文章或继续浏览下面的相关文章希望大家以后多多支持我们!

(0)

相关推荐

  • phpize的深入理解

    安装(fastcgi模式)的时候,常常有这样一句命令:/usr/local/webserver/php/bin/phpize一.phpize是干嘛的?phpize是什么东西呢?php官方的说明:http://php.net/manual/en/install.pecl.phpize.phpphpize是用来扩展php扩展模块的,通过phpize可以建立php的外挂模块比如你想在原来编译好的php中加入memcached或者ImageMagick等扩展模块,可以使用phpize,通过以下几步工作.

  • php教程之phpize使用方法

    安装(fastcgi模式)的时候,常常有这样一句命令: 复制代码 代码如下: /usr/local/webserver/php/bin/phpize 一.phpize是干嘛的? phpize是什么?phpize是用来扩展php扩展模块的,通过phpize可以建立php的外挂模块比如你想在原来编译好的php中加入memcached或者ImageMagick等扩展模块,可以使用phpize,通过以下几步工作. 二.如何使用phpize? 当php编译完成后,php的bin目录下会有phpize这个脚

  • php7 没有phpize的解决方法

    本文操作环境:ubuntu 16.04系统.PHP7.0版.DELL G3电脑 php7 没有phpize怎么办? ubuntu服务器下php7没有phpize文件解决方案 第一种: sudo vim /etc/resolv.conf 添加nameserver 8.8.8.8 第二种: /etc/apt/sources.list 的内容换成 deb http://old-releases.ubuntu.com/ubuntu/ raring main universe restricted mul

  • bt宝塔面板php7.3、php7.4不支持ZipArchive解决方法

    宝塔面板php7.3版本不支持ZipArchive导致程序无法后台直接更新的解决方法 在SSH命令行界面执行以下语句: cd /www/server/php/73/src/ext/zip/ /www/server/php/73/bin/phpize ./configure --with-php-config=/www/server/php/73/bin/php-config make && make install echo "extension = zip.so" &

  • thinkphp在php7环境下提示Cannot use ‘String’ as class name as it is reserved的解决方法

    本文实例讲述了thinkphp在php7环境下提示Cannot use 'String' as class name as it is reserved的解决方法.分享给大家供大家参考,具体如下: 我有一网站之前用php7运行thinkphp没有什么问题,但是最近发现开启验证码的时候发现有错误 Cannot use 'String' as class name as it is reserved 在google baidu搜索了一下还是没有解决方法 于是自己动手解决,看来我是第一个分享出来的人

  • php使用ZipArchive提示Fatal error: Class ZipArchive not found in的解决方法

    本文实例讲述了php使用ZipArchive提示Fatal error: Class ZipArchive not found in的解决方法.分享给大家供大家参考.具体如下: ZipArchive是php自带的一个压缩与解压缩函数了,今天理所当然的情况中使用new ZipArchive来创建zip文件时碰到提示Fatal error: Class ZipArchive not found in错误,感兴趣的朋友就一起来看看解决方法. 测试代码如下: 复制代码 代码如下: //PHP解压缩文件(

  • 编译PHP报错configure error Cannot find libmysqlclient under usr的解决方法

    今天在64位Red Hat Enterprise Linux AS release 4 .7上编译PHP5.2.6出错,mysql是使用的RPM方式安装的,PHP编译代码如下: ./configure --prefix=/usr/local/php --with-mysql --with-apxs2=/usr/local/apache/bin/apxs --with-openssl --with-curl --enable-xml --with-mcrypt --with-ttf --enabl

  • php7安装yar扩展的方法详解

    本文实例讲述了php7安装yar扩展的方法.分享给大家供大家参考,具体如下: 体验RPC框架Yar需要: 1. 装二进制打包协议msgpack 2. 装yar拓展和依赖 一. 安装二进制打包协议msgpack 1. 安装PHP拓展包有很多种方式,当然没什么是比pecl更加来得暴力,用这个之前要确认phpize是否存在 find / -name phpize 2. 如果phpize不存在 yum install php-devel 3. Ok,先装msgpack pecl install msgp

  • PHP动态编译出现Cannot find autoconf的解决方法

    本文详细讲述了PHP动态编译出现Cannot find autoconf的解决方法.分享给大家供大家参考.具体方法如下: 在安装完PHP后,想动态编译PHP的memcache扩展库 复制代码 代码如下: cd memcache-2.2.5/ /usr/local/webserver/php/bin/phpize ./configure --with-php-config=/usr/local/webserver/php/bin/php-config 但是执行/usr/local/webserve

  • PHP Class SoapClient not found解决方法

    要用到 SoapClient, new 了一个提示 Class 'SoapClient' not found, 检查了下 phpinfo, 原因是当初没有编译这个扩展, 只好现在再加上了. php在调用webservice时,报告如下类似错误: ( ! ) Fatal error: Class 'SoapClient' not found in E:/WebSrv/CI/system/libraries/WebService.php on line 17 解决方法: 打开php.ini,找到ph

  • php7下安装event扩展方法

    有效安排I/O,时间和信号的扩展 使用可用于特定平台的最佳I/O通知机制的事件,是PHP基础设施的libevent端口. 下载地址:http://pecl.php.net/package/event 安装支持库libevent,需要编译高版本(这里以最新版本release-2.1.8-stable为例) wget -c https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.

  • PHP Primary script unknown 解决方法总结

    相信很多配置php环境的都遇到过这个恼人的问题: 浏览器访问php文件,返回来 File not found 查看/var/log/nginx/error.log ,有 "Primary script unknown",类似如下: 2019/01/03 10:24:02 [error] 11931#11931: *260 FastCGI sent in stderr: "Primary script unknown" while reading response h

随机推荐