So You’ve Got A New Computer…

Here’s a quick checklist of the steps I just took to get all my web dev stuff set up on my new MacBook with Leopard. I do mostly Ruby on Rails work with some PHP stuff thrown in there, so we’ll go through installing MySQL, PHP, Rails, Git and Passenger.

1) Install Developer tools – these are on the main OS installation disc, and you won’t be able to gem update –system until you have them installed.

2) Install MySQL – for this I followed these instructions from Dan Benjamin. The only difference is that now MySQL 5.1 is out, so this block:

curl -O http://mysql.he.net/Downloads/MySQL-5.0/mysql-5.0.67.tar.gz
tar xzvf mysql-5.0.67-osx10.5-x86.tar.gz
cd mysql-5.0.67
becomes this:
curl -O http://mysql.he.net/Downloads/MySQL-5.1/mysql-5.1.30.tar.gz
tar xzvf mysql-5.1.30-osx10.5-x86.tar.gz
cd mysql-5.1.30
3) Enable PHP – open the apache config file (httpd.conf) and un-comment the line to load the PHP module
# /etc/apache2/httpd.conf

line 115

LoadModule php5_module libexec/apache2/libphp5.so

4) restart apache with sudo apachectl restart

5) update Gems and install Rails

sudo gem update --system
6) Install Git (taken from http://subtlegradient.com/articles/2008/02/21/install_git_leopard)
# create a directory to download to
mkdir -p /usr/local/src
cd /usr/local/src

Set options since we don't have GNU gettext installed

export TCL_PATH=which tclsh export NO_MSGFMT=1 export GIT_VERSION='1.6.0.6'

Get and install git

curl -O "http://kernel.org/pub/software/scm/git/git-$GIT_VERSION.tar.bz2" tar xjvf "git-$GIT_VERSION.tar.bz2" cd "git-$GIT_VERSION/" ./configure make sudo make install

Colors? YES!

git config --global color.ui auto

Personal Setup

git config --global user.name "Your Name" git config --global user.email your_email@your-domain.com

7) Install Passenger
$ sudo gem install passenger
$ sudo passenger-install-apache2-module
Then follow these instructions to finish configuring Apache for Passenger.

That’s it! If anything went wrong, the answers are readily available all over the web. I made this list more as a checklist for myself than to provide any new info that isn’t already out there. Now go make a Jack and Coke and chill for the rest of the day.

No Trackbacks

You can leave a trackback using this URL: http://keithnorm.com/2008/12/23/so-youve-got-a-new-computer/trackback/

11 Comments

  1. I was actually supportive of this Satellite Direct was my solution. The Direct TV dish must be aligned within the satellite’s broadcasting beam area and pointed in the correct direction. You can still enjoy a clear picture and quality sound if you have the right equipment, such as a high definition TV set and an antennae.

    Cost and Pace Comparison – Worldwide satellite would not be as chosen if it did not offer fantastic functionality with direct tv internet options sensible rates. Some of the channels included in this package are Animal Planet, ABC Family, The Biography Channel, Boomerang, The Church Channel, Cartoon Network, Discovery Channel, Disney Channel, Discovery Kids, DIY Network, God TV, Gems – TV, Hallmark Channel, the National Geographic Channel and the Learning Channel.

    Posted November 13, 2012 at 2:52 am | Permalink
  2. Thank you for the good writeup. It actually was once a enjoyment account it. Glance complicated to more brought agreeable from you! However, how could we keep in touch?

    Posted November 24, 2012 at 10:58 pm | Permalink
  3. It’s genuinely very complex in this busy life to listen news on Television, so I only use web for that purpose, and get the latest news.

    Posted January 22, 2013 at 7:15 am | Permalink
  4. What’s up, after reading this remarkable paragraph i am too delighted to share my familiarity here with friends.

    Posted January 29, 2013 at 6:58 am | Permalink
  5. I just like the helpful info you provide for your articles. I’ll bookmark your blog and test once more right here regularly. I’m fairly sure I will be informed many new stuff proper here! Good luck for the next!

    Posted February 25, 2013 at 12:58 pm | Permalink
  6. It’s hard to find knowledgeable people in this particular topic, but you seem like you know what you’re talking about!

    Thanks

    Posted February 27, 2013 at 6:19 pm | Permalink
  7. gallic

    ” The stepmother went over to the young “Jessie James, ” placed her hand under his chin, tilted his head upward, looked him squarely in the eyes for a moment, and then turned to her husband and said, “You are wrong. It needs to be rushed to a medical facility which is capable of handling emergencies. Also like many single parents, Sebastiao is hoping to share the bills with her former spouse. If the other driver makes any admissions of fault, write those down as well. Finally, I think anyone would be inspired by Lynda’s story.

    Posted March 6, 2013 at 1:28 pm | Permalink
  8. What’s up it’s me, I am also visiting this web page daily, this site is genuinely good and the visitors are actually sharing nice thoughts.

    Posted March 11, 2013 at 10:43 pm | Permalink
  9. I came to be just seeking this information for a while. After six hours of continuous Googleing, eventually I bought it inside your website. I ponder what exactly is having no Google technique that tend not to rank this form of informative sites in top of the list. Normally the top websites are complete with garbage.

    Posted March 16, 2013 at 5:12 am | Permalink
  10. -Provides your system with added power and stamina that you would need for losing weight. Cha de Burge supposedly diminishes appetite without taking it away completely, allowing the dieter to take pleasure from a meal without overeating. Raspberry ketone is also helpfulto relax and wind down the arteries that lessen the danger of heart problems along with other disorders. pure raspberry ketone

    Posted March 21, 2013 at 6:10 am | Permalink
  11. This can be really interesting, You’re a truly competent blogger.

    Posted April 24, 2013 at 5:38 am | Permalink

Post a Comment

Your email is never shared. Required fields are marked *

*
*