Created
November 4, 2011 06:03
-
-
Save bendo01/1338760 to your computer and use it in GitHub Desktop.
install ruby on rails php passenger and nginx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bennys-Mac-Pro:/ bennylep$ sudo port -fp uninstall --follow-dependents installed | |
bennys-Mac-Pro:/ bennylep$ clear | |
bennys-Mac-Pro:/ bennylep$ sudo rm -rf \ | |
> /opt/local \ | |
> /Applications/DarwinPorts \ | |
> /Applications/MacPorts \ | |
> /Library/LaunchDaemons/org.macports.* \ | |
> /Library/Receipts/DarwinPorts*.pkg \ | |
> /Library/Receipts/MacPorts*.pkg \ | |
> /Library/StartupItems/DarwinPortsStartup \ | |
> /Library/Tcl/darwinports1.0 \ | |
> /Library/Tcl/macports1.0 \ | |
> ~/.macports | |
bennys-Mac-Pro:/ bennylep$ clear | |
bennys-Mac-Pro:/ bennylep$ sudo port -v selfupdate | |
bennys-Mac-Pro:~ bennylep$ sudo launchctl start org.macports.nginx | |
bennys-Mac-Pro:~ bennylep$ sudo launchctl stop org.macports.nginx | |
bennys-Mac-Pro:~ bennylep$ sudo launchctl start org.macports.nginx | |
bennys-Mac-Pro:~ bennylep$ sudo launchctl stop org.macports.nginx | |
bennys-Mac-Pro:~ bennylep$ sudo launchctl start org.macports.nginx | |
bennys-Mac-Pro:~ bennylep$ sudo port install php5 +fastcgi fcgi | |
bennys-Mac-Pro:/ bennylep$ sudo port upgrade outdated | |
Error: No ports matched the given expression | |
bennys-Mac-Pro:/ bennylep$ sudo port install ruby19 +nosuffix | |
bennys-Mac-Pro:/ bennylep$ which ruby | |
/opt/local/bin/ruby | |
bennys-Mac-Pro:/ bennylep$ ruby -v | |
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11] | |
bennys-Mac-Pro:/ bennylep$ sudo gem install -V -r passenger | |
Password: | |
cd "/opt/local/lib/ruby1.9/gems/1.9.1/gems/passenger-3.0.9/ext" | |
Last login: Fri Nov 4 11:33:41 on ttys002 | |
bennys-Mac-Pro:~ bennylep$ cd "/opt/local/lib/ruby1.9/gems/1.9.1/gems/passenger-3.0.9/ext" | |
bennys-Mac-Pro:ext bennylep$ sudo rake nginx | |
bennys-Mac-Pro:/ bennylep$ sudo port -vvvvv install nginx +passenger | |
bennys-Mac-Pro:/ bennylep$ sudo gem install -V -r rails | |
bennys-Mac-Pro:/ bennylep$ sudo port install Imagemagick | |
########################################################### | |
# A startup item has been generated that will aid in | |
# starting nginx with launchd. It is disabled | |
# by default. Execute the following command to start it, | |
# and to cause it to launch at startup: | |
# | |
# sudo port load nginx | |
########################################################### | |
bennys-Mac-Pro:/ bennylep$ sudo gem install rmagick | |
bennys-Mac-Pro:~ bennylep$ sudo port install mysql5 +server | |
bennys-Mac-Pro:~ bennylep$ sudo port install mysql5-server | |
Password: | |
---> Computing dependencies for mysql5-server | |
---> Fetching archive for mysql5-server | |
---> Attempting to fetch mysql5-server-5.1.59_0.darwin_11.noarch.tbz2 from http://packages.macports.org/mysql5-server | |
---> Fetching mysql5-server | |
---> Verifying checksum(s) for mysql5-server | |
---> Extracting mysql5-server | |
---> Configuring mysql5-server | |
---> Building mysql5-server | |
---> Staging mysql5-server into destroot | |
---> Creating launchd control script | |
########################################################### | |
# A startup item has been generated that will aid in | |
# starting mysql5-server with launchd. It is disabled | |
# by default. Execute the following command to start it, | |
# and to cause it to launch at startup: | |
# | |
# sudo port load mysql5-server | |
########################################################### | |
---> Installing mysql5-server @5.1.59_0 | |
****************************************************** | |
* In order to setup the database, you might want to run | |
* sudo -u _mysql mysql_install_db5 | |
* if this is a new install | |
****************************************************** | |
---> Activating mysql5-server @5.1.59_0 | |
---> Cleaning mysql5-server | |
bennys-Mac-Pro:~ bennylep$ | |
bennys-Mac-Pro:~ bennylep$ passenger-config --root | |
/opt/local/lib/ruby1.9/gems/1.9.1/gems/passenger-3.0.9 | |
bennys-Mac-Pro:~ bennylep$ cd /opt/local/var/macports/sources/rsync.macports.org/release/ports/www/nginx | |
mate Portfile | |
//add at bottom | |
variant passenger description {Enable Phusion Passenger (mod_rails) support} { | |
configure.args-append --add-module=/opt/local/lib/ruby1.9/gems/1.9.1/gems/passenger-3.0.9/ext/nginx | |
} | |
bennys-Mac-Pro:~ bennylep$ sudo port install nginx +gzip_static +passenger +ssl | |
########################################################### | |
# A startup item has been generated that will aid in | |
# starting nginx with launchd. It is disabled | |
# by default. Execute the following command to start it, | |
# and to cause it to launch at startup: | |
# | |
# sudo port load nginx | |
########################################################### | |
bennys-Mac-Pro:~ bennylep$ sudo launchctl start org.macports.nginx | |
bennys-Mac-Pro:~ bennylep$ sudo launchctl stop org.macports.nginx | |
bennys-Mac-Pro:~ bennylep$ sudo launchctl start org.macports.nginx | |
bennys-Mac-Pro:~ bennylep$ sudo launchctl stop org.macports.nginx | |
bennys-Mac-Pro:~ bennylep$ sudo launchctl start org.macports.nginx | |
bennys-Mac-Pro:~ bennylep$ sudo port install php5 +fastcgi fcgi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment