Facebook Twitter Instagram
    WiredRevolution.com
    • Home
    • About
    • Contact Us
    • Essential Linux Commands
    • Sitemap
    Facebook Twitter Instagram
    WiredRevolution.com
    suse

    Install git on SUSE 11

    RyanBy RyanJanuary 5, 2011Updated:January 5, 20114 Comments2 Mins Read
    Facebook Twitter Pinterest LinkedIn Reddit WhatsApp Email

    Git is a great version control system which is used everywhere these days. The process of installing git on SUSE is as easy as other distros at moment but is not to difficult if you follow these steps. To my knowledge at this point in time there is no git rpm package for SUSE. There is a Fedora RPM but it fails to install correctly due to many missing dependencies.

    No problem. You will have to build and install from source. Go to http://git-scm.com/download and download the latest source. At the time of this guide the latest version is 1.7.3.4.

    Once you have the tarball extract the source.
    $ tar xvjf git-1.7.3.4.tar.bz2

    You can now run configure.
    $ ./configure

    Unfortunatly you will run into a missing libz dependency and the build will fail.
    $ makeGIT_VERSION = 1.7.3.4
    * new build flags or prefix
    CC fast-import.o
    In file included from builtin.h:6,
    from fast-import.c:147:
    cache.h:17:18: error: zlib.h: No such file or directory

    To solve this you will need the zlib-devel package which you can download from here:
    $ wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/Base:/build/standard/x86_64/zlib-devel-1.2.3-135.52.x86_64.rpm

    Install the RPM package.
    $ sudo rpm -ivh zlib-devel-1.2.3-135.52.x86_64.rpm

    You should now be able to successfully build and install git.
    $ make && make install

    Share. Facebook Twitter Pinterest LinkedIn WhatsApp Reddit Email
    Previous ArticleInsert a timestamp in your Tomboy notes
    Next Article Find the PID of the current Bash script

    Related Posts

    Fix insync Gnome Shell extension error on Ubuntu

    Transfer your ssh public key to a remote machine

    Fix SketchUp refresh bug on Linux with WINE

    Most Commented
    March 12, 2009

    Fix blue tinted video in Ubuntu

    September 10, 2010

    Setup SSH access between VirtualBox Host and Guest VMs

    March 8, 2011

    Install GNOME Shell in Ubuntu 10.10 Maverick

    April 4, 2009

    Setup the PS3 Bluetooth Controller on Ubuntu

    October 22, 2008

    How to correctly use LD_LIBRARY_PATH

    Recent Comments
    • Execute command on linux virtual machine (or server) from windows commandline on Setup SSH access between VirtualBox Host and Guest VMs
    • Solved: How to SSH to a VirtualBox guest externally through a host? - Daily Developer Blog on Setup SSH access between VirtualBox Host and Guest VMs
    • How to SSH to a VirtualBox guest externally through a host? [closed] – Code D3 on Setup SSH access between VirtualBox Host and Guest VMs
    • How to copy and paste from VirtualBox? [duplicate] on Setup SSH access between VirtualBox Host and Guest VMs
    • Jackie Laguna on Fix OpenGL: ChoosePixelFormat SketchUp error in WINE
    © 2025 ThemeSphere. Designed by ThemeSphere.

    Type above and press Enter to search. Press Esc to cancel.