1

I try to install mongodb client for c++, but get this error message Unable to locate package mongodb-dev, when I do:

$ sudo apt-get install mongodb-dev

even though mongodb-dev seems to exists, judging by this Ubuntu page. So, my question is how to install mongodb-dev?

A.B.
  • 90,397
Jacobian
  • 194

2 Answers2

3

You should upgrade to 15.04 as soon as possible as 14.10 has reached its End of Life (EOL) yesterday (23rd July, 2015).

Note that mongodb-dev is not available in 14.10, your best bet would be to download the .deb file from launchpad and the install it with :

sudo dpkg -i package_name.deb

Then you need to satisfy the dependency (libboost-dev) with :

sudo apt-get -f install

Otherwise you can use gdebi to do the whole work for you (install gdebi first) :

sudo gdebi package_name.deb

Or open the .deb file with Ubuntu Software Center which will take care of everything for you.

heemayl
  • 91,753
  • I wonder if there exists any up to date tutorial of installing mongodb driver for c++ in Ubuntu. Since what i've seen by now (after scanning literally thousands of threads) does not work. And this is the first time I hear about .deb file from launchpad for instlling the driver. I have not heard about it. – Jacobian Jul 24 '15 at 17:14
  • Nice, works also with Vivid =) – A.B. Jul 24 '15 at 17:16
  • What is Vivid?. – Jacobian Jul 24 '15 at 17:17
  • 1
    @Jacobian vivid is the codename for Ubuntu 15.04.. – heemayl Jul 24 '15 at 17:19
  • @Jacobian you should upgrade to 15.04 ASAP..also from now on if any package is not available in the repos you should start searching for any .deb file e.g. in launchpad, then as a last option you can compile from source yourself.. – heemayl Jul 24 '15 at 17:22
  • arm64 version for those who don't want i386: http://mirrors.kernel.org/ubuntu/pool/universe/m/mongodb/mongodb-dev_2.4.9-1ubuntu2_amd64.deb – Joshua Whitley Oct 12 '16 at 04:51
1

I'll give you the answer just because you asked again after the installation of Ubuntu 15.04

The package mongodb-dev is not longer in the Ubuntu Standard Repositories. The latest release was 2.4.9-1ubuntu2 in Trusty.

A.B.
  • 90,397