From: "Darryl L. Pierce" Date: 2011-06-30T04:16:30+09:00 Subject: Re: Specifying non-standard include/lib directories on gem install... --/GPgYEyhnw15BExa Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 30, 2011 at 03:54:57AM +0900, Ryan Davis wrote: >=20 > On Jun 29, 2011, at 11:34 , Darryl L. Pierce wrote: >=20 > > Is it possible to specific non-standard directories when installing a > > gem? For example, I'm working in a development environment where the > > libraries and headers that the gem would compile against aren't in > > /usr/include and /usr/lib64 but instead are in my development > > environment. > >=20 > > It's a PITA to install the gem and then manually go to the gem directory > > and re-run "ruby extconf.rb" with the --with-qpid-{lib,include} args. >=20 > % gem help install > Usage: gem install GEMNAME [GEMNAME ...] [options] -- --build-flags [opti= ons] >=20 > [... lots ...] >=20 > If an extension fails to compile during gem installation the gem > specification is not written out, but the gem remains unpacked in the > repository. You may need to specify the path to the library's header= s and > libraries to continue. You can do this by adding a -- between RubyGe= ms' > options and the extension's build options: > =20 > $ gem install some_extension_gem > [build fails] > Gem files will remain installed in \ > /path/to/gems/some_extension_gem-1.0 for inspection. > Results logged to /path/to/gems/some_extension_gem-1.0/gem_make.out > $ gem install some_extension_gem -- --with-extension-lib=3D/path/to= /lib > [build succeeds] > $ gem list some_extension_gem Ah, kk. Thanks. :) --=20 Darryl L. Pierce http://mcpierce.multiply.com/ "What do you care what people think, Mr. Feynman?" --/GPgYEyhnw15BExa Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk4LegoACgkQtddqM0QFuLL1nwCgs6930JP5zELAEuFpwyMZwZtO JWwAn3MLnLtsDRWoKTDRbd3Ba2zxc9tv =Rd54 -----END PGP SIGNATURE----- --/GPgYEyhnw15BExa--