[Rubygems-developers] Hello, and how do I tell rubygems to pass params to a build?

Gavin Sinclair gsinclair at soyabean.com.au
Fri Aug 13 20:59:57 EDT 2004


On Saturday, August 14, 2004, 5:15:55 AM, Chad wrote:



> On Wed, 11 Aug 2004, Brian Wisti wrote:

> # Hi all,
> #
> # Rubygems appears to be coming along quite nicely. I
> # might have to start monkeying about with it more
> # regularly.
> #
> # I'm trying to install the FXRuby gem, and it's not
> # quite working.
> #
> #  $ gem install --remote fxruby
> # Attempting remote installation of 'fxruby'
> # /home/wisti/opt//lib/ruby/site_ruby/1.8/rubygems/installer.rb:235:
> # warning: Insecure world writable dir
> # /opt/amazon/content/bin, mode 040777
> # extconf.rb:30:in `find_installed_fox_version':
> # couldn't find FOX header files (RuntimeError)
> #         from extconf.rb:155
> # ERROR:  While executing gem ... (RuntimeError)
> #     ERROR: Failed to build gem native extension.
> # Gem files will remain installed in
> # /home/wisti/opt//lib/ruby/gems/1.8/gems/fxruby-1.2.1
> # for inspection.
> #   See
> #
> /home/wisti/opt/lib/ruby/gems/1.8/gems/fxruby-1.2.1/ext/fox/gem_make.out
> # bash-2.03$
> #
> # My question seems pretty straightforward to me, but
> # that's because I don't know anything about the
> # subject. ;-) How do I pass the necessary
> # "--with-fox-lib=/home/wisti/opt/lib/
> # --with-fox-include=/home/wisti/opt/include/"
> # parameters to fxruby through gem?
> #

> Hi Brian.  Sorry for the delay in response.  To do this, you just pass a
> "--" followed by the extconf options you want:

> gem install fxruby -- --with-fox-lib=/home/wist...etc.

Not being a typical builder of C-based gems, but always being
interested in improving the interface, I must ask, Brian: is this
intuitive, and can you imagine (and express) a Better Way?

Cheers,
Gavin




More information about the Rubygems-developers mailing list