help with installing rest graph getting the following error

15 views
Skip to first unread message

roy wil

unread,
Sep 5, 2010, 12:28:29 AM9/5/10
to rest-graph
I have installed gem using rest graph and

c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/
dependencies.rb:156:in `require'
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/
dependencies.rb:521:in `new_constants_in'
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/
dependencies.rb:156:in `require'

This error occurred while loading the following files:
rest-graph


appreciate any inputs about the installation and usage

Lin Jen-Shin (aka godfat 真常)

unread,
Sep 6, 2010, 1:03:26 AM9/6/10
to rest-...@googlegroups.com
Hi, sorry for the late response.

On Sun, Sep 5, 2010 at 12:28 PM, roy wil <atlant...@gmail.com> wrote:

How did you setup your environment?
What's the result of following command?

$ gem list
$ gem env
$ cat config/environment.rb

Cheers,

roy wil

unread,
Sep 6, 2010, 11:15:43 AM9/6/10
to rest-...@googlegroups.com
Thanks for the response.

I have used the gem install command to install it and i am trying it in windows PC.

Here is the info that is requested.

C:\rails\resturents>gem list

*** LOCAL GEMS ***

actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
geokit (1.5.0)
mime-types (1.16)
mysql (2.8.1)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
rest-client (1.6.1)
rest-graph (1.4.6)
will_paginate (2.3.12)

C:\rails\resturents>gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.6
  - RUBY VERSION: 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32]
  - INSTALLATION DIRECTORY: c:/ruby/lib/ruby/gems/1.8
  - RUBY EXECUTABLE: c:/ruby/bin/ruby.exe
  - EXECUTABLE DIRECTORY: c:/ruby/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-mingw32
  - GEM PATHS:
     - c:/ruby/lib/ruby/gems/1.8
     - C:/Documents and Settings/rethna pillai/.gem/ruby/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/

and ENV.RB

_______________
# Be sure to restart your server when you modify this file

# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION

# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')

Rails::Initializer.run do |config|
  # Settings in config/environments/* take precedence over those specified here.
  # Application configuration should go into files in config/initializers
  # -- all .rb files in that directory are automatically loaded.

  # Add additional load paths for your own custom dirs
  # config.load_paths += %W( #{RAILS_ROOT}/extras )

  # Specify gems that this application depends on and have them installed with rake gems:install
  # config.gem "bj"
  # config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net"
  # config.gem "sqlite3-ruby", :lib => "sqlite3"
  # config.gem "aws-s3", :lib => "aws/s3"

  # Only load the plugins named here, in the order given (default is alphabetical).
  # :all can be used as a placeholder for all plugins not explicitly named
  # config.plugins = [ :exception_notification, :ssl_requirement, :all ]

  # Skip frameworks you're not going to use. To use Rails without a database,
  # you must remove the Active Record framework.
  # config.frameworks -= [ :active_record, :active_resource, :action_mailer ]

  # Activate observers that should always be running
  # config.active_record.observers = :cacher, :garbage_collector, :forum_observer

  # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
  # Run "rake -D time" for a list of tasks for finding time zone names.
  config.time_zone = 'UTC'
  config.gem "geokit"


  # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
  # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]
  # config.i18n.default_locale = :de
end
______________________________________________________

2010/9/6 Lin Jen-Shin (aka godfat 真常) <god...@gmail.com>

Lin Jen-Shin (aka godfat 真常)

unread,
Sep 6, 2010, 11:35:17 AM9/6/10
to rest-...@googlegroups.com
On Mon, Sep 6, 2010 at 11:15 PM, roy wil <atlant...@gmail.com> wrote:
> Thanks for the response.
>
> I have used the gem install command to install it and i am trying it in
> windows PC.
>
> Here is the info that is requested.
[...]

Your installation looks fine, and you might need to add:

config.gem 'rest-graph', :lib => 'rest-graph/auto_load'

into environment.rb or:

config.gem 'rest-graph'

if you don't need RestGraph::RailsUtil nor config/rest-graph.yaml.
Rails automatically constant loading seems only trying to require
'rest_graph' but not 'rest-graph'. You could create a rest_graph.rb
and put it in lib/ and contains "require 'rest-graph'"
That would work too.

Hope this solves your problem,
and I'll consider putting a rest_graph.rb in rest-graph itself.

Reply all
Reply to author
Forward
0 new messages