Re: [Rubygem on shared host] undefined method map for nil:NilClass

Frederick Cheung
Tue, 22 Mar 2011 07:58:53 -0000

On 22 Mar 2011, at 05:44, David Lauzon
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:

> I can''t start my Rails even using a simple ./script/about (see
error
> output below).
>
> My app is using Rails 2.1.0 on a shared host where rubygems (1.6.1) and
> all application''s gems are installed in user directory.
>
> It looks like if gem is looking at the wrong place to find its gems.
>
It''s loading rails from vendor/rails (since that''s what
happens if that folder exists). Is that what you wanted?

Fred


> Config :
> [code]
> [silversurfer:/home/aidscompetence/communitylifecompetence.org/current]$
> ls /usr/bin/gem ~/bin/gem
> /home/aidscompetence/bin/gem  /usr/bin/gem
> [silversurfer:/home/aidscompetence/communitylifecompetence.org/current]$
> which gem
> /home/aidscompetence/bin/gem
> [silversurfer:/home/aidscompetence/communitylifecompetence.org/current]$
> gem env
> RubyGems Environment:
>  - RUBYGEMS VERSION: 1.6.1
>  - RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
>  - INSTALLATION DIRECTORY: /home/aidscompetence/.gems
>  - RUBYGEMS PREFIX: /home/aidscompetence
>  - RUBY EXECUTABLE: /usr/bin/ruby1.8
>  - EXECUTABLE DIRECTORY: /home/aidscompetence/.gems/bin
>  - RUBYGEMS PLATFORMS:
>    - ruby
>    - x86_64-linux
>  - GEM PATHS:
>     - /home/aidscompetence/.gems
>  - GEM CONFIGURATION:
>     - :update_sources => true
>     - :verbose => true
>     - :benchmark => false
>     - :backtrace => false
>     - :bulk_threshold => 1000
>     - "gempath" => ["/home/aidscompetence/.gems"]
>     - "gem" => "--no-ri --no-rdoc"
>     - :sources => ["http://gems.github.com",
> "http://gems.rubyforge.org"]
>     - "gemhome" => "/home/aidscompetence/.gems"
>  - REMOTE SOURCES:
>     - http://gems.github.com
>     - http://gems.rubyforge.org
> [/code]
>
>
> Error Output:
>
> [code]
> [silversurfer:/home/aidscompetence/communitylifecompetence.org/current]$
> ./script/about
> ./script/../config/../vendor/rails/railties/lib/initializer.rb:225:in
> `require_frameworks'': no such file to load --
> active_support/cache/file_store (RuntimeError)
>    from
> ./script/../config/../vendor/rails/railties/lib/initializer.rb:113:in
> `process''
>    from
> ./script/../config/../vendor/rails/railties/lib/initializer.rb:93:in
> `send''
>    from
> ./script/../config/../vendor/rails/railties/lib/initializer.rb:93:in
> `run''
>    from
>
/home/aidscompetence/communitylifecompetence.org/releases/20100314224301/config/environment.rb:13
>    from /home/aidscompetence/lib/rubygems/custom_require.rb:36:in
> `gem_original_require''
>    from /home/aidscompetence/lib/rubygems/custom_require.rb:36:in
> `require''
>    from
>
/home/aidscompetence/communitylifecompetence.org/releases/20100314224301/vendor/rails/railties/lib/commands/about.rb:1
>    from /home/aidscompetence/lib/rubygems/custom_require.rb:36:in
> `gem_original_require''
>    from /home/aidscompetence/lib/rubygems/custom_require.rb:36:in
> `require''
>    from ./script/about:3
> [/code]
>
>
> By the way, the file file_store.rb does exists :
>
> [code]
> [silversurfer:/home/aidscompetence/communitylifecompetence.org/current]$
> ls
> ~/.gems/gems/activesupport-2.1.0/lib/active_support/cache/file_store.rb
>
/home/aidscompetence/.gems/gems/activesupport-2.1.0/lib/active_support/cache/file_store.rb
> [/code]
>
> -David
>
> --
> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> 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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at