You are here

mac

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.

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.

How to create Bash Aliases in Mac Os

Being a flavor of Unix (in some level) it is possible to set some aliases in your Mac Os shell.
All you have to do is open your Terminal and type the commands below, or something else that suits more your taste.

  • vi ~/.bash_profile
  • Once the file is open in vi, just add the following lines (well you do know how to do basic vi editing, right?)

Subscribe to RSS - mac