MarkUs Blog

MarkUs Developers Blog About Their Project

Installing libgit2 and Rugged

without comments

Requirements:

Please ensure you have git, ruby 1.9+, rails, rvm, and gem installed before proceeding.
Please ensure you are running a relatively up-to-date Linux operating system or Mac OSX 10.7+

Installing on Linux
For the installation of Libgti2 and Rugged, we are headed into the Linux terminal. Libgit2 requires that we have cmake installed, so we’ll start there.
     sudo apt-get install cmake

Next installing Libgit2. First navigate to where you would like to download the Libgit2 folder to. Then input the following commands in to the terminal:
     git clone https://github.com/libgit2/libgit2.git
     cd libgit2
     mkdir build
     cd build
     cmake ..
     cmake --build .

Next we will install Rugged.
     sudo gem install rugged

Everything by now should be installed, lets test to ensure that is the case.
     irb
     1.9.3 :001 > require “rugged”
       => true
     1.9.3 :002 >exit

Installing on Mac OSX
Before proceeding with installation, please ensure you are running XCode development tools 5.0+ and have the XCode console development enabled.
For the installation of Libgti2 and Rugged, we will be headed into the Mac terminal. But first we need to install cmake installed, so we’ll start there.

  • Go to http://www.cmake.org/cmake/resources/software.html
  • Go to download link Mac OSX 64/32-bit Universal (for Intel, Snow Leopard/10.6 or later) and choose .dmg
  • Open the .dmg file and follow the instructions on screen, ensure cmake console commands are installed if prompted.

Next installing Libgit2. First open up the terminal and navigate to where you would like to download the libgit2 folder to. Then input the following commands in to the terminal:
     git clone https://github.com/libgit2/libgit2.git
     cd libgit2
     mkdir build
     cd build
     cmake ..
     cmake --build .

Next we will install Rugged.
     sudo gem install rugged

Everything by now should be installed, lets test to ensure that is the case.
     irb
     1.9.3 :001 > require “rugged”
       => true 
     1.9.3 :002 >exit

Written by William Roy

November 8th, 2013 at 9:56 pm

Leave a Reply