# Rails \_x.x.x\_ \<appname\> doesn't work on ubuntu

**URL:** <https://www.ruby-forum.com/t/rails-x-x-x-appname-doesnt-work-on-ubuntu/174043>\
**Category:** Rails\
**Created:** [August 20, 2009, 12:21am UTC](https://www.ruby-forum.com/t/rails-x-x-x-appname-doesnt-work-on-ubuntu/174043 "2009-08-20T00:21:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![susanklein](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/779978/32.png) [@susanklein](https://www.ruby-forum.com/u/susanklein)\
**Post date:** [August 20, 2009, 12:21am UTC](https://www.ruby-forum.com/t/rails-x-x-x-appname-doesnt-work-on-ubuntu/174043/1 "2009-08-20T00:21:35Z")

</div>

Hello,

I posted this issue on [http://railsforum.com](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

---

<div class="post-metadata">

**Author:** ![susanklein](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/779978/32.png) [@susanklein](https://www.ruby-forum.com/u/susanklein)\
**Post date:** [August 20, 2009, 12:52am UTC](https://www.ruby-forum.com/t/rails-x-x-x-appname-doesnt-work-on-ubuntu/174043/2 "2009-08-20T00:52:19Z")

</div>

Susan Sk wrote:

> Hello,
> 
> I posted this issue on [http://railsforum.com](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](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![susanklein](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/779978/32.png) [@susanklein](https://www.ruby-forum.com/u/susanklein)\
**Post date:** [August 20, 2009, 12:55am UTC](https://www.ruby-forum.com/t/rails-x-x-x-appname-doesnt-work-on-ubuntu/174043/3 "2009-08-20T00:55:23Z")

</div>

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/](http://gems.rubyforge.org/)

Thanks for your help!

Susan

Marnen Laibow-Koser wrote:

> Susan Sk wrote:
> 
> > Hello,
> > 
> > I posted this issue on [http://railsforum.com](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](http://www.marnen.org)  
> removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![susanklein](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/779978/32.png) [@susanklein](https://www.ruby-forum.com/u/susanklein)\
**Post date:** [September 2, 2009, 6:29pm UTC](https://www.ruby-forum.com/t/rails-x-x-x-appname-doesnt-work-on-ubuntu/174043/4 "2009-09-02T18:29:52Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![susanklein](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/779978/32.png) [@susanklein](https://www.ruby-forum.com/u/susanklein)\
**Post date:** [September 2, 2009, 7:18pm UTC](https://www.ruby-forum.com/t/rails-x-x-x-appname-doesnt-work-on-ubuntu/174043/5 "2009-09-02T19:18:28Z")

</div>

2009/8/19 Susan Sk [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Â - EXECUTABLE DIRECTORY: /var/lib/gems/1.8/bin  
> Â Â - :backtrace =\> false  
> Â Â - :bulk\_threshold =\> 1000  
> Â - REMOTE SOURCES:  
> Â Â - [http://gems.rubyforge.org/](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
