Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Cannot install gem with Ruby 2.0 preview... #19

ramsees opened this Issue · 5 comments

3 participants


Ruby version: ruby 2.0.0dev (2012-11-01 trunk 37411) [i686-linux]

I get this error:

Building native extensions. This could take a while...
ERROR: Error installing fb:
ERROR: Failed to build gem native extension.

    /usr/local/bin/ruby extconf.rb

checking for isc_attach_database() in -lfbclient... yes
creating Makefile

compiling fb.c
fb.c: In function ‘tm_from_timestamp’:
fb.c:321:22: warning: unused variable ‘tobj’ [-Wunused-variable]
fb.c: In function ‘fb_cursor_set_inputparams’:
fb.c:1503:7: warning: variable ‘type’ set but not used [-Wunused-but-set-variable]
linking shared-object

make install
/usr/bin/install -c -m 0755 /usr/local/lib/ruby/gems/2.0.0/gems/fb-0.7.0/.
/usr/bin/install:' and/usr/local/lib/ruby/gems/2.0.0/gems/fb-0.7.0/./' are the same file
make: *** [install-so] Error 1

Gem files will remain installed in /usr/local/lib/ruby/gems/2.0.0/gems/fb-0.7.0 for inspection.
Results logged to /usr/local/lib/ruby/gems/2.0.0/gems/fb-0.7.0/./gem_make.out


I wanted to mention it too now that ruby 2.0.0 is final


I'm only just getting my production apps to Ruby 1.9.3. Haven't had a chance to check out Ruby 2.0.

I'd be happy to see a pull request...


The problem is in the gem specification

changing the line in the extconf.rb file



create_makefile("fb", "fb")

will make it build, but the gem won't work.


I just wan't to add that the gem works even after showing the errors, the only caveat is that you won't get the documentation installed.

@ramsees ramsees closed this

Closed because the bug was in Ruby Gems and is fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.