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

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.

Strangely speaking, I could create rails 1.2.6 without this issue on
my other Windows machine.
Any hints for me?


Susan

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,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

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:

Thanks for your help!

Susan

Marnen Laibow-Koser wrote:

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,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

Hello,

I had the same problem using Ubuntu 9.04 Jaunty Jackalope - Release
i386 (20090420.1)

I solved it moving the rails version (2.1.0) “frozen” in:
/usr/share/rails

to an other folder (/usr/share/rails_bak) and copying rails version
2.2.2 in /usr/share/rails.

I hope that it can help you,
See you,

2009/8/19 Susan Sk [email protected]:

 - EXECUTABLE DIRECTORY: /var/lib/gems/1.8/bin
  - :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