rails _x.x.x_ <appname> doesn't work on ubuntu

Susan Sk wrote:

Hello,

I posted this issue on http://railsforum.com without getting an answer yet.

I can't create a specific version of rails on ubuntu OS. Can anyone help me, please?

I have multiple versions of rails:

$ gem list rails *** LOCAL GEMS *** rails (2.3.3, 2.2.2, 1.2.6)

When I invoked... $ rails _1.2.6_ helloApp $ ls _1.2.6_ helloApp

As you notice, instead of giving me rail version 1.2.6, it created two applications: _1.2.6_ rails project and helloApp rails project. My environment is Ubuntu 9.04 64 bit - Jaunty Jakalope.

Interesting. I just tested this on my Ubuntu 9.04 box and it worked as expected. Sometimes I understand this sort of issue can indicate installation problems. What versions of gem and Ruby are you using?

And as a separate issue, why are you trying to create a new app with such an old version of Rails? Or is this simply for testing?

Best,

It's for testing.

Here is my gem environment: $ gem environment RubyGems Environment:   - RUBYGEMS VERSION: 1.3.1   - RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]   - INSTALLATION DIRECTORY: /var/lib/gems/1.8   - RUBY EXECUTABLE: /usr/bin/ruby1.8   - EXECUTABLE DIRECTORY: /var/lib/gems/1.8/bin   - RUBYGEMS PLATFORMS:     - ruby     - x86_64-linux   - GEM PATHS:      - /var/lib/gems/1.8      - /home/hjie/.gem/ruby/1.8   - GEM CONFIGURATION:      - :update_sources => true      - :verbose => true      - :benchmark => false      - :backtrace => false      - :bulk_threshold => 1000   - REMOTE SOURCES:      - http://gems.rubyforge.org/

Thanks for your help!

Susan

Marnen Laibow-Koser wrote:

It's for testing.

Here is my gem environment: $ gem environment RubyGems Environment: - RUBYGEMS VERSION: 1.3.1 - RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux] - INSTALLATION DIRECTORY: /var/lib/gems/1.8 - RUBY EXECUTABLE: /usr/bin/ruby1.8 - EXECUTABLE DIRECTORY: /var/lib/gems/1.8/bin - RUBYGEMS PLATFORMS: - ruby - x86_64-linux - GEM PATHS: - /var/lib/gems/1.8 - /home/hjie/.gem/ruby/1.8 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - REMOTE SOURCES: - http://gems.rubyforge.org/

Thanks for your help!

Susan

It is ok for me on ubuntu 8.10, though I was forcing version 2.2.2 as I do not have earlier version installed.

I have rubygems version 1.3.3 (yours is 1.3.1) it might be worth updating that.

Colin