Gem & extconf.rb command line options

Hello,

i want to build a gem for an extension that needs to be configured with "--with-opt-dir=/sw" on my system. How can I tell the gem installer that I want to call extconf with this option?

Thanks Andreas

I believe...if memory serves...that you can do:

If your gem is remote (on 0.7.0):

  gem install whatevergem -- --with-opt-dir=/sw

If your gem is local (on 0.7.0):

  gem install whatever.gem -- --with-opt-dir=/sw

If you have a prior version of rubygems use:

  gem --install (options above)

Instead of gem install.

This used to work...and unfortunately I am not at a place to test it...let
me know if it works.

-rich

···

On 7/12/04 12:02 PM, "Andreas Schwarz" <usenet@andreas-s.net> wrote:

Hello,

i want to build a gem for an extension that needs to be configured with
"--with-opt-dir=/sw" on my system. How can I tell the gem installer that
I want to call extconf with this option?

Thanks Andreas

I can't test it at the moment, either, but if memory serves doesn't he
also need the "--force" option in there somewhere, maybe "gem install
foo.gem --force -- --with-opt-dir=/sw"?

···

On Tue, 13 Jul 2004 01:08:04 +0900, Richard Kilmer <rich@infoether.com> wrote:

This used to work...and unfortunately I am not at a place to test it...let
me know if it works.

Richard Kilmer wrote:

I believe...if memory serves...that you can do:

If your gem is remote (on 0.7.0):

  gem install whatevergem -- --with-opt-dir=/sw

If your gem is local (on 0.7.0):

  gem install whatever.gem -- --with-opt-dir=/sw

Doesn't work with 0.7.0:
ERROR: While executing gem ... (Gem::CommandLineError)
     Too many gem names (dbd-sqlite-0.1.0.gem, --with-opt-dir=/sw/); please specify only one

This must, unfortunately be broken in 0.7.0...i am sorry about that.

We will get on it and let you know...

-rich

···

On 7/12/04 12:27 PM, "Andreas Schwarz" <usenet@andreas-s.net> wrote:

Richard Kilmer wrote:

I believe...if memory serves...that you can do:

If your gem is remote (on 0.7.0):

  gem install whatevergem -- --with-opt-dir=/sw

If your gem is local (on 0.7.0):

  gem install whatever.gem -- --with-opt-dir=/sw

Doesn't work with 0.7.0:
ERROR: While executing gem ... (Gem::CommandLineError)
     Too many gem names (dbd-sqlite-0.1.0.gem, --with-opt-dir=/sw/);
please specify only one