[Rubygems-developers] How to specifiy c level build options insidea gem

Jim Weirich jim at weirichhouse.org
Fri Jun 3 16:19:14 EDT 2005

Lothar Scholz said:
> Hello,
> When i tried to install mysql on windows i thought that it would
> ask me for the library directory of the mysql driver. But it did not.
> Is this an error from the person who build the mysql gem or does RubyGems
> not offer such a functionality.
> On windows there is simply no way to detect a c library, so a user must
> specify it.

you can pass parameters to the C building process in a gem by putting the
options after a -- (double dash) on the gem command line.  For example:

   gem install somegem -- --prefix=/some/directory/somewhere

Was this your question, or did I misunderstand?

-- Jim Weirich     jim at weirichhouse.org    http://onestepback.org
"Beware of bugs in the above code; I have only proved it correct,
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)

More information about the Rubygems-developers mailing list