I'm new to php, so apologies if I've overlooked something simple. I want to install the php extension pecl_http. I have followed the instructions here http://www.mkfoster.com/2009/01/04/how-to-install-a-php-pecl-extensionmodule-on-ubuntu/, specifically:

我是php的新手,如果我忽略了一些简单的事情,那就道歉了。我想安装php扩展pecl_http。我已按照http://www.mkfoster.com/2009/01/04/how-to-install-a-php-pecl-extensionmodule-on-ubuntu/中的说明进行操作,具体如下:

sudo apt-get install php-pear 
sudo apt-get install php5-dev 
sudo apt-get install libcurl3-openssl-dev

which all works fine. However, the next step does not seem to complete:

一切正常。但是,下一步似乎没有完成:

sudo pecl install pecl_http 

All this does is download the .tgz, but doesn't actually install it. It puts the file here:

所有这些都是下载.tgz,但实际上并没有安装它。它把文件放在这里:

/build/buildd/php5-5.2.10.dfsg.1/pear-build-download/pecl_http-1.7.0.tgz

I can unpack it myself, but have a feeling there may be more to installing it. Indeed, doing:

我可以自己打开包装,但感觉安装它可能还有更多。确实,做:

pecl list

tells me no extensions installed. What am I not doing?

告诉我没有安装扩展。我不做什么?

Thanks.

谢谢。

Edit: I've found these alternatives to installing a pecl extension: https://serverfault.com/questions/178986/pecl-install-uploadprogress-fails-silently However it breaks on build:

编辑:我发现了安装pecl扩展的这些替代方法:https://serverfault.com/questions/178986/pecl-install-uploadprogress-fails-silently然而它在构建时中断:

install: cannot stat `tmp/modules5/pecl-http.so': No such file or directory

for the simple reason the lib is called http.so, not pecl-http.so...

出于简单的原因,lib被称为http.so,而不是pecl-http.so ...

1 个解决方案

#1


0

You should be able to debug the process by adding -v or -vvv to the pecl command.

您应该能够通过将-v或-vvv添加到pecl命令来调试该过程。

Can you provide output?

你能提供输出吗?

更多相关文章

  1. 使用PHP发布整个mySQL命令
  2. 通过Bash脚本语言逃避MYSQL命令行。
  3. MySQL很有用的命令
  4. 如何构建一个命令来连接mySQL中的3个不同的表?
  5. C运行查询显示命令不同步?
  6. 在命令行到处MYSQL数据到EXCEL表
  7. [置顶] MYSQL高级命令
  8. MySQL常用命令与常见问题解决
  9. 'mysql'不是内部或外部命令,也不是可运行的程序或批处理文件.

随机推荐

  1. c语言如何求最大公约数和最小公倍数?
  2. 新手程序员应该知道的C语言和C++的区别
  3. 详解C语言中的复数操作
  4. freopen函数的用法详解
  5. 几款好用的C语言编译器推荐
  6. c语言和c++区别大吗
  7. 用c语言编写爱心的代码是什么?
  8. C语言自定义函数(图文详解)
  9. c语言和vb语言的区别是什么?
  10. C语言中fputc函数的用法