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

Chad Fowler chad at chadfowler.com
Fri Aug 13 15:15:55 EDT 2004



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.

Chad


More information about the Rubygems-developers mailing list