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

Will not install (HEAD, or 0.11.26) against 1.9.3-p0 #6

Closed
leehambley opened this issue Jan 6, 2012 · 3 comments
Closed

Will not install (HEAD, or 0.11.26) against 1.9.3-p0 #6

leehambley opened this issue Jan 6, 2012 · 3 comments

Comments

@leehambley
Copy link

 gem install {linecache19-0.5.13.gem,ruby-debug-base19-0.11.26.gem} -- --with-ruby-include=$(echo ~/.rbenv/versions/1.9.3-p0/)
Building native extensions.  This could take a while...
Successfully installed linecache19-0.5.13
Building native extensions.  This could take a while...
ERROR:  Error installing ruby-debug-base19-0.11.26.gem:
    ERROR: Failed to build gem native extension.

        /Users/leehambley/.rbenv/versions/1.9.3-p0/bin/ruby extconf.rb --with-ruby-include=/Users/leehambley/.rbenv/versions/1.9.3-p0/
checking for rb_method_entry_t.called_id in method.h... no
checking for rb_control_frame_t.method_id in method.h... no
*** 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=/Users/leehambley/.rbenv/versions/1.9.3-p0/bin/ruby
    --with-ruby-dir
    --without-ruby-dir
    --with-ruby-include=${ruby-dir}/include
    --with-ruby-lib
    --without-ruby-lib=${ruby-dir}/lib
extconf.rb:16:in `block in <main>': break from proc-closure (LocalJumpError)
    from /Users/leehambley/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:18:in `call'
    from /Users/leehambley/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:18:in `create_makefile_with_core'
    from extconf.rb:32:in `<main>'


Gem files will remain installed in /Users/leehambley/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/ruby-debug-base19-0.11.26 for inspection.
Results logged to /Users/leehambley/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/ruby-debug-base19-0.11.26/ext/ruby_debug/gem_make.out
1 gem installed
Installing ri documentation for linecache19-0.5.13...
Installing RDoc documentation for linecache19-0.5.13...

I'm really struggling to understand the problem here, sources from ruby were compiled with this trivial build symbols hiding patch Which I require to make perftools.rb work.

Please don't consider this a "please help a noob" ticket, I've spent a lot of time on this, and the config works for others, for what it's worth OS is OSX Snow Lion, with LLVM gcc version

12:33 cache (master) $ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
@kenips
Copy link

kenips commented Jan 18, 2012

I don't think your include path is correct, can you try:

gem install {linecache19-0.5.13.gem,ruby-debug-base19-0.11.26.gem} -- \
--with-ruby-include=$(echo ~/.rbenv/versions/1.9.3-p0/include/ruby-1.9.1/ruby-1.9.3-p0)

@leehambley
Copy link
Author

@kenips That directory didn't reliably exist depending on my installation methods, not sure what can differ about the build process to change the installation of header files.

Let's chalk this up to 1.9.3 being incorrectly installed in some circumstances (if memory serves, it was the source install that didn't create that directory)… however, I was able to get reliable installation of ruby-debug under 1.9.3 using the procedure I documented here: ruby/ruby#56

@kenips
Copy link

kenips commented Jan 19, 2012

Cool. Good to know. I've been using rvm and now ruby-build religiously that I don't even know how to build from source :).

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