pecl安装mongo命令为mongo-1.5.5.tgz产生无效的tgz错误 [英] pecl install mongo command for mongo-1.5.5.tgz produce invalid tgz error

查看:211
本文介绍了pecl安装mongo命令为mongo-1.5.5.tgz产生无效的tgz错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建我的Docker图像来设置Rockmongo。
在Docker文件中,我有一个命令

I was creating my Docker image to setup Rockmongo. In the Dockerfile, I have a command

pecl install mongo

此命令在之前工作,但在今天运行时我收到此错误,

This command was working before but when ran t today I am getting this error,


downloading mongo-1.5.5.tgz ...
Starting to download mongo-1.5.5.tgz (Unknown size)
....done: 3,582 bytes
Could not get contents of package "/build/buildd/php5-5.3.10/pear-build-download/mongo-1.5.5.tgz". Invalid tgz file.
Download of "pecl/mongo" succeeded, but it is not a valid package archive
Error: cannot download "pecl/mongo"



参考



查看整个Docker文件
https://github.com/gilacode/docker-rockmongo/blob/master/Dockerfile

在pecl安装命令期间,是否有任何方式来详细说明Mongo软件包的不同版本?

Is there any way to specificy a different version of the Mongo package during the "pecl install command"?

推荐答案

我看到这是一个老问题,但无论如何...
我有同样的问题,这不是由于pecl网站。
当您编译php5时,似乎是lfs选项的错误。
要验证这是否是您的类型:php-config --phpapi

I see this is an old question but anyway ... I had the same issue and it was not due to the pecl website. It seems to be a bug with the "lfs" option when you compile php5. To verify if this is your case type: php-config --phpapi

我通过添加--nocompress选项
[ sudo pecl install --nocompress mongo]

I got it working by adding the --nocompress option [sudo pecl install --nocompress mongo]

您可以在这里查看其他详细信息 https://bugs.php.net/bug.php?id=67075

You can see other details here https://bugs.php.net/bug.php?id=67075

这篇关于pecl安装mongo命令为mongo-1.5.5.tgz产生无效的tgz错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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