title: Problem installing passenger with Nginx with rvm on linux
body: <p>Tried to install Passenger with Nginx (on EC2 Linux). I'm using ec2-user (instead of Root). Ruby 1.9.2 with RVM.</p>
  
  <p>Passenger gem installs correctly. </p>
  
  <p>But when I try:</p>
  
  <pre><code>passenger-install-nginx-module
  </code></pre>
  
  <p>I get:</p>
  
  <p>Checking for required software...</p>
  
  <pre><code> * GNU C++ compiler... not found
   * The 'make' tool... found at /usr/bin/make
   * A download tool like 'wget' or 'curl'... found at /usr/bin/wget
   * Ruby development headers... found
   * OpenSSL support for Ruby... not found
   * RubyGems... found
   * Rake... found at /home/ec2-user/.rvm/wrappers/ruby-1.9.2-p180/rake
   * rack... found
   * Curl development headers with SSL support... not found
   * OpenSSL development headers... not found
   * Zlib development headers... not found
  </code></pre>
  
  <p>Although the above exist. for instance if I type:</p>
  
  <pre><code>$&gt; gcc
  $&gt; gcc: no input files
  </code></pre>
  
  <p>Saw somewhere online that I can try using:</p>
  
  <pre><code>rvmsudo passenger-install-nginx-module
  </code></pre>
  
  <p>but I get a problem:</p>
  
  <pre><code>--------------------------------------------
  
  Checking for required software...
  
   * GNU C++ compiler... not found
   * The 'make' tool... found at /usr/bin/make
   * A download tool like 'wget' or 'curl'... found at /usr/bin/wget
   * Ruby development headers... found
   * OpenSSL support for Ruby... not found
   * RubyGems... found
  Unable to locate the RVM path. Your RVM installation is probably too old. Please update it with 'rvm update --head &amp;&amp; rvm reload &amp;&amp; rvm repair all'.
  </code></pre>
  
  <p>Any ideas?</p>