php 在终端中运行时找不到phpize命令
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16565994/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
phpize command not found when run in terminal
提问by xan
I was trying to install PECLextension, and required phpize. But when I ran phpizeit displayed:
我试图安装PECL扩展程序,并且需要phpize. 但是当我运行phpize它时显示:
ps@ubuntu:~$ phpize
No command 'phpize' found, did you mean:
Command 'phpize5' from package 'php5-dev' (main)
phpize: command not found
My current phpversion is : PHP Version 5.4.6-1ubuntu1.2Should I install the php5-devversion? Will it have any conflicting issues? What are other alternative methods?
我当前的php版本是:PHP Version 5.4.6-1ubuntu1.2我应该安装这个php5-dev版本吗?会不会有矛盾的问题?还有哪些替代方法?
What should I do to resolve my issue?
I'm running ubuntu 12.10
我应该怎么做才能解决我的问题?我在跑ubuntu 12.10
回答by Paul Dixon
sudo apt-get install php5-dev
phpizeis 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.
phpize是一个用于为构建准备 php 模块的工具,因此您需要 dev 包。假设您使用的是 PHP 的打包版本,应该不会有任何问题。
(Update - for more recent versions of Ubuntu try sudo apt-get install php-dev)
(更新 - 对于更新版本的 Ubuntu 尝试sudo apt-get install php-dev)

