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

trouble installing memprof for profiling a legacy ree app #23

Open
letronje opened this issue May 29, 2014 · 1 comment
Open

trouble installing memprof for profiling a legacy ree app #23

letronje opened this issue May 29, 2014 · 1 comment

Comments

@letronje
Copy link

I'm getting the following while trying to install memprof gem

Installing gem memprof-0.3.10
/home/divya/.rvm/gems/ree-1.8.7-2012.02/gems/memprof-0.3.10/.gitignore
....
....
/home/divya/.rvm/gems/ree-1.8.7-2012.02/gems/memprof-0.3.10/spec/tracing_spec.rb
Building native extensions.  This could take a while...
ERROR:  Error installing memprof:
    ERROR: Failed to build gem native extension.

        /home/divya/.rvm/rubies/ree-1.8.7-2012.02/bin/ruby extconf.rb
(I'm about to compile yajl.. this will definitely take a while)
  -- tar zxvf yajl-1.0.9.tar.gz
  -- sed -i -e 's,yajl,json,g' *.h *.c api/*.h
  -- /home/divya/.rvm/rubies/ree-1.8.7-2012.02/bin/ruby extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/home/divya/.rvm/rubies/ree-1.8.7-2012.02/bin/ruby
extconf.rb:17:in `sys': /home/divya/.rvm/rubies/ree-1.8.7-2012.02/bin/ruby extconf.rb failed, please report to [email protected] with pastie.org link to /home/divya/.rvm/gems/ree-1.8.7-2012.02/gems/memprof-0.3.10/ext/mkmf.log (RuntimeError)
    from extconf.rb:50
    from extconf.rb:35:in `chdir'
    from extconf.rb:35
    from extconf.rb:31:in `chdir'
    from extconf.rb:31


Gem files will remain installed in /home/divya/.rvm/gems/ree-1.8.7-2012.02/gems/memprof-0.3.10 for inspection.
Results logged to /home/divya/.rvm/gems/ree-1.8.7-2012.02/gems/memprof-0.3.10/ext/gem_make.out

I don't see '/home/divya/.rvm/gems/ree-1.8.7-2012.02/gems/memprof-0.3.10/ext/mkmf.log' file.

'/home/divya/.rvm/gems/ree-1.8.7-2012.02/gems/memprof-0.3.10/ext/src/mkmf.log' ends with the following 2 lines after yajl gets extracted.

"sed -i -e 's,yajl,json,g' *.h *.c api/*.h"
"/home/divya/.rvm/rubies/ree-1.8.7-2012.02/bin/ruby extconf.rb"
/home/divya/.rvm/rubies/ree-1.8.7-2012.02/bin/ruby: no such file to load -- ./siteconf20140529-5820-s957to-0.rb (LoadError)

The file siteconf20140529-5820-s957to-0.rb is present in '/home/divya/.rvm/gems/ree-1.8.7-2012.02/gems/memprof-0.3.10/ext'

If i goto '/home/divya/.rvm/gems/ree-1.8.7-2012.02/gems/memprof-0.3.10/ext/src/yajl-1.0.9/src' and run ruby extconf.rb , it generates the Makefile and make runs properly and yajl is built

@letronje letronje changed the title trouble installing memprof for profile a legacy ree app trouble installing memprof for profiling a legacy ree app May 29, 2014
@tmm1
Copy link
Collaborator

tmm1 commented May 29, 2014

Strange, it seems siteconf20140529-5820-s957to-0 is leaking into your environment somehow, probably into RUBYOPT

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