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

Matthew Rudy Jacobs matthewrudyjacobs at gmail.com
Tue Nov 16 06:50:51 PST 2010


>
> /usr/local/lib/ruby/gems/1.9.1/gems
>

It looks like you're using ruby 1.9.1

It might just be confusing the gem path for the ubuntu ruby 1.9 install
or it could be an actually problem.

If you're using the default ubuntu packages, I'd stick with ruby 1.8.7,
or if you're going to upgrade to ruby 1.9.2 via rvm or installing from
source
make sure you've removed the system install.

Personally I use ruby enterprise edition (via rvm) for local development
(I find it runs my tests significantly faster than any other version)

On 16 November 2010 22:07, 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
>
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20101116/a58967ff/attachment-0003.html>


More information about the Chat mailing list