From: "Darryl L. Pierce" Date: 2011-10-04T22:06:16+09:00 Subject: Re: Error when installing gem. On 10/03/2011 07:40 PM, Luis Lavena wrote: > Darryl Pierce wrote in post #1024793: >> [...] >> >> ERROR: While executing gem ... (OptionParser::InvalidOption) >> invalid option: --without-qpid-dir=~/Programming/Qpid/builddir/src/ >> >> What's the problem and what does it expect? > > gem install -- --with-opt-for-gem=... > ^^ > > Note the double slashes to separate options for RubyGems than the > options you provide to the gem installation. > > All this is detailed in the RubyGems inline help: > > gem help install Still no joy. mcpierce@mcpierce-laptop:pkg (qpid-nonblocking-io-separate-threads) $ gem install qpid-0.13.0.gem -- --with-qpid-lib=~/Programming/Qpid/builddir/src/ --with-qpid-include=~/Programming/Qpid/qpid/cpp/include/ Building native extensions. This could take a while... ....... ERROR: Error installing qpid-0.13.0.gem: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb --with-qpid-lib=~/Programming/Qpid/builddir/src/ --with-qpid-include=~/Programming/Qpid/qpid/cpp/include/ checking for main() in -lstdc++... yes checking for main() in -lqpidclient... no Missing required library: qpidclient *** extconf.rb failed *** The directory pointed to by --with-qpid-lib (I also tried --with-qpid-dir) exists and contains libqpidclient.so, which is not being found in the above. -- Darryl L. Pierce http://mcpierce.multiply.com/ "What do you care what people think, Mr. Feynman?"