title: Rails: Command not Found after successful install
body: <p>So I installed ruby, gems and rails - however whenever I type rails I get the <code>rails: Command not found.</code> error.</p>
  
  <p>I did a dump of my local gems, which I'll include below</p>
  
  <pre><code>*** LOCAL GEMS ***
  
  actionmailer (3.2.7)
  actionpack (3.2.7)
  activemodel (3.2.7)
  activerecord (3.2.7)
  activeresource (3.2.7)
  activesupport (3.2.7)
  arel (3.0.2)
  bigdecimal (1.1.0)
  builder (3.0.0)
  bundler (1.1.5)
  daemon_controller (1.0.0)
  erubis (2.7.0)
  fastthread (1.0.7)
  hike (1.2.1)
  i18n (0.6.0)
  io-console (0.3)
  journey (1.0.4)
  json (1.5.4)
  mail (2.4.4)
  mime-types (1.19)
  minitest (2.5.1)
  multi_json (1.3.6)
  mysql (2.8.1)
  passenger (3.0.14)
  polyglot (0.3.3)
  rack (1.4.1)
  rack-cache (1.2)
  rack-ssl (1.3.2)
  rack-test (0.6.1)
  rails (3.2.7)
  railties (3.2.7)
  rake (0.9.2.2)
  rdoc (3.12, 3.9.4)
  sprockets (2.1.3)
  thor (0.15.4)
  tilt (1.3.3)
  treetop (1.4.10)
  tzinfo (0.3.33)
  </code></pre>
  
  <p>I also checked my gem environment setup (below)</p>
  
  <pre><code> - RUBYGEMS VERSION: 1.8.24
    - RUBY VERSION: 1.9.3 (2011-10-30 patchlevel 0) [x86_64-freebsd8.1]
    - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.9.1
    - RUBY EXECUTABLE: /usr/local/bin/ruby
    - EXECUTABLE DIRECTORY: /usr/local/bin
    - RUBYGEMS PLATFORMS:
      - ruby
      - x86_64-freebsd-8
    - GEM PATHS:
       - /usr/local/lib/ruby/gems/1.9.1
       - /root/.gem/ruby/1.9.1
    - GEM CONFIGURATION:
       - :update_sources =&gt; true
       - :verbose =&gt; true
       - :benchmark =&gt; false
       - :backtrace =&gt; false
       - :bulk_threshold =&gt; 1000
    - REMOTE SOURCES:
       - http://rubygems.org/
  </code></pre>
  
  <p>and echo'd my $PATH variable <code>/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin</code></p>
  
  <p>I attempted to go into where the whereis command told me rails was installed </p>
  
  <pre><code>whereis rails
  rails: /usr/local/bin/rails
  </code></pre>
  
  <p>and execute rails from there, again , I got <code>rails: Command not found.</code></p>
  
  <p>I am running FreeBSD on a VPS, and would like to learn some additional languages beyond PHP, but I can't seem to figure this one out for the life of me ... any help would be amazing.</p>