Hi Abel
Thanks for helping. I tried what you said, my  Gemfile only contains
systimer and memcached.
I get this error with your suggestion:

You don't have memcache installed in your application. Please add it to your
Gemfile and run bundle install
/disk1/home/slugs/283964_9987b60_5e65/mnt/.bundle/gems/ruby/1.8/gems/activesupport-3.0.0.rc2/lib/active_support/dependencies.rb:239:in
`require': no such file to load -- memcache (LoadError)

I 'm trying with your two gems + gem 'memcache' and here is a new error:
/disk1/home/slugs/283964_ee164ad_5e65/mnt/.bundle/gems/ruby/1.8/gems/memcached-1/lib/memcached/memcached.rb:648:
[BUG] Segmentation fault
ruby 1.8.7 (2010-04-19 patchlevel 253) [x86_64-linux], MBARI 0x6770, Ruby
Enterprise Edition 2010.02

I think I have no luck :)

On Sat, Sep 11, 2010 at 1:00 AM, Abel Tamayo <[email protected]> wrote:

> Hi Riton,
>
> I'd suggest that you try this:
>
> #Gemfile
> gem 'SystemTimer' #Not necessary, but memcache recommends it for
> performance.
> gem 'memcached' #Notice it's memcached, with a D.
>
> #production.rb
> config.cache_store = :mem_cache_store, Memcached::Rails.new
>
> and nothing else. These three lines are what I use in all my projects and
> that's how I get Memcache running.
>
> Good luck.
>
> On Sat, Sep 11, 2010 at 12:38 AM, riton <[email protected]> wrote:
>
>> hi Oren,
>>
>> Thanks for looking into my issue. Here are the modifications I made to
>> my app , according to the heroku documentation and what you just said.
>>
>> Please, can you tell me what's wrong in that:
>>
>> environment.rb: no changes. I don't have to add the 'config gem' and
>> 'require' lines
>> environment/production.rb: added  config.cache_store
>> = :mem_cache_store, Memcached::Rails.new
>> Gemfile: gem "memcached-northscale", :require => "memcache"
>>
>> Is that correct ? If no, do i need "gem 'memcache'" in my Gemfile ? I
>> tried with it, and with "gem 'memcached' but without success.
>>
>> I ran bundle install in my local installation, my gemfile.lock is in
>> GIT and this is fine with heroku's bundle (it runs whenever I add a
>> gem in Gemfile).
>>
>> Here are the gem used with bundle
>>
>>  Using rake (0.8.7)
>>       Using abstract (1.0.0)
>>       Using activesupport (3.0.0.rc2)
>>       Using builder (2.1.2)
>>       Using i18n (0.4.1)
>>       Using activemodel (3.0.0.rc2)
>>       Using erubis (2.6.6)
>>       Using rack (1.2.1)
>>       Using rack-mount (0.6.13)
>>       Using rack-test (0.5.4)
>>       Using tzinfo (0.3.23)
>>       Using actionpack (3.0.0.rc2)
>>       Using mime-types (1.16)
>>       Using polyglot (0.3.1)
>>       Using treetop (1.4.8)
>>       Using mail (2.2.5)
>>       Using actionmailer (3.0.0.rc2)
>>       Using arel (1.0.1)
>>       Using activerecord (3.0.0.rc2)
>>       Using activeresource (3.0.0.rc2)
>>       Using memcache (1.2.13)
>>       Using memcached-northscale (0.19.5.4)
>>       Using mysql (2.8.1)
>>       Using mysql2 (0.2.3)
>>       Using bundler (1.0.0)
>>       Using thor (0.14.0)
>>       Using railties (3.0.0.rc2)
>>       Using rails (3.0.0.rc2)
>>
>> And the error:
>> /disk1/home/slugs/283964_74b4131_849c/mnt/config/environments/
>> production.rb:33: uninitialized constant Memcached (NameError)
>>
>> Sorry, I don't know what to do .
>>
>>
>>
>> On Sep 10, 5:54 pm, Oren Teich <[email protected]> wrote:
>> > if you're using a gemfile, you don't want to have any config.gem
>> directives.
>> >  It's one or the other.  Bundler replaces the way rails 2.3 handles
>> gems.http://gembundler.com/rails23.html
>> >
>> > <http://gembundler.com/rails23.html>if oyu're using bundler, it's
>> >
>> > gem "memcached-northscale", :require => "memcache"
>> >
>> > Oren
>> >
>> >
>> >
>> > On Fri, Sep 10, 2010 at 4:15 AM, riton <[email protected]> wrote:
>> > > Hello,
>> >
>> > > I added the memcache 5MB free addon to my application.
>> > > I'm trying to make it work using the northscale gem as specified in
>> > > the documentation. I can't make it to work.
>> >
>> > > I can't get past this error  /production.rb:33: uninitialized constant
>> > > Memcached (NameError)
>> >
>> > > Here is my Gemfile:
>> >
>> > > gem 'memcache-client'
>> > > gem 'memcached-northscale'
>> >
>> > > my environment.rb:
>> >
>> > > # Load memcached
>> > > config.gem 'memcached-northscale', :lib => 'memcached'
>> > > require 'memcached'
>> >
>> > > my production.rb:
>> > > config.cache_store = :mem_cache_store, Memcached::Rails.new
>> >
>> > > Despite your documentation saying to remove memcache-client from the
>> > > Gemfile, (I tried..) some guys seem to say we need it (ex:
>> >
>> > >http://github.com/heroku-examples/r3b4-memcache-heroku/commit/f10e62d.
>> ..
>> > > )
>> >
>> > > Well, I'm not sure what I should do. Here is an EVENT_ID i'm getting
>> > > (sometime) on my app when trying to reach it (error 503), maybe it's
>> > > related ?
>> > > Event ID: 000005040001c8a60003714f
>> >
>> > > Thanks for helping me out !
>> >
>> > > --
>> > > You received this message because you are subscribed to the Google
>> Groups
>> > > "Heroku" group.
>> > > To post to this group, send email to [email protected].
>> > > To unsubscribe from this group, send email to
>> > > [email protected]<heroku%[email protected]>
>> <heroku%[email protected]<heroku%[email protected]>
>> >
>> > > .
>> > > For more options, visit this group at
>> > >http://groups.google.com/group/heroku?hl=en.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Heroku" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<heroku%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/heroku?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Heroku" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<heroku%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/heroku?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" 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/heroku?hl=en.

Reply via email to