Monday, July 6, 2015

Installing Caffe on Ubuntu 12.04

I have recently installed Caffe, the deep learning framework, on an Ubuntu 12.04 workstation and found a problem with the Ubuntu installation instructions.
The instructions point us to gitorious, to clone the LMDB (Lighting Memory-Mapped Database)
repository:

git clone https://gitorious.org/mdb/mdb.git
However, trying to clone this repository results in a connection timeout.  According to the official gitorious blog, gitorious was acquired and is migrating their repositories to another location:

As you may know, Gitorious was acquired by GitLab about a month ago, and we announced that Gitorious.org would be shutting down at the end of May, 2015.
After the announcement we talked to the Archive Team about how to preserve Gitorious.org and its data for the future. A member of the Archive Team graciously offered to host gitorious.org as a read-only archive on Gitorious.org and GitLab agreed to allow to use the Gitorious.org domain name for this.
As of today, at least, the above repo link is not working for me.  To bypass this issue, I downloaded and installed the following two packages:



$ sudo dpkg -I liblmdb0_0.9.14-1_amd64.deb
$ sudo apt-get install -f .
$ sudo dpkg -I liblmdb-dev_0.9.14-1_amd64.deb
$ sudo apt-get install -f .
I hope this information will help any of you trying to install Caffe on Ubuntu 12.04.