Can you paste the output of "rvm list" here?
You have to make sure that you using correct ruby before you install
anything. Did you make the changes to your profile (~/.bashrc or
~/.bash_profile) as instructed by rvm?


Chirag
http://sumeruonrails.com



On Tue, Jul 5, 2011 at 11:27 AM, coolesting <[email protected]> wrote:

> dengx@dengx-desktop:~$ gem install rails
> Fetching: rails-3.0.9.gem (100%)
> ERROR:  While executing gem ... (Gem::FilePermissionError)
>     You don't have write permissions into the /usr/lib/ruby/gems/1.9.1
> directory.
>
>
> 2011/7/5 Chirag Singhal <[email protected]>
>
>> Most likely the case is that it is picking up the rails version installed
>> on your system ruby.
>> Try installing rails again on your rvm ruby
>> Use 'gem install rails', if you use 'sudo' then it will install to system
>> ruby.
>>
>>
>> Chirag
>> http://sumeruonrails.com
>>
>>
>>
>> On Tue, Jul 5, 2011 at 10:46 AM, coolesting <[email protected]> wrote:
>>
>>> That is truth, look my message ..
>>>
>>> dengx@dengx-desktop:~$ ruby -v
>>> ruby 1.9.2p180 (2011-02-18 revision 30909) [i686-linux]
>>> dengx@dengx-desktop:~$ rails -v
>>>
>>>     Rails 3 doesn't officially support Ruby 1.9.1 since recent stable
>>>     releases have segfaulted the test suite. Please upgrade to Ruby
>>> 1.9.2.
>>>
>>>     You're running
>>>       ruby 1.9.1p243 (2009-07-16 revision 24175) [i486-linux]
>>>
>>> Rails 3.0.9
>>>
>>>
>>>
>>>
>>>
>>> 2011/7/5 Hassan Schroeder <[email protected]>
>>>
>>>> On Mon, Jul 4, 2011 at 10:04 PM, coolesting <[email protected]>
>>>> wrote:
>>>>
>>>> > $rails -v
>>>> > now, this result of message of rails shows me my ruby version is 1.9.1
>>>>
>>>> Really? On my system, `rails -v` shows me something like
>>>>
>>>>  22:08 ~ $ rails -v
>>>>  Rails 3.0.7
>>>> or
>>>>  22:09 ~ $ rails -v
>>>>  Rails 2.3.11
>>>>
>>>> depending on which Ruby version and (more particularly) gemset I've
>>>> selected.
>>>>
>>>> --
>>>> Hassan Schroeder ------------------------ [email protected]
>>>> http://about.me/hassanschroeder
>>>> twitter: @hassan
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Ruby on Rails: Talk" group.
>>>> To post to this group, send email to [email protected].
>>>> To unsubscribe from this group, send email to
>>>> [email protected].
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/rubyonrails-talk?hl=en.
>>>>
>>>>
>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "Ruby on Rails: Talk" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected].
>>> For more options, visit this group at
>>> http://groups.google.com/group/rubyonrails-talk?hl=en.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Ruby on Rails: Talk" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/rubyonrails-talk?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to