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.
  • 92,125
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
  • 93,925
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.
  • 92,125