I'm new trying to install mongodb on CentOS residing on Vagrant. Mongo is installed but when I try to install mongodb is gives some errors, following is the behavior:
[root#localhost vagrant]# pecl install mongodb
PHP Warning: Module 'dom' already loaded in Unknown on line 0
downloading mongodb-1.2.9.tgz ...
Starting to download mongodb-1.2.9.tgz (786,049 bytes)
..............................................................done:
786,049 bytes
could not extract the package.xml file from
"/tmp/pear/download/mongodb-1.2.9.tgz"
Download of "pecl/mongodb" succeeded, but it is not a valid package
archive
Error: cannot download "pecl/mongodb"
Download failed
install failed
[root#localhost vagrant]#
After trying many hours following different links, I'm finally here. Please suggest what's going wrong.
Related
I'm trying to install mongodb php driver on mac with m1 chip using pecl.
php 7.4
XAMPP
when I run command:
sudo pecl install mongodb
it start downloading, phpize, configure and after all make of downloaded package, but during the make process it throw this error in spite of that file exist.
result was same when I tried the steps manually too.
1 error generated.
make: *** [src/libmongoc/src/libmongoc/src/mongoc/mongoc-scram.lo] Error 1
ERROR: `make' failed
so I need to know if some one faced same issue and could solve it or not. I'll attach a shot of error
if you need any other deta
best regards
I was trying to install mongoDB version 3.1.9 on solaris 10 .
getting the below error while installation
ld.so.1: mongo: fatal: relocation error: file mongo: symbol strnlen: referenced symbol not found
Killed
I have never worked with mongoDB before not sure if I am installing properly.
Unfortunately MONGODB do not support Solaris 10 at this time. You'll need to upgrade to Solaris 11 if you'd like to use newer versions of MongoDB.
./mongod ld.so.1: mongod: fatal: libsocket.so.1: version 'SUNW_1.7' not found (required by file mongod) ld.so.1: mongod: fatal: libsocket.so.1: open failed: No such file or directory Killed #mahi_walia
This shows that some binary and libs files required by MongoDB are missing for successful installation.
If you apply the Solaris patch cluster that will upgrade all the necessary binaries and libs, this should resolve your issue.
Here you can download Recommended patch cluster for Solaris.
https://blogs.oracle.com/patch/entry/a_solaris_recommended_patchset_to
Overview
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"
Reference
To view the whole docker file
https://github.com/gilacode/docker-rockmongo/blob/master/Dockerfile
Question
Is there any way to specificy a different version of the Mongo package during the "pecl install command"?
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
I got it working by adding the --nocompress option
[sudo pecl install --nocompress mongo]
You can see other details here https://bugs.php.net/bug.php?id=67075
I have installed 1.8.3 version but when I trying to install Ruby 1.9.2 via rvm see some ERRORS .
I used Google, used many methods to solve this problem but I have not received any any answers. Can anybody help me?
I quote the part of code(in Terminal) below
unforbiddenyet#Trash-PC:~$ rvm install 1.9.2
0Warning: Failed to create the file yaml-0.1.4.tar.gz: Access is denied
Database file /usr/share/ruby-rvm/config/packages does not exist.
0Warning: Failed to create the file ruby-1.9.2-p290.tar.bz2: Denied Warning: Access
curl: (23) Failed writing body (0 != 2503)
There was an error, please check /usr/share/ruby-rvm/log//*.log. Next we'll try to fetch via http.
0Warning: Failed to create the file ruby-1.9.2-p290.tar.bz2: Denied Warning: Access
Failed writing body (0 != 2804)
There was an error, please check /usr/share/ruby-rvm/log//*.log
There has been an error while trying to fetch the source.
Halting the installation.
There has been an error fetching the ruby interpreter. Halting the installation.
To create the packages, first install 1.8.7 and then to install the current version (currently 1.9.3):
$ rvm install 1.8.7
$ rvm install 1.9.3
Trying to install mysql-python. Got following error. Got mysql and pythond already installed. Any help will be highly appreciated
[root#uu include]# easy_install mysql-python
Searching for mysql-python
Reading http://cheeseshop.python.org/pypi/mysql-python/
Couldn't find index page for 'mysql-python' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://cheeseshop.python.org/pypi/
Reading http://cheeseshop.python.org/pypi/MySQL-python/1.2.3c1
Reading http://sourceforge.net/projects/mysql-python
Best match: MySQL-python 1.2.3c1
Downloading http://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.3c1.tar.gz#md5=310dd856e439d070b59ece6dd7a0734d
Processing MySQL-python-1.2.3c1.tar.gz
Running MySQL-python-1.2.3c1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-toQ0nx/MySQL-python-1.2.3c1/egg-dist-tmp-OeN5eG
unable to execute gcc: No such file or directory
error: Setup script exited with error: command 'gcc' failed with exit status 1
This will install GCC and others often required:
yum groupinstall 'Development Tools'
Can also be installed individual i.e yum install gcc
you need to install gcc (on centos, some variety of dev-tools)