BTY, i want to install it again, and i will get a question. "The file 'lib' not found ." , i googled it and saw a post that says add a directory "/lib/ruby/gems/ ... ..." i did it as that post, but it still not works.
2011/7/5 coolesting <[email protected]> > It will make a error if i using the sudo to install it, > something like this as you said , > > dengx@dengx-desktop:~$ rvm use ruby-1.9.2 > Using /usr/local/rvm/gems/ruby-1.9.2-p180 > > > dengx@dengx-desktop:~$ gem install rails > 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]> > >> Try this: >> >> rvm use ruby-1.9.2 >> gem install rails >> >> >> Chirag >> http://sumeruonrails.com >> >> >> >> On Tue, Jul 5, 2011 at 12:18 PM, coolesting <[email protected]> wrote: >> >>> 1. >>> dengx@dengx-desktop:/$ rvm list >>> >>> rvm rubies >>> >>> ruby-1.9.2-p180 [ i386 ] >>> >>> dengx@dengx-desktop:/$ >>> >>> >>> 2. >>> dengx@dengx-desktop:/$ echo $PATH >>> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: >>> /usr/local/ruby/bin >>> >>> the red string is my installation path of ruby, >>> and i put this lines at the end of the /etc/profile >>> >>> PATH=$PATH:/usr/local/ruby/bin >>> export PATH >>> >>> >>> >>> >>> 2011/7/5 Chirag Singhal <[email protected]> >>> >>>> 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. >>>> >>> >>> -- >>> 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.

