[RubyInstaller] bson_ext 1.0.1 does not compile

160 views
Skip to first unread message

Will Green

unread,
May 15, 2010, 9:49:56 PM5/15/10
to rubyinstaller
This is the Binary JSON native driver that the MongoDB driver uses.

Version 1.0.0 compiled and installed just fine, but the latest, 1.0.1, does not. I do have the devkit installed. Any ideas?

C:\Users\Will>ruby -v
ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32]

C:\Users\Will>gem up -V bson_ext
Updating installed gems
302 Found
200 OK
Updating bson_ext
302 Found
200 OK
Installing gem bson_ext-1.0.1
C:/Ruby/lib/ruby/gems/1.8/gems/bson_ext-1.0.1/Rakefile
C:/Ruby/lib/ruby/gems/1.8/gems/bson_ext-1.0.1/bson_ext.gemspec
C:/Ruby/lib/ruby/gems/1.8/gems/bson_ext-1.0.1/ext/cbson/extconf.rb
C:/Ruby/lib/ruby/gems/1.8/gems/bson_ext-1.0.1/ext/lib/bson_ext.rb
C:/Ruby/lib/ruby/gems/1.8/gems/bson_ext-1.0.1/ext/cbson/buffer.c
C:/Ruby/lib/ruby/gems/1.8/gems/bson_ext-1.0.1/ext/cbson/cbson.c
C:/Ruby/lib/ruby/gems/1.8/gems/bson_ext-1.0.1/ext/cbson/encoding_helpers.c
C:/Ruby/lib/ruby/gems/1.8/gems/bson_ext-1.0.1/ext/cbson/buffer.h
C:/Ruby/lib/ruby/gems/1.8/gems/bson_ext-1.0.1/ext/cbson/encoding_helpers.h
C:/Ruby/lib/ruby/gems/1.8/gems/bson_ext-1.0.1/ext/cbson/version.h
Building native extensions.  This could take a while...
ERROR:  Error installing bson_ext:
        ERROR: Failed to build gem native extension.

C:/Ruby/bin/ruby.exe extconf.rb
checking for asprintf()... no
checking for ruby/st.h... no
checking for st.h... yes
checking for ruby/regex.h... no
checking for regex.h... yes
checking for ruby/encoding.h... no
creating Makefile

make
make: *** No rule to make target `ruby.h', needed by `buffer.o'.  Stop.


Gem files will remain installed in C:/Ruby/lib/ruby/gems/1.8/gems/bson_ext-1.0.1 for inspection.
Results logged to C:/Ruby/lib/ruby/gems/1.8/gems/bson_ext-1.0.1/ext/cbson/gem_make.out
Nothing to update

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

Luis Lavena

unread,
May 15, 2010, 10:07:01 PM5/15/10
to rubyin...@googlegroups.com
Results on my computer:

C:\Users\Luis>gem install bson
Successfully installed bson-1.0.1
1 gem installed

C:\Users\Luis>gem install bson_ext
Building native extensions. This could take a while...
Successfully installed bson_ext-1.0.1
1 gem installed

C:\Users\Luis>gem which bson_ext/cbson
C:/Users/Luis/.gem/ruby/x86-mingw32/1.8/gems/bson_ext-1.0.1/ext/bson_ext/cbson.so

C:\Users\Luis>ruby -v -rubygems -e "require 'bson'; require 'bson_ext/cbson'"
ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32]

(no error)

I could answer: works for me, but better with this:

http://wiki.github.com/oneclick/rubyinstaller/troubleshooting

See about missing ruby.h

It might be possible something from cygwin/bashrc from MSYS is
interfering with the PATH used by mkmf

--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry

Will Green

unread,
May 15, 2010, 11:19:51 PM5/15/10
to rubyin...@googlegroups.com
On Sat, May 15, 2010 at 10:07 PM, Luis Lavena <luisl...@gmail.com> wrote:

I could answer: works for me, but better with this:
See about missing ruby.h
 
It might be possible something from cygwin/bashrc from MSYS is
interfering with the PATH used by mkmf

:-)

Probably has something to do with having C:\Program Files (x86)\git\bin in my path ahead of C:\Ruby\Bin. Opening up the command prompt shortcut installed with RubyInstaller allows me to install without problems.

Thanks!
 

--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry

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

Luis Lavena

unread,
May 15, 2010, 11:23:42 PM5/15/10
to rubyin...@googlegroups.com
On Sun, May 16, 2010 at 12:19 AM, Will Green <wi...@hotgazpacho.org> wrote:
> On Sat, May 15, 2010 at 10:07 PM, Luis Lavena <luisl...@gmail.com> wrote:
>>
>> I could answer: works for me, but better with this:
>>
>> http://wiki.github.com/oneclick/rubyinstaller/troubleshooting
>>
>> See about missing ruby.h
>>
>>
>> It might be possible something from cygwin/bashrc from MSYS is
>> interfering with the PATH used by mkmf
>
> :-)
> Probably has something to do with having C:\Program Files (x86)\git\bin in
> my path ahead of C:\Ruby\Bin. Opening up the command prompt shortcut
> installed with RubyInstaller allows me to install without problems.
> Thanks!
>

Ah, good to know that the command prompt is useful :-)

I personally added Git\cmd to my PATH instead of bin since it contains
a lot of MSYS tools that could interfere with normal command prompt
behavior, for example, sort :-P

Yes, I use sort from time to time :-D

Cheers,
Reply all
Reply to author
Forward
0 new messages