[Cucumber:4310] Error updating to 0.70, Failed to build gem native extension.

57 views
Skip to first unread message

BillSaysThis

unread,
May 4, 2010, 12:27:15 PM5/4/10
to Cukes
Running Ruby 1.9.2-head on OSX 10.6.3 under RVM, gem update works fine
for other gems (say Bundler, which was detected as having an update in
the same run) but Cucumber and Cucumber-Rails get this:

rvm gem upd
ruby-1.9.2-head: ruby 1.9.2dev (2010-04-23 trunk 27452) [i386-
darwin9.8.0]
Updating installed gems
Updating cucumber
Building native extensions. This could take a while...
ERROR: Error installing cucumber:
ERROR: Failed to build gem native extension.

/Users/xxx/.rvm/rubies/ruby-1.9.2-head/bin/ruby extconf.rb
checking for main() in -lc... *** 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/xxx/.rvm/rubies/ruby-1.9.2-head/bin/ruby
--with-gherkin_lexer_ar-dir
--without-gherkin_lexer_ar-dir
--with-gherkin_lexer_ar-include
--without-gherkin_lexer_ar-include=${gherkin_lexer_ar-dir}/
include
--with-gherkin_lexer_ar-lib
--without-gherkin_lexer_ar-lib=${gherkin_lexer_ar-dir}/lib
--with-clib
--without-clib
/Users/xxx/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/mkmf.rb:368:in
`try_do': The complier failed to generate an executable file.
(RuntimeError)
You have to install development tools first.
from /Users/xxx/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/
mkmf.rb:435:in `try_link0'
from /Users/xxx/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/
mkmf.rb:440:in `try_link'
from /Users/xxx/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/
mkmf.rb:552:in `try_func'
from /Users/xxx/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/
mkmf.rb:748:in `block in have_library'
from /Users/xxx/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/
mkmf.rb:693:in `block in checking_for'
from /Users/xxx/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/
mkmf.rb:280:in `block (2 levels) in postpone'
from /Users/xxx/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/
mkmf.rb:254:in `open'
from /Users/xxx/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/
mkmf.rb:280:in `block in postpone'
from /Users/xxx/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/
mkmf.rb:254:in `open'
from /Users/xxx/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/
mkmf.rb:276:in `postpone'
from /Users/xxx/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/
mkmf.rb:692:in `checking_for'
from /Users/xxx/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/
mkmf.rb:743:in `have_library'
from extconf.rb:5:in `<main>'


Gem files will remain installed in /Users/xxx/.rvm/gems/ruby-1.9.2-
head/gems/gherkin-1.0.24 for inspection.
Results logged to /Users/xxx/.rvm/gems/ruby-1.9.2-head/gems/
gherkin-1.0.24/ext/gherkin_lexer_ar/gem_make.out
Updating cucumber-rails
Building native extensions. This could take a while...
ERROR: Error installing cucumber-rails:
ERROR: Failed to build gem native extension.

/Users/xxx/.rvm/rubies/ruby-1.9.2-head/bin/ruby extconf.rb
checking for main() in -lc... *** 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/xxx/.rvm/rubies/ruby-1.9.2-head/bin/ruby
--with-gherkin_lexer_ar-dir
--without-gherkin_lexer_ar-dir
--with-gherkin_lexer_ar-include
--without-gherkin_lexer_ar-include=${gherkin_lexer_ar-dir}/
include
--with-gherkin_lexer_ar-lib
--without-gherkin_lexer_ar-lib=${gherkin_lexer_ar-dir}/lib
--with-clib
--without-clib
/Users/xxx/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/mkmf.rb:368:in
`try_do': The complier failed to generate an executable file.
(RuntimeError)
You have to install development tools first.
from /Users/xxx/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/
mkmf.rb:435:in `try_link0'
from /Users/xxx/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/
mkmf.rb:440:in `try_link'
from /Users/xxx/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/
mkmf.rb:552:in `try_func'
from /Users/xxx/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/
mkmf.rb:748:in `block in have_library'
from /Users/xxx/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/
mkmf.rb:693:in `block in checking_for'
from /Users/xxx/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/
mkmf.rb:280:in `block (2 levels) in postpone'
from /Users/xxx/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/
mkmf.rb:254:in `open'
from /Users/xxx/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/
mkmf.rb:280:in `block in postpone'
from /Users/xxx/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/
mkmf.rb:254:in `open'
from /Users/xxx/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/
mkmf.rb:276:in `postpone'
from /Users/xxx/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/
mkmf.rb:692:in `checking_for'
from /Users/xxx/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/
mkmf.rb:743:in `have_library'
from extconf.rb:5:in `<main>'


Gem files will remain installed in /Users/xxx/.rvm/gems/ruby-1.9.2-
head/gems/gherkin-1.0.24 for inspection.
Results logged to /Users/xxx/.rvm/gems/ruby-1.9.2-head/gems/
gherkin-1.0.24/ext/gherkin_lexer_ar/gem_make.out
Nothing to update

--
You received this message because you are subscribed to the Google Groups "Cukes" group.
To post to this group, send email to cu...@googlegroups.com.
To unsubscribe from this group, send email to cukes+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cukes?hl=en.

aslak hellesoy

unread,
May 4, 2010, 1:14:34 PM5/4/10
to cu...@googlegroups.com
Do you have gcc installed? What does gcc --version tell you?

Bill Lazar

unread,
May 4, 2010, 1:59:00 PM5/4/10
to cu...@googlegroups.com
gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5659)

aslak hellesoy

unread,
May 4, 2010, 2:01:28 PM5/4/10
to cu...@googlegroups.com
On Tue, May 4, 2010 at 7:59 PM, Bill Lazar <bstg...@gmail.com> wrote:
> gcc --version
> i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5659)
>

Can you install other gems with native extensions, like for example
nokogiri or thin?

Aslak

Bill Lazar

unread,
May 4, 2010, 2:47:52 PM5/4/10
to cu...@googlegroups.com
On May 4, 2010, at 11:01 AM, aslak hellesoy wrote:

> On Tue, May 4, 2010 at 7:59 PM, Bill Lazar <bstg...@gmail.com> wrote:
>> gcc --version
>> i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5659)
>>
>
> Can you install other gems with native extensions, like for example
> nokogiri or thin?

No, same. Key seems to be the first error message:

/Users/xxx/.rvm/rubies/ruby-1.9.2-head/bin/ruby extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h... *** 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.

Bill

aslak hellesoy

unread,
May 4, 2010, 2:51:28 PM5/4/10
to cu...@googlegroups.com
On Tue, May 4, 2010 at 8:47 PM, Bill Lazar <bstg...@gmail.com> wrote:
> On May 4, 2010, at 11:01 AM, aslak hellesoy wrote:
>
>> On Tue, May 4, 2010 at 7:59 PM, Bill Lazar <bstg...@gmail.com> wrote:
>>> gcc --version
>>> i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5659)
>>>
>>
>> Can you install other gems with native extensions, like for example
>> nokogiri or thin?
>
> No, same. Key seems to be the first error message:
>

Your environment seems hosed.

Try reinstalling xcodetools and try again.
If you still can't install native gems try to (re)install ruby with rvm.

You might have better luck troubleshooting this in the ruby or rvm forums.

Aslak

BillSaysThis

unread,
May 4, 2010, 7:09:59 PM5/4/10
to Cukes
On May 4, 11:51 am, aslak hellesoy <aslak.helle...@gmail.com> wrote:
> On Tue, May 4, 2010 at 8:47 PM, Bill Lazar <bstgro...@gmail.com> wrote:
> > On May 4, 2010, at 11:01 AM, aslak hellesoy wrote:
>
> >> On Tue, May 4, 2010 at 7:59 PM, Bill Lazar <bstgro...@gmail.com> wrote:
> >>> gcc --version
> >>> i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5659)
>
> >> Can you install other gems with native extensions, like for example
> >> nokogiri or thin?
>
> > No, same. Key seems to be the first error message:
>
> Your environment seems hosed.
>
> Try reinstalling xcodetools and try again.
> If you still can't install native gems try to (re)install ruby with rvm.
>
> You might have better luck troubleshooting this in the ruby or rvm forums.

You are the master! A bunch of reinstalling but all good now.

Thanks.
Reply all
Reply to author
Forward
0 new messages