Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not require "perftools" #59

Open
sevos opened this issue May 26, 2013 · 1 comment
Open

Could not require "perftools" #59

sevos opened this issue May 26, 2013 · 1 comment

Comments

@sevos
Copy link

sevos commented May 26, 2013

Hey,

I cannot require "perftools", I added perftools.rb to my Gemfile, bundle install ran without errors, but now I am getting following errors:

irb(main):002:0> require 'perftools'LoadError: cannot load such file -- perftools        from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from (irb):2        from /usr/bin/irb:12:in `<main>'

I also does not load with Bundler.setup. My code using PerfTools is raising: uninitialized constant PerfTools.

Ruby 2.0.0-p0, Ubuntu 13.04. I tried master branch and packaged gem in newest version as of this writing.

I inspected the place, where gem is installed and instead of lib directory I have an executable binary file with 473 kilobytes in size. Executing this file causes segmentation fault.

@nacengineer
Copy link

For all that come across this... You're probably missing this line in your

./environments/test.rb

config.middleware.use ::Rack::PerftoolsProfiler, :default_printer => 'gif'

This should probably be marked as closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants