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.

4 comments:

  1. Thanks for an update on the installation.

    ReplyDelete
  2. Thanks for the great help! I have some probs though.. In the first step of installation ("sudo apt-get install -f .) I got the last lines:
    -------------------------------------------------------------------------------
    Depends: libgl1-mesa-glx:i386 or libgl1:i386
    Depends:libsdl1.2debian:i386(>=1.2.11) but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.
    -----------------------------------------------------------------------------------
    Can you think of any solution to fix it?
    Thanks in advance!
    Great work

    ReplyDelete
    Replies
    1. I fixed the problem by running "sudo apt-get update" to make sure that the list of packages from all repositories and PPA's is up to date and then I installed the packages by "sudo dpkg --install liblmdb".
      Thanks once again! Great help

      Delete
    2. Great to hear that you got that resolved and thanks for posting your problem resolution for others to use.
      Good luck with your deep learning ;-)
      Neta

      Delete