Thanks for reply
but I can't use sudo command :(
在 2009/6/29 下午 12:09 時, Älphä Blüë 寫到:

>
> HeChian wrote:
>> Hi all.
>> My host install ruby in /usr/local/ but install rubygems in /home/ 
>> user/
>> ruby/.
>> so, when I startup my rails project it always return error to me said
>> that it couldn't find any rubygems lib.
>>
>> anybody knows how to solve it? thanks!
>
>
> Type whereis gem and see if your symlinks were setup properly.  If  
> not,
> you need to type:
>
> sudo ln -s /home/user/bin/gem1.8 /usr/local/bin/gem
>
> .. and substitute the path for path where your gem1.8 file is located
> and to the /usr/local/ file.
>
> If your symlinks are all setup and you are able to sudo gem -v then
> ignore the above.  It will then just be a matter for you to set the
> require 'rubygems' in your ruby scripts.
>
> Place require 'rubygems' at the top of your scripts that require gems.
>
>
>
> -- 
> Posted via http://www.ruby-forum.com/.
>
> >


--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to