Gem configuration options

J

Jon A. Lambert

How do you pass configuration options to extconf.rb when installing a gem?
Specifically I'd like to configure ruby-gd.

$ gem install ruby-gd
??something?? --with-freetype --with-ttf --with-jpeg --enable-gd2_0

Thanks.
 
E

Eric Hodel

How do you pass configuration options to extconf.rb when installing
a gem?
Specifically I'd like to configure ruby-gd.

$ gem install ruby-gd ??something?? --with-freetype --with-ttf --
with-jpeg --enable-gd2_0

gem install ruby-gd -- --configure-options
 
T

Tim Hunter

Eric said:
gem install ruby-gd -- --configure-options

Is that a new option? I thought it was --build-flags.

~$ gem --version
1.0.1
~$ gem help install
Usage: gem install GEMNAME [GEMNAME ...] [options] -- --build-flags
[options]
 
E

Eric Hodel

Eric said:
gem install ruby-gd -- --configure-options

Is that a new option? I thought it was --build-flags.

~$ gem --version
1.0.1
~$ gem help install
Usage: gem install GEMNAME [GEMNAME ...] [options] -- --build-flags
[options]

-- tells RubyGems to stop processing options. --configure-options or
--build-flags are just dummy names for whatever it is you actually
want to specify.
 
T

Tim Hunter

Eric said:
Eric said:
On May 27, 2008, at 12:41 PM, Jon A. Lambert wrote:
How do you pass configuration options to extconf.rb when installing
a gem?
Specifically I'd like to configure ruby-gd.

$ gem install ruby-gd ??something?? --with-freetype --with-ttf
--with-jpeg --enable-gd2_0
gem install ruby-gd -- --configure-options

Is that a new option? I thought it was --build-flags.

~$ gem --version
1.0.1
~$ gem help install
Usage: gem install GEMNAME [GEMNAME ...] [options] -- --build-flags
[options]

-- tells RubyGems to stop processing options. --configure-options or
--build-flags are just dummy names for whatever it is you actually want
to specify.

That makes sense. Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,161
Messages
2,570,892
Members
47,427
Latest member
HildredDic

Latest Threads

Top