Ubuntu – How can i install Mongodb on 32 bit ubuntu?

mongodb

Is there any possible for installation of mongodb on ubuntu

Best Answer

Try running ALL the commands below, one by one

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org

Source

Taken from https://serverfault.com/a/728145/155817:

For installation on 32 bit OS, based on mongdodb docs you can try to install the tarball installation. That is (taken from the docs):

  1. download the binary files here or using
`curl -O https://fastdl.mongodb.org/linux/mongodb-linux-i686-3.0.6.tgz`
  1. extract the files

    tar -zxvf mongodb-linux-i686-3.0.6.tgz

  2. copy extracted files

    mkdir -p mongodb
    cp -R -n mongodb-linux-i686-3.0.6/ mongodb
    
  3. add it to PATH

    #example in ~/.bashrc
    export PATH=<mongodb-install-directory>/bin:$PATH
    

note as noted in mongodb using this method will have some limitation

"This 32-bit legacy distribution does not include SSL encryption and is limited to around 2GB of data. In general you should use the 64 bit builds."

but in the end it is up to you.

Related Question