[LRUG] Ubuntu 10.10 (amd64) + rails 3.0.1 + heroku uninitialized constant error

Mateus mcavanholi at gmail.com
Wed Nov 17 05:06:14 PST 2010


yesterday I tried using RVM to reinstall everything, which gave me a
different error that I didn't notice at the time

today, with a fresh mind, I look for the
error: <internal:lib/rubygems/custom_require>:29:in `require': no such file
to load -- heroku/command/help (LoadError)

and got this: http://rvm.beginrescueend.com/packages/readline/

<http://rvm.beginrescueend.com/packages/readline/>which make everything
works, thanks all for the time and the help

On 16 November 2010 17:04, David Dollar <david at heroku.com> wrote:

> I just pushed out a new version of the heroku gem that should fix this. Let
> me know if you're still seeing issues.
>
> Thanks,
> David
>
> On Nov 16, 2010, at 9:40 AM, Mateus wrote:
>
> No, I didn't work.
>
> I googled for possible errors involving rails 3 and PostGres gem. It gave
> me something related to bundle, and then that I don't have to do nothing
> about it on rails 3.
>  Oh, I look for it on the Gemfile, it isn't there, and just adding "gem
> 'postgres'" don't help.
>
> Or I could be doing something wrong. Anyway, still with the problem.
>
> On 16 November 2010 14:18, Abel Tamayo <abel.tamayo at gmail.com> wrote:
>
>> I think the following line:
>>
>> /usr/local/lib/ruby/gems/1.9.1/gems/heroku-1.13.1/lib/heroku/commands/pg.rb:8:in
>> `<class:Pg>': uninitialized constant Heroku::Command::Pg::Help (NameError)
>>
>> gives away that the culprit could be the PostGres gem. Makes sense too
>> since it's one of the things Heroku uses but you don't usually need it in
>> your development environment.
>>
>>  You should probably check to see if it's correctly listed in your
>> Gemfile.
>> Hope that helps.
>>
>>
>>  On Tue, Nov 16, 2010 at 3:07 PM, Mateus <mcavanholi at gmail.com> wrote:
>>
>>>  Hi guys
>>>
>>> Few months ago I start to study Ruby on Rails. At the time, I was using
>>> the version 2.x of Rails (Don't remember which exactly) and it was working
>>> fine. (running on Ubuntu 9.04)
>>>
>>> I get some troubles and personal problems and I stop with rails.
>>>
>>> Now, I update my ubuntu to 10.10 and install the Rails 3 (rails 3.0.1,
>>> ruby 1.9.2p0).
>>> But, when I just start to use and I was to deploy my app to heroku, I get
>>> the following error:
>>>
>>> /usr/local/lib/ruby/gems/1.9.1/gems/heroku-1.13.1/lib/heroku/commands/pg.rb:8:in
>>>> `<class:Pg>': uninitialized constant Heroku::Command::Pg::Help (NameError)
>>>
>>>  from
>>>> /usr/local/lib/ruby/gems/1.9.1/gems/heroku-1.13.1/lib/heroku/commands/pg.rb:5:in
>>>> `<module:Command>'
>>>
>>>  from
>>>> /usr/local/lib/ruby/gems/1.9.1/gems/heroku-1.13.1/lib/heroku/commands/pg.rb:4:in
>>>> `<top (required)>'
>>>
>>>  from <internal:lib/rubygems/custom_require>:29:in `require'
>>>
>>>  from <internal:lib/rubygems/custom_require>:29:in `require'
>>>
>>>  from
>>>> /usr/local/lib/ruby/gems/1.9.1/gems/heroku-1.13.1/lib/heroku/command.rb:5:in
>>>> `block in <top (required)>'
>>>
>>>  from
>>>> /usr/local/lib/ruby/gems/1.9.1/gems/heroku-1.13.1/lib/heroku/command.rb:5:in
>>>> `each'
>>>
>>>  from
>>>> /usr/local/lib/ruby/gems/1.9.1/gems/heroku-1.13.1/lib/heroku/command.rb:5:in
>>>> `<top (required)>'
>>>
>>>  from <internal:lib/rubygems/custom_require>:29:in `require'
>>>
>>>  from <internal:lib/rubygems/custom_require>:29:in `require'
>>>
>>>  from /usr/local/lib/ruby/gems/1.9.1/gems/heroku-1.13.1/bin/heroku:7:in
>>>> `<top (required)>'
>>>
>>>  from /usr/local/bin/heroku:19:in `load'
>>>
>>>  from /usr/local/bin/heroku:19:in `<main>'
>>>
>>>
>>> This happen with every single heroku command I try.
>>>
>>>  I try google for it, and even check something with gem environment,
>>> which give the following:
>>>
>>>
>>>
>>> RubyGems Environment:
>>>
>>>   - RUBYGEMS VERSION: 1.3.7
>>>
>>>   - RUBY VERSION: 1.9.2 (2010-08-18 patchlevel 0) [x86_64-linux]
>>>
>>>   - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.9.1
>>>
>>>   - RUBY EXECUTABLE: /usr/local/bin/ruby
>>>
>>>   - EXECUTABLE DIRECTORY: /usr/local/bin
>>>
>>>   - RUBYGEMS PLATFORMS:
>>>
>>>     - ruby
>>>
>>>     - x86_64-linux
>>>
>>>   - GEM PATHS:
>>>
>>>      - /usr/local/lib/ruby/gems/1.9.1
>>>
>>>      - /home/cavanholi/.gem/ruby/1.9.1
>>>
>>>   - GEM CONFIGURATION:
>>>
>>>      - :update_sources => true
>>>
>>>      - :verbose => true
>>>
>>>      - :benchmark => false
>>>
>>>      - :backtrace => false
>>>
>>>      - :bulk_threshold => 1000
>>>
>>>   - REMOTE SOURCES:
>>>
>>>      - http://rubygems.org/
>>>
>>>
>>> As I look for some answer to my problem, this was all I could get.
>>> And, for me, it seen fine. (I'm kind of noob with linux, so sometimes I
>>> don't get the problem)
>>>
>>> When I installed the gem, its been everything fine, no errors at all.
>>> I wonder what can I do to solve this problem, since I cannot add the SSH
>>> Key. Even the command "heroku help" don't work.
>>>
>>> thx for the time and help, and sorry if I'm asking in the wrong place
>>>
>>>
>>> --
>>> Mateus Cavanholi
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Heroku" group.
>>> To post to this group, send email to heroku at googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> heroku+unsubscribe at googlegroups.com<heroku%2Bunsubscribe at googlegroups.com>
>>> .
>>> 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 heroku at googlegroups.com.
>> To unsubscribe from this group, send email to
>> heroku+unsubscribe at googlegroups.com<heroku%2Bunsubscribe at googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/heroku?hl=en.
>>
>
>
>
> --
> Mateus Cavanholi
>
> --
> You received this message because you are subscribed to the Google Groups
> "Heroku" group.
> To post to this group, send email to heroku at googlegroups.com.
> To unsubscribe from this group, send email to
> heroku+unsubscribe at googlegroups.com.
> 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 heroku at googlegroups.com.
> To unsubscribe from this group, send email to
> heroku+unsubscribe at googlegroups.com<heroku%2Bunsubscribe at googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/heroku?hl=en.
>



-- 
Mateus Cavanholi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20101117/7c48d3b0/attachment-0003.html>


More information about the Chat mailing list