Menu

BuildYourOwn

Anonymous

The git repo contains the build script that I have been using.

git clone git://github.com/timcharper/git_osx_installer.git

Discussion

  • Anonymous

    Anonymous - 2008-11-01

    Originally posted by: livelove...@gmail.com

    how do we upgrade git?

    how do we uninstall? if I delete the folder here: /usr/local/git, and I delete the git files here /etc/paths.d and here /etc/manpaths.d, then will git be completely uninstalled? or were there other changes made when i installed it?

    thanks! :)

     
  • Anonymous

    Anonymous - 2008-11-22

    Originally posted by: timchar...@gmail.com

    Yes - you are correct

    /usr/local/git/**/*
    /etc/paths.d/git
    /etc/manpaths.d/git
    
     
  • Anonymous

    Anonymous - 2008-12-13

    Originally posted by: livelove...@gmail.com

    Thanks!

    I noticed there's a newer version. Is there an easy way to upgrade, or should I just uninstall as instructed and reinstall the new version?

    Also, if I have mac ports installed, do u recommend I do <code>sudo port install git-core +svn</code> or should i used the git-osx-installer. and why?

    I know I can also compile from source, but I'm lazy and don't really care that much how it all works... :)

     
  • Anonymous

    Anonymous - 2009-01-07

    Originally posted by: sarahann...@gmail.com

    Will there be any x86_64 builds? Or will I need to build my own? We're having a problem where very large files (a couple gigs or more) are crashing due to mmap() failures, and are wondering whether or not a 64-bit build would fix the problem. I'm willing to build it myself, assuming it's feasible, but we've heard of other people on the net having similar problems, so perhaps a 64 bit build isn't an unreasonable request?

     
  • Anonymous

    Anonymous - 2009-01-07

    Originally posted by: sarahann...@gmail.com

    Okay, we did our own 64-bit build and it seems to work fine. My notes are below... not as a recommended approach, just something of a record of what we did here.

    We didn't try to package it up into a .dmg, I just tarred up the directories

    /usr/local/git/**/ /etc/paths.d/git /etc/manpaths.d/git **

    and handed it off to the person who needed it, who reported back that after unpacking the pieces and putting them in the right place, things worked just fine.

    FYI.

    Sarah

    ##
    ##  First, downloaded and installed the Git 1.6.1 from .dmg at:
    ##
    ##  http://code.google.com/p/git-osx-installer/downloads/list
    ##
    ##  Then, try to rebuild as 64-bit...
    ##
    
    git svn clone  http://git-osx-installer.googlecode.com/svn/ --stdlayout
    cd svn
    
    ##
    ##  Read BuildInstructions.txt
    ##  Read build.sh
    ##
    
    sudo UserScripts/cplibs.sh
    # This fails... problem? Or no, because Git 1.6.1 already installed libs?
    Password:
    UserScripts/cplibs.sh: line 6: pushd: /opt/local/lib/: No such file or directory
    cp: libcrypto.0.9.8.dylib: No such file or directory
    cp: libz.1.2.3.dylib: No such file or directory
    cp: libssl.0.9.8.dylib: No such file or directory
    cp: libexpat.1.5.2.dylib: No such file or directory
    ln: libcrypto.dylib: File exists
    ln: libz.1.dylib: File exists
    ln: libssl.dylib: File exists
    ln: libexpat.dylib: File exists
    UserScripts/cplibs.sh: line 20: popd: directory stack empty
    
    curl -O http://kernel.org/pub/software/scm/git/git-1.6.1.tar.bz2
    
    tar jxvf git-1.6.1.tar.bz2
    
    cd git-1.6.1
    
    vi Makefile
    # ... added NO_DARWIN_PORTS=1 to top of file ...
    
    # ... testing that the basic build works...
    make LDFLAGS="-L/usr/local/git/lib,/usr/lib" prefix=/usr/local/git all
    make LDFLAGS="-L/usr/local/git/lib,/usr/lib" prefix=/usr/local/git clean
    
    #... now try 64-bit build ...
    make CFLAGS="-arch x86_64 -mmacosx-version-min=10.5" LDFLAGS="-L/usr/local/git/lib,/usr/lib" prefix=/usr/local/git all
    
    make CFLAGS="-arch x86_64 -mmacosx-version-min=10.5" LDFLAGS="-L/usr/local/git/lib,/usr/lib" prefix=/usr/local/git strip
    
    sudo make CFLAGS="-arch x86_64 -mmacosx-version-min=10.5" LDFLAGS="-L/usr/local/git/lib,/usr/lib" prefix=/usr/local/git install
    
    # ... are we 64-bit now? ...
    $ lipo -detailed_info `which git`
    input file /usr/local/git/bin/git is not a fat file
    Non-fat file: /usr/local/git/bin/git is architecture: x86_64
    # ... why yes, yes we are! ...
    
    ##
    ## Okay, now continuing with instructions from BuildInstructions.txt
    ##
    
    # contrib
    sudo mkdir -p /usr/local/git/contrib/completion
    sudo cp contrib/completion/git-completion.bash /usr/local/git/contrib/completion/
    
    # change hardlinks for symlinks
    cd ..
    sudo ruby UserScripts/symlink_git_hardlinks.rb
    
    curl -O http://www.kernel.org/pub/software/scm/git/git-manpages-1.6.1.tar.bz2
    sudo mkdir -p /usr/local/git/man
    sudo tar xjv -C /usr/local/git/man -f git-manpages-1.6.1.tar.bz2
    
    # add .DS_Store to default ignore for new repositories
    sudo sh -c "echo .DS_Store >> /usr/local/git/share/git-core/templates/info/exclude"
    
     
  • Anonymous

    Anonymous - 2009-01-08

    Originally posted by: t.e.wi...@gmail.com

    so i've hacked my Makefile to avoid what i don't have(expat.h, tkl)

    but:

    $ make LDFLAGS="-L/usr/lib" prefix=/usr/local/git

    LINK git-imap-send

    /usr/bin/ld: Undefined symbols: _ERR_error_string _ERR_get_error

    but i've got:

    /usr/lib/libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.dylib /usr/lib/libcrypto.dylib

    wtf?

     
  • Anonymous

    Anonymous - 2009-01-11

    Originally posted by: anthony....@gmail.com

    I've got the same questions as liveloveprosper, how best to upgrade?

     
  • Anonymous

    Anonymous - 2009-03-07

    Originally posted by: exaos.lee

    Why aren't there new packages for PPC? :-( I'm using PowerBook? G4 now. It's old but still works fine. Unfortunately, building packages is very slow on it. :-( Hope to download newer PPC binary.

     
  • Anonymous

    Anonymous - 2009-04-10

    Originally posted by: timchar...@gmail.com

    exaos.lee - I'm still waiting for someone to step up to the plate, as I have no powerbook mac in my possession I'd be least qualified to perform the task.

     
  • Anonymous

    Anonymous - 2009-04-10

    Originally posted by: timchar...@gmail.com

    Re: how to best upgrade from a port install to the package installer, you've a few options:

    A) Use the port uninstall feature, and then install the package.

    B) Install the package, and then make sure the /opt/local/bin comes after /usr/local/git/bin in your path

    C) Manually remove the old git, and all of it's support files. This can be dangerous as you must be root to perform the task. You may wish to create a backup before you let a wood-chipper loose in the forest.

     
  • Anonymous

    Anonymous - 2009-04-10

    Originally posted by: timchar...@gmail.com

    Uninstallation instructions for the package are included in the disk image. But, since they are brief, I will simply confirm that you are correct, liveloveprosper

    rm -rf /usr/local/git /etc/paths.d/git /etc/manpaths.d/git
    
    # careful!  rm -rf is DANGEROUS
    
     
  • Anonymous

    Anonymous - 2009-06-01

    Originally posted by: clubjuggler

    Note, btw, that for those wanting 64 bit versions or ppc versions, I uploaded a build.sh to  Issue 20  that will automatically create full universal binaries (ppc/ppc64/i386/x86_64) when building.

     
  • Anonymous

    Anonymous - 2009-07-25

    Originally posted by: square.g...@gmail.com

    I installed git through the dmg installer on this page. typing git command to install some textmate bundles gives me : git - command not found. is there anything else i have to do to make it work?

     
  • Anonymous

    Anonymous - 2009-08-28

    Originally posted by: PERL.pro...@gmail.com

    Updating to snow leopard, you will need to re-create the /etc/path.d/git and /etc/manpaths.d/git files, since apparently they get deleted in the process.

     
  • Anonymous

    Anonymous - 2010-01-06

    Originally posted by: rfarahm...@gmail.com

    How can I install/compile git on OSX 10.4

     
  • Anonymous

    Anonymous - 2011-01-16

    Originally posted by: livelove...@gmail.com

    Hi Tim Charper,

    After analyzing your source code from the GitHub? link you provided above, and also reviewing the Makefile & INSTALL files in the git package, and reading up on make and other compiler things, I decided to do a Git install from source since I already had Xcode installed. Also, although it's easier to install Git with the installer, I wanted to have more control, get the latest version, and learn more about how compiling & installing from source works in general and with Git specifically.

    I saved my commands and then decided to post this git-install.sh script: http://www.mattdipasquale.com/blog/2010/05/30/instructions-how-to-install-git-from-source-on-mac-os-x-10-6-snow-leopard-intel-x86-32-bit

    It automatically detects the latest stable release of Git and installs it for you. It even installs git-completion.bash, and you can run it again when a new release of Git comes out and it will update your installed version of Git by overwriting it (installing into the same directory).

    Matt

     
  • Anonymous

    Anonymous - 2011-03-07

    Originally posted by: bjorn1...@gmail.com

    I was able to use the above script to compile current git for Mac OS X 10.5.8 PowerPC by simply replacing 10.6 with 10.5 and i386 with ppc.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.