Opened 12 years ago

Last modified 7 years ago

#36520 assigned defect

rb-rails: doesn't install rails

Reported by: cdeil (Christoph Deil) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: rb-rails

Description

I installed the rb-rails port without problems, but when I try to issue a rails command I get this message:

$ rails
Rails is not currently installed on this system. To get the latest version, simply type:

    $ sudo gem install rails

You can then rerun your "rails" command.

Why was the rails not found and I have to re-install it via sudo gem install rails?

So I followed the advice and installed rails via gem:

$ sudo gem install rails
Password:
Building native extensions.  This could take a while...
Depending on your version of ruby, you may need to install ruby rdoc/ri data:

<= 1.8.6 : unsupported
 = 1.8.7 : gem install rdoc-data; rdoc-data --install
 = 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!
Successfully installed i18n-0.6.1
Successfully installed multi_json-1.3.6
Successfully installed activesupport-3.2.8
Successfully installed builder-3.0.3
Successfully installed activemodel-3.2.8
Successfully installed rack-1.4.1
Successfully installed rack-cache-1.2
Successfully installed rack-test-0.6.2
Successfully installed journey-1.0.4
Successfully installed hike-1.2.1
Successfully installed tilt-1.3.3
Successfully installed sprockets-2.1.3
Successfully installed erubis-2.7.0
Successfully installed actionpack-3.2.8
Successfully installed arel-3.0.2
Successfully installed tzinfo-0.3.33
Successfully installed activerecord-3.2.8
Successfully installed activeresource-3.2.8
Successfully installed mime-types-1.19
Successfully installed polyglot-0.3.3
Successfully installed treetop-1.4.10
Successfully installed mail-2.4.4
Successfully installed actionmailer-3.2.8
Successfully installed rack-ssl-1.3.2
Successfully installed thor-0.16.0
Successfully installed json-1.7.5
Successfully installed rdoc-3.12
Successfully installed railties-3.2.8
Successfully installed bundler-1.2.1
Successfully installed rails-3.2.8
30 gems installed
Installing ri documentation for i18n-0.6.1...
Installing ri documentation for multi_json-1.3.6...
Installing ri documentation for activesupport-3.2.8...
Installing ri documentation for builder-3.0.3...
Installing ri documentation for activemodel-3.2.8...
Installing ri documentation for rack-1.4.1...
Installing ri documentation for rack-cache-1.2...
Installing ri documentation for rack-test-0.6.2...
Installing ri documentation for journey-1.0.4...
Installing ri documentation for hike-1.2.1...
Installing ri documentation for tilt-1.3.3...
Installing ri documentation for sprockets-2.1.3...
Installing ri documentation for erubis-2.7.0...
Installing ri documentation for actionpack-3.2.8...
Installing ri documentation for arel-3.0.2...
Installing ri documentation for tzinfo-0.3.33...
Installing ri documentation for activerecord-3.2.8...
Installing ri documentation for activeresource-3.2.8...
Installing ri documentation for mime-types-1.19...
Installing ri documentation for polyglot-0.3.3...
Installing ri documentation for treetop-1.4.10...
Installing ri documentation for mail-2.4.4...
Installing ri documentation for actionmailer-3.2.8...
Installing ri documentation for rack-ssl-1.3.2...
Installing ri documentation for thor-0.16.0...
Installing ri documentation for json-1.7.5...
Installing ri documentation for rdoc-3.12...
Installing ri documentation for railties-3.2.8...
Installing ri documentation for bundler-1.2.1...
Installing ri documentation for rails-3.2.8...
Installing RDoc documentation for i18n-0.6.1...
Installing RDoc documentation for multi_json-1.3.6...
Installing RDoc documentation for activesupport-3.2.8...
Installing RDoc documentation for builder-3.0.3...
Installing RDoc documentation for activemodel-3.2.8...
Installing RDoc documentation for rack-1.4.1...
Installing RDoc documentation for rack-cache-1.2...
Installing RDoc documentation for rack-test-0.6.2...
Installing RDoc documentation for journey-1.0.4...
Installing RDoc documentation for hike-1.2.1...
Installing RDoc documentation for tilt-1.3.3...
Installing RDoc documentation for sprockets-2.1.3...
Installing RDoc documentation for erubis-2.7.0...
Installing RDoc documentation for actionpack-3.2.8...
Installing RDoc documentation for arel-3.0.2...
Installing RDoc documentation for tzinfo-0.3.33...
Installing RDoc documentation for activerecord-3.2.8...
Installing RDoc documentation for activeresource-3.2.8...
Installing RDoc documentation for mime-types-1.19...
Installing RDoc documentation for polyglot-0.3.3...
Installing RDoc documentation for treetop-1.4.10...
Installing RDoc documentation for mail-2.4.4...
Installing RDoc documentation for actionmailer-3.2.8...
Installing RDoc documentation for rack-ssl-1.3.2...
Installing RDoc documentation for thor-0.16.0...
Installing RDoc documentation for json-1.7.5...
Installing RDoc documentation for rdoc-3.12...
Installing RDoc documentation for railties-3.2.8...
Installing RDoc documentation for bundler-1.2.1...
Installing RDoc documentation for rails-3.2.8...

Note that some of these gems had already been installed as rb-rails dependencies via Macports:

$ port deps rb-rails
Full Name: rb-rails @2.3.5_0
Library Dependencies: ruby, rb-rubygems, rb-rake, rb-activesupport, rb-activerecord, rb-actionpack, rb-actionmailer, rb-activeresource, rb-sqlite3

Still rails is not found:

$ rails
Rails is not currently installed on this system. To get the latest version, simply type:

    $ sudo gem install rails

You can then rerun your "rails" command.

Here's some more info on what is on my PATH:

$ ruby --version
ruby 1.8.7 (2012-06-29 patchlevel 370) [i686-darwin12]
$ which rails
/opt/local/bin/rails
$ which gem
/opt/local/bin/gem
$ gem --version
1.3.7

With other software Macports has worked very well for me. Now I wanted to give ruby and rails a try, but installation (as a newbie that doesn't know about version differences and where gems are installed and found ...) with Macports has been disappointing. See #36518 and #36519 for the problems I ran into trying to install rb19-rails.

Change History (3)

comment:1 Changed 12 years ago by cdeil (Christoph Deil)

Sorry, I believe the title is incorrect. Probably rails was installed, just not found for some reason?

comment:2 Changed 12 years ago by jmroot (Joshua Root)

Cc: rcavanaugh@… removed
Owner: changed from macports-tickets@… to rcavanaugh@…

comment:3 Changed 7 years ago by kurthindenburg (Kurt Hindenburg)

Owner: rcavanaugh@… deleted
Status: newassigned
Note: See TracTickets for help on using tickets.