在终端中运行时找不到phpize命令 [英] phpize command not found when run in terminal

查看:31
本文介绍了在终端中运行时找不到phpize命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图安装 PECL 扩展,并且需要 phpize.但是当我运行 phpize 它显示:

I was trying to install PECL extension, and required phpize. But when I ran phpize it displayed:

ps@ubuntu:~$ phpize
No command 'phpize' found, did you mean:
 Command 'phpize5' from package 'php5-dev' (main)
phpize: command not found

我当前的 php 版本是:PHP Version 5.4.6-1ubuntu1.2我应该安装 php5-dev 版本吗?会不会有矛盾的问题?还有哪些替代方法?

My current php version is : PHP Version 5.4.6-1ubuntu1.2 Should I install the php5-dev version? Will it have any conflicting issues? What are other alternative methods?

我应该怎么做才能解决我的问题?我正在运行 ubuntu 12.10

What should I do to resolve my issue? I'm running ubuntu 12.10

推荐答案

sudo apt-get install php5-dev

phpize 是一个用于为构建准备 php 模块的工具,因此您需要 dev 包.假设您使用的是 PHP 的打包版本,应该不会有任何问题.

phpize is a tool used to prepare a php module for building, so you'll need the dev package. There shouldn't be any problems, assuming you're using a packaged version of PHP anyway.

(更新 - 对于更新的 Ubuntu 版本,请尝试 sudo apt-get install php-dev)

这篇关于在终端中运行时找不到phpize命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆