Using Git

From LINA Wiki

Jump to: navigation, search

The LINA source code can be downloaded from the server, using the revision control program git. Git runs natively on Linux/UNIX and Mac OS X, and can be run on Windows via Cygwin.

The LINA source code repository is constantly updated, so if you experience a bug, updating your source code through a git pull, will usually resolve the bug.

Contents

[edit] Installing git

On Windows: Using Cygwin, install the git package.

On Mac: If you are a Mac user, you can install git by using Macports from http://www.macports.org, or you can install from source as described below. If you install macports, install it into the /opt folder, launch Terminal, cd to /opt, and enter "sudo port" and your root password. From port, enter "install git-core" and wait about 30 minutes while the system gets the requirements and builds git.

On Linux: Most Linux distributions provide git packages. First check your distribution and see if git can be installed using the installer provided. Type "git --version" at the command line to make sure that you have version 1.5.0 or higher! On Ubuntu we recommend that you install git from source as described below, since installing via synaptic is complicated by the fact that an earlier package name git is not yet deprecated.

From Source: If you need to install git from source, you can do the following:

  • 1. Go to the project homepage at http://git.or.cz/
  • 2. Download git-1.5.3.tar.gz
  • 3. Go to the cURL homepage at http://directory.fsf.org/cURL.html
  • 4. Click on the "Verions" tab in the middle of the page and download curl-7.15.0.tar.gz to the same directory
  • 5. Install cURL by typing:
    • tar xvzf curl-7.15.0.tar.gz
    • cd curl-7.15.0
    • ./configure --prefix=/usr
    • make all
    • sudo make install
    • cd ..
  • 6. Install git by typing:
    • tar xvzf git-1.5.3.tar.gz
    • cd git-1.5.3
    • ./configure --with-curl --prefix=/usr
    • make all
    • sudo make install

[edit] Using git to download LINA

Once you have installed git on your machine, you may download LINA with the following command:

git clone http://www.openlina.org/lina

This will create a subdirectory "lina" that contains the LINA source code.

[edit] Using git to update LINA

From your top level lina directory, "pull" from git using the following comand:

git pull http://www.openlina.org/lina/ master

[edit] Installing LINA from source code

To install and run LINA on your platform using this source code, see our platform-specific install instructions:

Personal tools