You are here

Mac OS Lion

Install MySQL Gem in Mac OS - using MacPorts

While trying to install the MySQL gem in a Mac OS Lion, you might get an error message:

$ sudo gem install mysql -v '2.8.1'
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
....
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Mac OS edit /etc/hosts and DNS Cache Flush

In Mac Os when you edit the /etc/hosts file either by adding a new entry or changing an existing one, the changes are not reflected immediately.
So you think:
- This is simple! All I have to do is close the Terminal and open a new one!
And then you realize it did NOT work.
Since you are a smart person, you might think:
- Well, all I have to do is log out and back in! Still simple!
Only to realize again that it did NOT work.

Setting up a git server on MacOS X Lion

Recently I found this nice tutorial on how to setup a git server on a Mac OS X Lion.
It goes straight to the point and you can setup the server using apache real quick!

Enjoy!

Update on October, 15th 2011: Since the referred website has been down a few times the past few days, I have added below the most important steps for setting up the git server on a MacOS X Lion.

Ruby on Rails on Mac OS Lion MysqlCompat::MysqlRes Error

If you are running ruby in Mac OS X Lion and are having trouble with MySQL with the ever annoying message "uninitialized constant MysqlCompat::MysqlRes please do not spend the hours I did trying to solve it. Here is how to do it. The instructions below assume you have a 64 bits processor.

Subscribe to RSS - Mac OS Lion