![]() ![]() My Passenger version is : 3.0.2 so you should edit the code below if yours is a different version mate /etc/apache2/extra/nf Add the following to the file and save (Change passenger directory string if your have a different version. Mate /private/etc/apache2/nf Add the following to the end of file and save Include /private/etc/apache2/extra/nf Create Passenger config file for Apache: (Just hit enter on prompts) sudo passenger-install-apache2-module Include Passenger config file Sudo gem install passenger Build passenger for apache Sudo gem install sqlite3-ruby Install Passenger gem Irb irb > require ‘rubygems’ irb > require ‘mysql’ irb > Mysql.new(‘localhost’, ‘root’, ‘password’, ‘test’) Install Sqlite gem Sudo env ARCHFLAGS=”-arch x86_64" gem install - no-rdoc - no-ri mysql - with-mysql-config=/usr/local/mysql/bin/mysql_config You can use sudo gem uninstall mysql to uninstall Test mysql gem Sudo gem install rake rails thin tzinfo capistrano ruby-debug rspec Install Mysql Gem ![]() ![]() Mkdir ~/src cd ~/src curl -O tar xzvf rubygems-1.3.7.tgz cd rubygems-1.3.7 sudo ruby setup.rb sudo gem update - system Install rails, rake, bundle, rspec etc. Sudo port -v install ruby Download, Install and Update RubyGems Mate ~/.bash_profile Add the following to the end of file and save export PATH=/opt/local/bin:/opt/local/sbin:$PATH export MANPATH=/opt/local/share/man:$MANPATH (MacPorts-1.9.2–10.6-SnowLeopard.dmg) Download and Install Ruby Configure Path, download and Install Macports ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |