install php driver of mongo db on mac with m1 chip - mongodb

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

Related

libgtk-3.so.0 not found when trying to run mongodb-compass from RedHAt Linux

I tried installing the latest version of Mongo compass by running the RPM in the red hat instance:
sudo yum install mongodb-compass-1.17.0.x86_64.rpm
When I try to run the mongodb-compass, I am getting the below error:
[ec2-user#ip-10-93-230-148 ~]$ mongodb-compass
mongodb-compass: error while loading shared libraries: libgtk-3.so.0: cannot open shared object file: No such file or directory
Can anyone please advise on how to resolve this issue?
Thanks
DJ
I am able to run compass in Redhat instance by installing gtk3-devel

How to install pandasdmx on raspbian raspberry pi

I tried to install a pandasdmx package on Raspbian (Linux for Raspberry Pi).
It failed because in is not possible to install libxml2 on the Raspbian.
Here is the error message that I get:
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
*********************************************************************************
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
Before this, I installed the libxl2 manually using this post, and the installation did seem to work.
Any hint?
I found the answer. The problem was in the libxml installation.
The proper way to do it on raspbian:
Why can't I get `pip install lxml` to work within a virtualenv?

cannot download "pecl/mongodb"

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.

pecl install mongo command for mongo-1.5.5.tgz produce invalid tgz error

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

The MongoDB PECL extension has not been installed or enabled [duplicate]

I am using Ubuntu 12.04 LTS and installed pecl in /opt/lampp/bin/ .
When installing second time its throwing error -
Command run previously -
pecl install mongo
pecl/mongo is already installed and is the same as the released
version 1.5.1 install failed
Now when I am Checking by -
echo extension_loaded("mongo") ? "loaded\n" : "not loaded\n";
It is showing not Loaded.
However I updated the php.ini with extension=mongo.so and restarted the server, but its not working.
Let me now what I am doing wrong.
EDIT
I re instantiated the command and following is the outcome -
Build process completed successfully
Installing '/opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/mongo.so'
install ok: channel://pecl.php.net/mongo-1.5.1
configuration option "php_ini" is not set to php.ini location
You should add "extension=mongo.so" to php.ini
Finally with the help of Neil Lunn I made it the right way.
I added the full path and added the code at the very last line of my php.ini
extension="/opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/mongo.so"
I got the solution for xampp in ubntu linux.
If this command not work for you pecl install mongo
you should type below command
sudo /opt/lampp/bin/pecl install mongo