gems installed but cannot run.

redman's Avatar

redman

06 Jan, 2013 09:58 PM

I have installed rubygems.

here is my environment

RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.23
  - RUBY VERSION: 1.9.3 (2012-04-20 patchlevel 194) [x86_64-linux]
  - INSTALLATION DIRECTORY: /var/lib/gems/1.9.1
  - RUBY EXECUTABLE: /usr/bin/ruby1.9.1
  - EXECUTABLE DIRECTORY: /usr/local/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /var/lib/gems/1.9.1
     - /home/ed/.gem/ruby/1.9.1
     - /usr/share/rubygems-integration/1.9.1
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/
when I enter irb 
require 'rubygems'
=> true
require 'rmagick' (is installed)
Load
Error: no such file to load -- pg
    from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
    from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
    from (irb):2

I believe it is a problem with the path but how to fix. gems are in /var/lib/gems/1.9.1 and rubygems is searching in 1.8.
how do i fix.
thanks

  1. Support Staff 2 Posted by Nick Quaranto on 10 Jan, 2013 04:40 PM

    Nick Quaranto's Avatar

    "Error: no such file to load -- pg" looks like you're missing the postgres gem, and this isn't specifically a rubygems problem. Please post stuff like this (and not directly Rubygems.org problems) on rails-talk on Google Groups or StackOverflow for more immediate help.

  2. Nick Quaranto closed this discussion on 10 Jan, 2013 04:40 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

29 Aug, 2014 06:23 PM
28 Aug, 2014 07:18 PM
27 Aug, 2014 12:03 PM
26 Aug, 2014 07:09 PM
26 Aug, 2014 07:07 PM