Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #3824
| From | Eugen Ciur <ciur.eugen@gmail.com> |
|---|---|
| Newsgroups | comp.lang.ruby |
| Subject | Re: LoadPath and require confusion, please explain |
| Date | 2011-05-02 02:26 -0500 |
| Organization | Service de news de lacave.net |
| Message-ID | <425eb8d7f3f4a4e18dc557b982a2000c@ruby-forum.com> (permalink) |
| References | <2f924ae07653151e6e47db274f29bc42@ruby-forum.com> |
When you do require/load ruby will use $GEM_PATH also to look for available gems. in your irb check output for ENV['GEM_PATH'] it should show correct location where your 'arel' gem is. $LOAD_PATH comes with ruby interpreter, but $GEM_PATH is set by rvm (to be used for gem utility). Besides, there is also $GEM_HOME, that var also comes into play when searching for gems. Check your environment variables with 'env' bash command. ---- http://blog.eugen.co -- Posted via http://www.ruby-forum.com/.
Back to comp.lang.ruby | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
LoadPath and require confusion, please explain Lucky Dev <lucky.developer@gmail.com> - 2011-05-02 01:35 -0500
Re: LoadPath and require confusion, please explain Eugen Ciur <ciur.eugen@gmail.com> - 2011-05-02 02:26 -0500
Re: LoadPath and require confusion, please explain Lucky Dev <lucky.developer@gmail.com> - 2011-05-02 04:15 -0500
Re: LoadPath and require confusion, please explain OZAWA Sakuro <sakuro@2238club.org> - 2011-05-02 04:22 -0500
Re: LoadPath and require confusion, please explain Eugen Ciur <ciur.eugen@gmail.com> - 2011-05-02 04:40 -0500
Re: LoadPath and require confusion, please explain Lucky Dev <lucky.developer@gmail.com> - 2011-05-03 11:37 -0500
csiph-web