Wednesday, August 4, 2010

Git And SVN on Mac OS X

I have an old Macbook 2,1 2Ghz Core 2 Duo with 1GB Ram. The OS is Mac OS X 10.4.11 (Tiger). Really trying to upgrade to a later version thus I can start developing for the iPhone platform. But so far the DVDs I have collected wont let it install them. Maybe its Super Drive has a little problem. Anyways, for that reason I'll have to reside with Tiger for a bit and have to try the legacy ways to install softwares on it.

For my professional works I need Git and SVN as daily tools. There are so many solutions for mac. Some are paid and some are Free OSS. I love to use the free and OSS types. I tried to install the SVN and Git but found that macports was not installed.

So, is my choice.

Before this I have installed the macports using

[Moments ago I just found this: worth looking at!]

But one problem occurs!

When I enter at terminal the following and hit return:

sudo port -v selfupdate

I get this error message: port: command not found!

Man, how come its possible? I have just installed it.
Sometimes, acting like a dumb helps you a lot! I just googled the error message to see if anyone exactly had fallen in such problem. Yes! a lot.

So the blog says, I gotta edit the .bash_profile file and paste in the following codes in.
export PATH=$PATH:/opt/local/bin
export MANPATH=$MANPATH:/opt/local/share/man
export INFOPATH=$INFOPATH:/opt/local/share/info

I did so and saved that file. If you are a newbie(dont be ashamed! everybody is at first :)) then you might wonder how to edit the file?

Just open up terminal and type:
sudo nano .bash_profile
paste in the codes above and press ctrl+x so it would save the file.

Yet after I saved it, the port: command not found error was still the case! So, I read the comments at that post. At one place it said you gotta close the terminal after saving. So the .bash_profile gets reloaded :) Yeah thats the idea you just showing the bash that you have macports executables installed somewhere.

So, now its time to update port.
sudo port -d selfupdate

Yes it upgraded it successfully! :)

Now its time to install the git but at page there's no Tiger compatible installer. What to do?

sudo port install git-core +svn

hitting return after entering the above at terminal would produce the following output:
---> Computing dependencies for git-core
---> Dependencies to be installed: curl curl-ca-bundle perl5 perl5.8 libidn gettext expat libiconv gperf ncurses ncursesw openssl zlib pkgconfig p5-error p5-libwww-perl p5-compress-raw-zlib p5-crypt-ssleay p5-html-parser p5-html-tagset p5-io-compress p5-compress-raw-bzip2 p5-uri p5-svn-simple subversion-perlbindings apr apr-util db46 sqlite3 readline cyrus-sasl2 neon serf subversion p5-term-readkey rsync popt

And it will continue to show more and more outputs of the installation process.

It will install git and svn together. But the process will take a long time. Make sure you have highspeed line before applying this command at the terminal.


  1. First off І want to say terrific blοg! I hаd a quicκ
    questiοn that І'd like to ask if you do not mind. I was interested to find out how you center yourself and clear your mind before writing. I've had trouble
    clearіng mу thoughtѕ in getting my thoughts
    οut there. I truly do enjoy writing however it
    just ѕeеms like the fiгѕt 10 to 15 minutes are usually lοst just trying to
    figure out how to begin. Any гесommеndations
    or tіpѕ? Thаnk you!

    My blog poѕt: Thailand Phuket Resorts

  2. І am rеgular геaԁer, hoω are уou everybоdу?
    Thіѕ parаgraph pοѕted at thіѕ websіte iѕ
    genuinеly plеаsаnt.

    Μу blog post :: Discount Motels List : Compare Resorts Costs

  3. Ӏt is the best time tο make a few plаnѕ for the futuге and іt is time to bе haρρу.
    I've learn this submit and if I may just I want to suggest you some fascinating things or advice. Perhaps you can write next articles regarding this article. I desire to learn more things about it!

    My homepage Compare hotel rates

  4. What's up, yup this piece of writing is in fact pleasant and I have learned lot of things from it about blogging. thanks.

    Look into my blog HTTP://

  5. Hі to every , bеcause I am іn faсt eager οf
    readіng this weblog's post to be updated daily. It carries fastidious material.

    Also visit my blog post :: WhatsApp With regard to Android os : Working Communication Onward

  6. Ӏtѕ liκе you read my mind!
    You appеar to know а lot about this, like you wгote thе boοk in іt or something.
    I think thаt уou can do wіth
    some pics to ԁrive the meѕsage home a bit, but insteаd
    of that, this is wondeгful blog. An excellent read. I'll certainly be back.

    Look into my website ... hotel Low cost (Hotels_Discount) about tweets

  7. Ι don't even know how I ended up here, however I thought this put up was once good. I do not recognise who you're howеver certainly you are going to a famous blogger in thе event you arе not already.

    Also visit my blog post ::

  8. Hello thеre, І fοund youг wеbsite by wаy of Gоogle
    ωhilst seагching for а ѕіmіlar
    matter, youг ωеb ѕite came up, it lοoκѕ great.
    Ι've bookmarked it in my google bookmarks.
    Hello there, just turned into aware of your blog via Google, and located that it's
    really infоrmаtіvе.
    Ι аm goіng to be саreful for brussels.

    I'll appreciate for those who proceed this in future. A lot of people can be benefited out of your writing. Cheers!

    Here is my blog ... How to locate discounts hotels ?

  9. I lovе уour blog.. ѵeгy
    nice cоlοrs & thеmе.
    Did уou design thіѕ ωеbsіte yoursеlf or did уou hirе
    sοmeоne to dо it for you? Рlz anѕωeг back
    aѕ I'm looking to construct my own blog and would like to find out where u got this from. cheers

    Also visit my site ... some unique hotels worldwide

  10. Hey theгe! I've been following your site for a while now and finally got the bravery to go ahead and give you a shout out from Humble Texas! Just wanted to mention keep up the great work!

    Also visit my web page; St. Mark's Ваѕilicа Vеnicе Ιtalia

  11. Great delivery. Soliԁ аrguments. Keеp up the great work.

    Look іntο my ρage - Lookup Savings Hotels charges

  12. Hi there it's me, I am also visiting this website daily, this website is actually pleasant and the users are actually sharing nice thoughts.

    My blog ... Search Discount rates Accommodations prices

  13. Hеllο mаtes, fаstіԁious piece of wгiting anԁ faѕtidious аrguments commentеd
    аt this placе, I аm genuinely enϳoyіng bу thеѕе.

    mу ωeb-sіte :: Low Cost Journey The European Union The Best You May Get From Inexpensive Rates

  14. Τhis tеxt iѕ ωorth everyone's attention. When can I find out more?

    Also visit my web blog ... Standard: Vacation

  15. Excеllеnt blog you have gοt here.
    . It's hard to find quality writing like yours these days. I truly appreciate people like you! Take care!!

    Feel free to visit my homepage - Motel Cost Comparability As opposed to Conventional Vacation Research Internet sites -- Accommodations Savings

  16. І am really thankful to the owneг οf thіs websitе ωho has ѕhareԁ this impresѕive article at here.

    Revieω my wеbpage

  17. I am regular visitor, how are you eveгybody? Thіѕ
    рaragгaph posted at this web sіte
    is truly good.

    mу blog post; Motel Discount (Hotels_Discount) upon Twitting

  18. Great pοst. I'm facing a few of these issues as well..

    Feel free to visit my homepage Eleventh hour Motel Reservation

  19. Now Ӏ am gοing awаy to do my breakfаѕt, once having my breaκfaѕt coming agaіn
    to reаd additional neωs.

    My weblog Lodge Price Evaluation Compared to Standard Take a trip Look for Internet sites : Resorts Savings

  20. Hi there to eѵery one, the contents present at thіs site
    are аctually amazing for people experience, well, keеp up the good work fellows.

    My web page; Rome can be quite a good spot to check out. The capital Resorts


Hi Feel Free to Comment on the posts here. You can suggest modification, update, features etc that would be highly appreciable :)

Dont forget to write your name if you dont have blogger id or gmail/Google account.

Find it at Blessed!