Skip to content

Instantly share code, notes, and snippets.

@trevorturk
Created June 12, 2010 17:37
Show Gist options
  • Save trevorturk/435913 to your computer and use it in GitHub Desktop.
Save trevorturk/435913 to your computer and use it in GitHub Desktop.
ruby-1.8.7-p174 ~ > gem list
*** LOCAL GEMS ***
rack (1.1.0)
rake (0.8.7)
rdoc (2.5.8)
ruby-1.8.7-p174 ~ > gem install passenger
Building native extensions. This could take a while...
Building native extensions. This could take a while...
Successfully installed fastthread-1.0.7
Successfully installed passenger-2.2.14
2 gems installed
ruby-1.8.7-p174 ~ > passenger-install-nginx-module
Welcome to the Phusion Passenger Nginx module installer, v2.2.14.
This installer will guide you through the entire installation process. It
shouldn't take more than 5 minutes in total.
Here's what you can expect from the installation process:
1. This installer will compile and install Nginx with Passenger support.
2. You'll learn how to configure Passenger in Nginx.
3. You'll learn how to deploy a Ruby on Rails application.
Don't worry if anything goes wrong. This installer will advise you on how to
solve any problems.
Press Enter to continue, or Ctrl-C to abort.
--------------------------------------------
Checking for required software...
* GNU C++ compiler... found at /usr/bin/g++
* Ruby development headers... found
* OpenSSL support for Ruby... found
* RubyGems... found
* Rake... found at /Users/trevorturk/.rvm/gems/ruby-1.8.7-p174/bin/rake
* rack... found
* OpenSSL development headers... found
* Zlib development headers... found
--------------------------------------------
Automatically download and install Nginx?
Nginx doesn't support loadable modules such as some other web servers do,
so in order to install Nginx with Passenger support, it must be recompiled.
Do you want this installer to download, compile and install Nginx for you?
1. Yes: download, compile and install Nginx for me. (recommended)
The easiest way to get started. A stock Nginx 0.7.65 with Passenger
support, but with no other additional third party modules, will be
installed for you to a directory of your choice.
2. No: I want to customize my Nginx installation. (for advanced users)
Choose this if you want to compile Nginx with more third party modules
besides Passenger, or if you need to pass additional options to Nginx's
'configure' script. This installer will 1) ask you for the location of
the Nginx source code, 2) run the 'configure' script according to your
instructions, and 3) run 'make install'.
Whichever you choose, if you already have an existing Nginx configuration file,
then it will be preserved.
Enter your choice (1 or 2) or press Ctrl-C to abort: 1
--------------------------------------------
PCRE (required by Nginx) not installed, downloading it...
# wget -O /tmp/pcre-8.00.tar.gz ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.00.tar.gz
/tmp/pcre-8.00.tar.gz: Permission denied
--------------------------------------------
PCRE could not be downloaded
Nginx requires PCRE for its rewrite module, so this installer will attempt to
install Nginx without the rewrite module.
If you want to make use of Nginx's rewrite module, please install PCRE manually
by downloading it from:
http://www.pcre.org/
Press ENTER to continue, or Ctrl-C to abort.
--------------------------------------------
Downloading Nginx...
# wget -O /tmp/nginx-0.7.65.tar.gz http://sysoev.ru/nginx/nginx-0.7.65.tar.gz
/tmp/nginx-0.7.65.tar.gz: Permission denied
--------------------------------------------
Unable to download or extract Nginx source tarball
Possible reasons:
* You are not connected to the Internet.
If this is the case, then please connect to the Internet and try again.
* The URL that this installer tried to download from no longer exists.
If this is the case, then please download and extract the Nginx source
manually. Then restart this installer, and choose option 2 ("No: I want
to customize my Nginx installation").
* The download was corrupted.
Please re-run this installer; it will re-download Nginx. If this still
fails, then please download and extract the Nginx source manually. Then
restart this installer, and choose option 2 ("No: I want to customize my
Nginx installation").
* This installer is not able to write to /tmp.
Please fix the permissions for this directory, or run this installer as root.
ruby-1.8.7-p174 ~ > sudo passenger-install-nginx-module
Welcome to the Phusion Passenger Nginx module installer, v2.2.14.
This installer will guide you through the entire installation process. It
shouldn't take more than 5 minutes in total.
Here's what you can expect from the installation process:
1. This installer will compile and install Nginx with Passenger support.
2. You'll learn how to configure Passenger in Nginx.
3. You'll learn how to deploy a Ruby on Rails application.
Don't worry if anything goes wrong. This installer will advise you on how to
solve any problems.
Press Enter to continue, or Ctrl-C to abort.
--------------------------------------------
Checking for required software...
* GNU C++ compiler... found at /usr/bin/g++
* Ruby development headers... found
* OpenSSL support for Ruby... found
* RubyGems... found
* Rake... not found
* rack... found
* OpenSSL development headers... found
* Zlib development headers... found
Some required software is not installed.
But don't worry, this installer will tell you how to install them.
Press Enter to continue, or Ctrl-C to abort.
--------------------------------------------
Installation instructions for required software
* To install Rake:
Please install RubyGems first, then run /Users/trevorturk/.rvm/rubies/ruby-1.8.7-p174/bin/gem install rake
If the aforementioned instructions didn't solve your problem, then please take
a look at the Users Guide:
/Users/trevorturk/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/gems/1.8/gems/passenger-2.2.14/doc/Users guide Nginx.html
ruby-1.8.7-p174 ~ > sudo gem list
*** LOCAL GEMS ***
fastthread (1.0.7)
passenger (2.2.14)
rack (1.1.0)
rake (0.8.7)
rdoc (2.5.8)
ruby-1.8.7-p174 ~ > /Users/trevorturk/.rvm/rubies/ruby-1.8.7-p174/bin/gem install rake
Successfully installed rake-0.8.7
1 gem installed
ruby-1.8.7-p174 ~ > sudo passenger-install-nginx-module
Welcome to the Phusion Passenger Nginx module installer, v2.2.14.
This installer will guide you through the entire installation process. It
shouldn't take more than 5 minutes in total.
Here's what you can expect from the installation process:
1. This installer will compile and install Nginx with Passenger support.
2. You'll learn how to configure Passenger in Nginx.
3. You'll learn how to deploy a Ruby on Rails application.
Don't worry if anything goes wrong. This installer will advise you on how to
solve any problems.
Press Enter to continue, or Ctrl-C to abort.
--------------------------------------------
Checking for required software...
* GNU C++ compiler... found at /usr/bin/g++
* Ruby development headers... found
* OpenSSL support for Ruby... found
* RubyGems... found
* Rake... not found
* rack... found
* OpenSSL development headers... found
* Zlib development headers... found
Some required software is not installed.
But don't worry, this installer will tell you how to install them.
Press Enter to continue, or Ctrl-C to abort.
--------------------------------------------
Installation instructions for required software
* To install Rake:
Please install RubyGems first, then run /Users/trevorturk/.rvm/rubies/ruby-1.8.7-p174/bin/gem install rake
If the aforementioned instructions didn't solve your problem, then please take
a look at the Users Guide:
/Users/trevorturk/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/gems/1.8/gems/passenger-2.2.14/doc/Users guide Nginx.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment