Issue installing mongoDB version 3.1.9 on solaris 10 - mongodb

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

Related

mongosql not starting on Red Hat 8: "error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory"

I have isntalled mongodb on a Red Hat 8 and it's working fine.
Also, I installed mongo connector for BI through this tutorial: https://docs.mongodb.com/bi-connector/master/tutorial/install-bi-connector-rhel/.
Now, trying to run mongosqld with the command:
mongosqld
I got this error message: mongosqld: error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory
This is the openssl installed version: OpenSSL 1.1.1 FIPS 11 sep 2018
I already searched, but I couldn't find an answer that worked for this issue yet.
Does anyone knows how to fix this? Thanks in advance!
Try installing the OpenSSL 1.0 libraries on RHEL 8:
sudo dnf install compat-openssl10
These are meant for compatibility only. Since mongosqld doesn't support the newer OpenSSL version, it seems like you have no other option.

error: /usr/lib64/libcrypto.so.10: version `OPENSSL_1.0.2' not found

I am getting the error when I run command "mongo" in linux client on RHEL 7.2:
/usr/lib64/libcrypto.so.10: version `OPENSSL_1.0.2' not found (required by mongo)
I have already installed openssl 1.0.2:
$ openssl version
OpenSSL 1.0.2g 1 Mar 2016
What is the problem and how do I fix it?
I was able to solve this problem by running yum reinstall openssl openssl-libs and yum reinstall libzip
error: /usr/lib64/libcrypto.so.10: version `OPENSSL_1.0.2' not found
Above error is showing user have two library for same tool that's why system not able to decide which is/are the right file/files.
Delete one of them (system defined : under /usr/lib or user defined : path defined by user) and try it.

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.

How to upgrade mongoDB shell version properly on OS X

My aim is to be able to connect myself from my local machine to a remote mongodb (version 3.2.8) instance with the following cmd:
mongo XX.XX.XXX.XXX:27017/myDB -u toto -p myPwd
i am getting this error
Error: 18 { ok: 0.0, errmsg: "auth failed", code: 18 } at src/mongo/shell/db.js:1210
exception: login failed
I checked the mongoDB documentation and i understood that i have to install the same version locally
So I updated my local mongodb with brew
like it is explained here Install MongoDB Community Edition on OS X and everything ran fine
toto$ brew install mongodb
toto$ Warning: mongodb-3.2.8 already installed
but when i try that:
toto$ mongod -version
db version v2.6.6
toto$ mongo -version
MongoDB shell version: 2.6.6
it seems that i am still using the old version locally.
I also tried to install it manually like it is explained in the documentation but nothing.
So I tried to set the path for mongo in my ~/.bashrc to use the version installed with brew like that:
toto$ cat ~/.bashrc
...
# Setting PATH for MongoDb 3.2.8
export MONGO_PATH=/usr/local/Cellar/mongodb/3.2.8
export PATH=$PATH:$MONGO_PATH/bin
...
but nothing.
What am I missing or misunderstanding ...?
I finally uninstall mongodb:
brew uninstall mongodb
I also did that just in case:
remove mongodb that was installed via brew
Raw
that helped me to found out the old mongoDB version (really used) so i removed everything from my local (binaries, the export in ~/.bashrc).
I restarted the machine, re install mongodb with brew and now everything is working properly.
Don't know why i didn't try that from the begining !
I hope it will help someone.
if it is the case don't forget to up vote please :)

MongoDB Install Error

Just setup a fresh server at MediaTemple (dedicated virtual / CentOS Linux) and installed the developer tools, but Mongo won't install, any ideas?
Also, it's trying to DL version 1.2.10 I assume I can run pecl upgrade mongo once it is installed to go to 2.0.6 right?
Here's my output:
[root ~]# pecl install mongo
downloading mongo-1.2.10.tgz ...
Starting to download mongo-1.2.10.tgz (86,463 bytes)
.....................done: 86,463 bytes
36 source files, building
running: phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
building in /var/tmp/pear-build-root/mongo-1.2.10
running: /root/tmp/pear/cache/mongo-1.2.10/configure
checking for egrep... grep -E
checking for a sed that does not truncate output... //bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
ERROR: `/root/tmp/pear/cache/mongo-1.2.10/configure' failed
You're not installing mongodb with pecl, here you're installing the PHP driver for mongodb.
To install mongodb on CentOS, please follow these instructions here. These instructions show you how to add the 10gen repo, which will then enable you (using yum) to install the latest production-ready mongodb release (2.0.6).
I realise that it's not Ubuntu but egarding your issue with installing the PHP driver, does it make any difference if you run
sudo pecl install mongo
There's some information here on installing the mongo php driver, just replace the 'apt-get' elements with 'yum' as the same libraries, dependencies apply afaik.
Here's a tutorial on using the mongo php driver.