Dot Craft
quarta-feira, 16 de fevereiro de 2011
remove mysql from osx
If you ever wish to completely remove mysql from osx, run:
sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
vim /etc/hostconfig and removed the line MYSQLCOM=-YES-
rm -rf ~/Library/PreferencePanes/My*
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
sudo rm -rf /var/db/receipts/com.mysql.*
segunda-feira, 14 de fevereiro de 2011
ruby on rails on macosx
Mac OS X is bundled with ruby and rails, however they are not up-to-date.
10.6.6 versions:
- ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
- Rails 2.3.5
I followed the excellent guide at spyrestudios to bring me up to speed on my ruby environment - including updating ruby+rails to the latest builds.
MacPorts:
After installing macports, run: sudo port -v selfupdate
For exploring the available packages run the list command on port interactive mode.
I also found it useful to install sqlite3: sudo port install sqlite3
RVM:
Run: bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-latest )
Place the following line in your ~/.profile:
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
For exploring RVM, run: rvm list known
To update ruby run the following
- rvm install 1.9.2
- rvm system
- rvm gemset export system.gems #export your existing gems
- rvm 1.9.2
- rvm gemset import system #import gems
Check out: http://rvm.beginrescueend.com/rubies/default/ to set the default ruby and to switch between 1.9.2. and system ruby.
Rails:
rvm use –-create 1.9.2@rails3
gem install sqlite3-ruby
gem install rails
Subscrever:
Mensagens (Atom)