Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Error while installing GEM WMQ

Reply
Thread Tools

Error while installing GEM WMQ

 
 
Ruby Student
Guest
Posts: n/a
 
      05-31-2011
[Note: parts of this message were removed to make it a legal post.]

Hi,

I am trying to install Ruby WMQ on RHEL6 and SLES11, and it is failing on
both environments.
Here is what I get:

*The scenario is for SuSe Ver 11*.

ruby -v
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]

SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 0

gem install rubywmq
Building native extensions. This could take a while...
ERROR: Error installing rubywmq:
ERROR: Failed to build gem native extension.

/usr/local/bin/ruby extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/bin/ruby
<internal:lib/rubygems/custom_require>:29:in `require': no such file to load
-- generate/generate_reason (LoadError)
from <internal:lib/rubygems/custom_require>:29:in `require'
from extconf.rb:18:in `<main>'


Gem files will remain installed in
/usr/local/lib/ruby/gems/1.9.1/gems/rubywmq-1.0.0 for inspection.
Results logged to
/usr/local/lib/ruby/gems/1.9.1/gems/rubywmq-1.0.0/ext/gem_make.out


*Red Hat Enterprise Linux Ver 6:*

ruby -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]

Linux myhost 2.6.32-71.29.1.el6.x86_64 #1 SMP Tue May 10 23:11:30 EDT 2011
x86_64 x86_64 x86_64 GNU/Linux

gem install rubywmq
NOTE: Gem::Specification#default_executable= is deprecated with no
replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from
/usr/local/lib/ruby/gems/1.9.1/specifications/rubygems-update-1.8.0.gemspec:11.
NOTE: Gem::Specification#default_executable= is deprecated with no
replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from
/usr/local/lib/ruby/gems/1.9.1/specifications/nokogiri-1.4.4.gemspec:10.
NOTE: Gem::Specification#default_executable= is deprecated with no
replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from
/usr/local/lib/ruby/gems/1.9.1/specifications/bundler-1.0.13.gemspec:10.
NOTE: Gem::Specification#default_executable= is deprecated with no
replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from
/usr/local/lib/ruby/gems/1.9.1/specifications/rubygems-update-1.8.0.gemspec:11.
NOTE: Gem::Specification#default_executable= is deprecated with no
replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from
/usr/local/lib/ruby/gems/1.9.1/specifications/nokogiri-1.4.4.gemspec:10.
NOTE: Gem::Specification#default_executable= is deprecated with no
replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from
/usr/local/lib/ruby/gems/1.9.1/specifications/bundler-1.0.13.gemspec:10.
Fetching: rubywmq-1.0.0.gem (100%)
Building native extensions. This could take a while...
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/ext/builder.rb:48: warning:
Insecure world writable dir /usr/local/shoes in PATH, mode 040777
ERROR: Error installing rubywmq:
ERROR: Failed to build gem native extension.

/usr/local/bin/ruby extconf.rb
NOTE: Gem::Specification#default_executable= is deprecated with no
replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from
/usr/local/lib/ruby/gems/1.9.1/specifications/rubygems-update-1.8.0.gemspec:11.
NOTE: Gem::Specification#default_executable= is deprecated with no
replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from
/usr/local/lib/ruby/gems/1.9.1/specifications/nokogiri-1.4.4.gemspec:10.
NOTE: Gem::Specification#default_executable= is deprecated with no
replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from
/usr/local/lib/ruby/gems/1.9.1/specifications/bundler-1.0.13.gemspec:10.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/bin/ruby
<internal:lib/rubygems/custom_require>:29:in `require': no such file to load
-- generate/generate_reason (LoadError)
from <internal:lib/rubygems/custom_require>:29:in `require'
from extconf.rb:18:in `<main>'


Gem files will remain installed in
/usr/local/lib/ruby/gems/1.9.1/gems/rubywmq-1.0.0 for inspection.
Results logged to
/usr/local/lib/ruby/gems/1.9.1/gems/rubywmq-1.0.0/ext/gem_make.out


*Thank you*



--
Ruby Student

 
Reply With Quote
 
 
 
 
Kristofer White
Guest
Posts: n/a
 
      05-31-2011
Do you have the ruby development libraries installed? In Debian like =
distros, this is called something like ruby-dev. Perhaps ruby-devel in =
RH like?
On May 31, 2011, at 3:58 PM, Ruby Student wrote:

> Hi,
>=20
> I am trying to install Ruby WMQ on RHEL6 and SLES11, and it is failing =

on
> both environments.
> Here is what I get:
>=20
> *The scenario is for SuSe Ver 11*.
>=20
> ruby -v
> ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]
>=20
> SUSE Linux Enterprise Server 11 (x86_64)
> VERSION =3D 11
> PATCHLEVEL =3D 0
>=20
> gem install rubywmq
> Building native extensions. This could take a while...
> ERROR: Error installing rubywmq:
> ERROR: Failed to build gem native extension.
>=20
> /usr/local/bin/ruby extconf.rb
> *** extconf.rb failed ***
> Could not create Makefile due to some reason, probably lack of
> necessary libraries and/or headers. Check the mkmf.log file for more
> details. You may need configuration options.
>=20
> Provided configuration options:
> --with-opt-dir
> --without-opt-dir
> --with-opt-include
> --without-opt-include=3D${opt-dir}/include
> --with-opt-lib
> --without-opt-lib=3D${opt-dir}/lib
> --with-make-prog
> --without-make-prog
> --srcdir=3D.
> --curdir
> --ruby=3D/usr/local/bin/ruby
> <internal:lib/rubygems/custom_require>:29:in `require': no such file =

to load
> -- generate/generate_reason (LoadError)
> from <internal:lib/rubygems/custom_require>:29:in `require'
> from extconf.rb:18:in `<main>'
>=20
>=20
> Gem files will remain installed in
> /usr/local/lib/ruby/gems/1.9.1/gems/rubywmq-1.0.0 for inspection.
> Results logged to
> /usr/local/lib/ruby/gems/1.9.1/gems/rubywmq-1.0.0/ext/gem_make.out
>=20
>=20
> *Red Hat Enterprise Linux Ver 6:*
>=20
> ruby -v
> ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]
>=20
> Linux myhost 2.6.32-71.29.1.el6.x86_64 #1 SMP Tue May 10 23:11:30 EDT =

2011
> x86_64 x86_64 x86_64 GNU/Linux
>=20
> gem install rubywmq
> NOTE: Gem::Specification#default_executable=3D is deprecated with no
> replacement. It will be removed on or after 2011-10-01.
> Gem::Specification#default_executable=3D called from
> =

/usr/local/lib/ruby/gems/1.9.1/specifications/rubygems-update-1.8.0.gemspe=
c:11.
> NOTE: Gem::Specification#default_executable=3D is deprecated with no
> replacement. It will be removed on or after 2011-10-01.
> Gem::Specification#default_executable=3D called from
> =

/usr/local/lib/ruby/gems/1.9.1/specifications/nokogiri-1.4.4.gemspec:10.
> NOTE: Gem::Specification#default_executable=3D is deprecated with no
> replacement. It will be removed on or after 2011-10-01.
> Gem::Specification#default_executable=3D called from
> =

/usr/local/lib/ruby/gems/1.9.1/specifications/bundler-1.0.13.gemspec:10.
> NOTE: Gem::Specification#default_executable=3D is deprecated with no
> replacement. It will be removed on or after 2011-10-01.
> Gem::Specification#default_executable=3D called from
> =

/usr/local/lib/ruby/gems/1.9.1/specifications/rubygems-update-1.8.0.gemspe=
c:11.
> NOTE: Gem::Specification#default_executable=3D is deprecated with no
> replacement. It will be removed on or after 2011-10-01.
> Gem::Specification#default_executable=3D called from
> =

/usr/local/lib/ruby/gems/1.9.1/specifications/nokogiri-1.4.4.gemspec:10.
> NOTE: Gem::Specification#default_executable=3D is deprecated with no
> replacement. It will be removed on or after 2011-10-01.
> Gem::Specification#default_executable=3D called from
> =

/usr/local/lib/ruby/gems/1.9.1/specifications/bundler-1.0.13.gemspec:10.
> Fetching: rubywmq-1.0.0.gem (100%)
> Building native extensions. This could take a while...
> /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/ext/builder.rb:48: =

warning:
> Insecure world writable dir /usr/local/shoes in PATH, mode 040777
> ERROR: Error installing rubywmq:
> ERROR: Failed to build gem native extension.
>=20
> /usr/local/bin/ruby extconf.rb
> NOTE: Gem::Specification#default_executable=3D is deprecated with no
> replacement. It will be removed on or after 2011-10-01.
> Gem::Specification#default_executable=3D called from
> =

/usr/local/lib/ruby/gems/1.9.1/specifications/rubygems-update-1.8.0.gemspe=
c:11.
> NOTE: Gem::Specification#default_executable=3D is deprecated with no
> replacement. It will be removed on or after 2011-10-01.
> Gem::Specification#default_executable=3D called from
> =

/usr/local/lib/ruby/gems/1.9.1/specifications/nokogiri-1.4.4.gemspec:10.
> NOTE: Gem::Specification#default_executable=3D is deprecated with no
> replacement. It will be removed on or after 2011-10-01.
> Gem::Specification#default_executable=3D called from
> =

/usr/local/lib/ruby/gems/1.9.1/specifications/bundler-1.0.13.gemspec:10.
> *** extconf.rb failed ***
> Could not create Makefile due to some reason, probably lack of
> necessary libraries and/or headers. Check the mkmf.log file for more
> details. You may need configuration options.
>=20
> Provided configuration options:
> --with-opt-dir
> --without-opt-dir
> --with-opt-include
> --without-opt-include=3D${opt-dir}/include
> --with-opt-lib
> --without-opt-lib=3D${opt-dir}/lib
> --with-make-prog
> --without-make-prog
> --srcdir=3D.
> --curdir
> --ruby=3D/usr/local/bin/ruby
> <internal:lib/rubygems/custom_require>:29:in `require': no such file =

to load
> -- generate/generate_reason (LoadError)
> from <internal:lib/rubygems/custom_require>:29:in `require'
> from extconf.rb:18:in `<main>'
>=20
>=20
> Gem files will remain installed in
> /usr/local/lib/ruby/gems/1.9.1/gems/rubywmq-1.0.0 for inspection.
> Results logged to
> /usr/local/lib/ruby/gems/1.9.1/gems/rubywmq-1.0.0/ext/gem_make.out
>=20
>=20
> *Thank you*
>=20
>=20
>=20
> --=20
> Ruby Student



 
Reply With Quote
 
 
 
 
Ruby Student
Guest
Posts: n/a
 
      05-31-2011
[Note: parts of this message were removed to make it a legal post.]

Kristofer,

I am not aware of such library.
I search from the root dir find / -name ruby-dev and it came out empty.

The version of ruby that I have installed is:
ruby -v
*ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]*

I can try installing such library if I can find it.

Keep in mind that this is failing on SuSe and Redhhat. Both latest level!

Thank you

On Tue, May 31, 2011 at 5:06 PM, Kristofer White <> wrote:

> Do you have the ruby development libraries installed? In Debian like
> distros, this is called something like ruby-dev. Perhaps ruby-devel in RH
> like?
> On May 31, 2011, at 3:58 PM, Ruby Student wrote:
>
> > Hi,
> >
> > I am trying to install Ruby WMQ on RHEL6 and SLES11, and it is failing on
> > both environments.
> > Here is what I get:
> >
> > *The scenario is for SuSe Ver 11*.
> >
> > ruby -v
> > ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]
> >
> > SUSE Linux Enterprise Server 11 (x86_64)
> > VERSION = 11
> > PATCHLEVEL = 0
> >
> > gem install rubywmq
> > Building native extensions. This could take a while...
> > ERROR: Error installing rubywmq:
> > ERROR: Failed to build gem native extension.
> >
> > /usr/local/bin/ruby extconf.rb
> > *** extconf.rb failed ***
> > Could not create Makefile due to some reason, probably lack of
> > necessary libraries and/or headers. Check the mkmf.log file for more
> > details. You may need configuration options.
> >
> > Provided configuration options:
> > --with-opt-dir
> > --without-opt-dir
> > --with-opt-include
> > --without-opt-include=${opt-dir}/include
> > --with-opt-lib
> > --without-opt-lib=${opt-dir}/lib
> > --with-make-prog
> > --without-make-prog
> > --srcdir=.
> > --curdir
> > --ruby=/usr/local/bin/ruby
> > <internal:lib/rubygems/custom_require>:29:in `require': no such file to

> load
> > -- generate/generate_reason (LoadError)
> > from <internal:lib/rubygems/custom_require>:29:in `require'
> > from extconf.rb:18:in `<main>'
> >
> >
> > Gem files will remain installed in
> > /usr/local/lib/ruby/gems/1.9.1/gems/rubywmq-1.0.0 for inspection.
> > Results logged to
> > /usr/local/lib/ruby/gems/1.9.1/gems/rubywmq-1.0.0/ext/gem_make.out
> >
> >
> > *Red Hat Enterprise Linux Ver 6:*
> >
> > ruby -v
> > ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]
> >
> > Linux myhost 2.6.32-71.29.1.el6.x86_64 #1 SMP Tue May 10 23:11:30 EDT

> 2011
> > x86_64 x86_64 x86_64 GNU/Linux
> >
> > gem install rubywmq
> > NOTE: Gem::Specification#default_executable= is deprecated with no
> > replacement. It will be removed on or after 2011-10-01.
> > Gem::Specification#default_executable= called from
> >

> /usr/local/lib/ruby/gems/1.9.1/specifications/rubygems-update-1.8.0.gemspec:11.
> > NOTE: Gem::Specification#default_executable= is deprecated with no
> > replacement. It will be removed on or after 2011-10-01.
> > Gem::Specification#default_executable= called from
> > /usr/local/lib/ruby/gems/1.9.1/specifications/nokogiri-1.4.4.gemspec:10.
> > NOTE: Gem::Specification#default_executable= is deprecated with no
> > replacement. It will be removed on or after 2011-10-01.
> > Gem::Specification#default_executable= called from
> > /usr/local/lib/ruby/gems/1.9.1/specifications/bundler-1.0.13.gemspec:10.
> > NOTE: Gem::Specification#default_executable= is deprecated with no
> > replacement. It will be removed on or after 2011-10-01.
> > Gem::Specification#default_executable= called from
> >

> /usr/local/lib/ruby/gems/1.9.1/specifications/rubygems-update-1.8.0.gemspec:11.
> > NOTE: Gem::Specification#default_executable= is deprecated with no
> > replacement. It will be removed on or after 2011-10-01.
> > Gem::Specification#default_executable= called from
> > /usr/local/lib/ruby/gems/1.9.1/specifications/nokogiri-1.4.4.gemspec:10.
> > NOTE: Gem::Specification#default_executable= is deprecated with no
> > replacement. It will be removed on or after 2011-10-01.
> > Gem::Specification#default_executable= called from
> > /usr/local/lib/ruby/gems/1.9.1/specifications/bundler-1.0.13.gemspec:10.
> > Fetching: rubywmq-1.0.0.gem (100%)
> > Building native extensions. This could take a while...
> > /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/ext/builder.rb:48: warning:
> > Insecure world writable dir /usr/local/shoes in PATH, mode 040777
> > ERROR: Error installing rubywmq:
> > ERROR: Failed to build gem native extension.
> >
> > /usr/local/bin/ruby extconf.rb
> > NOTE: Gem::Specification#default_executable= is deprecated with no
> > replacement. It will be removed on or after 2011-10-01.
> > Gem::Specification#default_executable= called from
> >

> /usr/local/lib/ruby/gems/1.9.1/specifications/rubygems-update-1.8.0.gemspec:11.
> > NOTE: Gem::Specification#default_executable= is deprecated with no
> > replacement. It will be removed on or after 2011-10-01.
> > Gem::Specification#default_executable= called from
> > /usr/local/lib/ruby/gems/1.9.1/specifications/nokogiri-1.4.4.gemspec:10.
> > NOTE: Gem::Specification#default_executable= is deprecated with no
> > replacement. It will be removed on or after 2011-10-01.
> > Gem::Specification#default_executable= called from
> > /usr/local/lib/ruby/gems/1.9.1/specifications/bundler-1.0.13.gemspec:10.
> > *** extconf.rb failed ***
> > Could not create Makefile due to some reason, probably lack of
> > necessary libraries and/or headers. Check the mkmf.log file for more
> > details. You may need configuration options.
> >
> > Provided configuration options:
> > --with-opt-dir
> > --without-opt-dir
> > --with-opt-include
> > --without-opt-include=${opt-dir}/include
> > --with-opt-lib
> > --without-opt-lib=${opt-dir}/lib
> > --with-make-prog
> > --without-make-prog
> > --srcdir=.
> > --curdir
> > --ruby=/usr/local/bin/ruby
> > <internal:lib/rubygems/custom_require>:29:in `require': no such file to

> load
> > -- generate/generate_reason (LoadError)
> > from <internal:lib/rubygems/custom_require>:29:in `require'
> > from extconf.rb:18:in `<main>'
> >
> >
> > Gem files will remain installed in
> > /usr/local/lib/ruby/gems/1.9.1/gems/rubywmq-1.0.0 for inspection.
> > Results logged to
> > /usr/local/lib/ruby/gems/1.9.1/gems/rubywmq-1.0.0/ext/gem_make.out
> >
> >
> > *Thank you*
> >
> >
> >
> > --
> > Ruby Student

>
>
>



--
Ruby Student

 
Reply With Quote
 
Kristofer White
Guest
Posts: n/a
 
      05-31-2011
Do, in a terminal, the following:

rpm -qa | grep ruby

That will tell you all RPMs installed that have 'ruby' in their name. =
Look for one that should be the development libraries for ruby. =
According to a quick search on rpm.pbone.net, the library you should =
want to see is 'ruby-devel'. If it isn't installed, you'll need to use =
yum or yast2 (Does Suse use yast? I only used RHEL/Fedora...) to install =
it. The command for that should be something like 'sudo yum install =
ruby-devel'.

On May 31, 2011, at 4:15 PM, Ruby Student wrote:

> Kristofer,
>=20
> I am not aware of such library.
> I search from the root dir find / -name ruby-dev and it came out =

empty.
>=20
> The version of ruby that I have installed is:
> ruby -v
> *ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]*
>=20
> I can try installing such library if I can find it.
>=20
> Keep in mind that this is failing on SuSe and Redhhat. Both latest =

level!
>=20
> Thank you
>=20
> On Tue, May 31, 2011 at 5:06 PM, Kristofer White <> =

wrote:
>=20
>> Do you have the ruby development libraries installed? In Debian like
>> distros, this is called something like ruby-dev. Perhaps ruby-devel =

in RH
>> like?
>> On May 31, 2011, at 3:58 PM, Ruby Student wrote:
>>=20
>>> Hi,
>>>=20
>>> I am trying to install Ruby WMQ on RHEL6 and SLES11, and it is =

failing on
>>> both environments.
>>> Here is what I get:
>>>=20
>>> *The scenario is for SuSe Ver 11*.
>>>=20
>>> ruby -v
>>> ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]
>>>=20
>>> SUSE Linux Enterprise Server 11 (x86_64)
>>> VERSION =3D 11
>>> PATCHLEVEL =3D 0
>>>=20
>>> gem install rubywmq
>>> Building native extensions. This could take a while...
>>> ERROR: Error installing rubywmq:
>>> ERROR: Failed to build gem native extension.
>>>=20
>>> /usr/local/bin/ruby extconf.rb
>>> *** extconf.rb failed ***
>>> Could not create Makefile due to some reason, probably lack of
>>> necessary libraries and/or headers. Check the mkmf.log file for =

more
>>> details. You may need configuration options.
>>>=20
>>> Provided configuration options:
>>> --with-opt-dir
>>> --without-opt-dir
>>> --with-opt-include
>>> --without-opt-include=3D${opt-dir}/include
>>> --with-opt-lib
>>> --without-opt-lib=3D${opt-dir}/lib
>>> --with-make-prog
>>> --without-make-prog
>>> --srcdir=3D.
>>> --curdir
>>> --ruby=3D/usr/local/bin/ruby
>>> <internal:lib/rubygems/custom_require>:29:in `require': no such file =

to
>> load
>>> -- generate/generate_reason (LoadError)
>>> from <internal:lib/rubygems/custom_require>:29:in `require'
>>> from extconf.rb:18:in `<main>'
>>>=20
>>>=20
>>> Gem files will remain installed in
>>> /usr/local/lib/ruby/gems/1.9.1/gems/rubywmq-1.0.0 for inspection.
>>> Results logged to
>>> /usr/local/lib/ruby/gems/1.9.1/gems/rubywmq-1.0.0/ext/gem_make.out
>>>=20
>>>=20
>>> *Red Hat Enterprise Linux Ver 6:*
>>>=20
>>> ruby -v
>>> ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]
>>>=20
>>> Linux myhost 2.6.32-71.29.1.el6.x86_64 #1 SMP Tue May 10 23:11:30 =

EDT
>> 2011
>>> x86_64 x86_64 x86_64 GNU/Linux
>>>=20
>>> gem install rubywmq
>>> NOTE: Gem::Specification#default_executable=3D is deprecated with no
>>> replacement. It will be removed on or after 2011-10-01.
>>> Gem::Specification#default_executable=3D called from
>>>=20

>> =

/usr/local/lib/ruby/gems/1.9.1/specifications/rubygems-update-1.8.0.gemspe=
c:11.
>>> NOTE: Gem::Specification#default_executable=3D is deprecated with no
>>> replacement. It will be removed on or after 2011-10-01.
>>> Gem::Specification#default_executable=3D called from
>>> =

/usr/local/lib/ruby/gems/1.9.1/specifications/nokogiri-1.4.4.gemspec:10.
>>> NOTE: Gem::Specification#default_executable=3D is deprecated with no
>>> replacement. It will be removed on or after 2011-10-01.
>>> Gem::Specification#default_executable=3D called from
>>> =

/usr/local/lib/ruby/gems/1.9.1/specifications/bundler-1.0.13.gemspec:10.
>>> NOTE: Gem::Specification#default_executable=3D is deprecated with no
>>> replacement. It will be removed on or after 2011-10-01.
>>> Gem::Specification#default_executable=3D called from
>>>=20

>> =

/usr/local/lib/ruby/gems/1.9.1/specifications/rubygems-update-1.8.0.gemspe=
c:11.
>>> NOTE: Gem::Specification#default_executable=3D is deprecated with no
>>> replacement. It will be removed on or after 2011-10-01.
>>> Gem::Specification#default_executable=3D called from
>>> =

/usr/local/lib/ruby/gems/1.9.1/specifications/nokogiri-1.4.4.gemspec:10.
>>> NOTE: Gem::Specification#default_executable=3D is deprecated with no
>>> replacement. It will be removed on or after 2011-10-01.
>>> Gem::Specification#default_executable=3D called from
>>> =

/usr/local/lib/ruby/gems/1.9.1/specifications/bundler-1.0.13.gemspec:10.
>>> Fetching: rubywmq-1.0.0.gem (100%)
>>> Building native extensions. This could take a while...
>>> /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/ext/builder.rb:48: =

warning:
>>> Insecure world writable dir /usr/local/shoes in PATH, mode 040777
>>> ERROR: Error installing rubywmq:
>>> ERROR: Failed to build gem native extension.
>>>=20
>>> /usr/local/bin/ruby extconf.rb
>>> NOTE: Gem::Specification#default_executable=3D is deprecated with no
>>> replacement. It will be removed on or after 2011-10-01.
>>> Gem::Specification#default_executable=3D called from
>>>=20

>> =

/usr/local/lib/ruby/gems/1.9.1/specifications/rubygems-update-1.8.0.gemspe=
c:11.
>>> NOTE: Gem::Specification#default_executable=3D is deprecated with no
>>> replacement. It will be removed on or after 2011-10-01.
>>> Gem::Specification#default_executable=3D called from
>>> =

/usr/local/lib/ruby/gems/1.9.1/specifications/nokogiri-1.4.4.gemspec:10.
>>> NOTE: Gem::Specification#default_executable=3D is deprecated with no
>>> replacement. It will be removed on or after 2011-10-01.
>>> Gem::Specification#default_executable=3D called from
>>> =

/usr/local/lib/ruby/gems/1.9.1/specifications/bundler-1.0.13.gemspec:10.
>>> *** extconf.rb failed ***
>>> Could not create Makefile due to some reason, probably lack of
>>> necessary libraries and/or headers. Check the mkmf.log file for =

more
>>> details. You may need configuration options.
>>>=20
>>> Provided configuration options:
>>> --with-opt-dir
>>> --without-opt-dir
>>> --with-opt-include
>>> --without-opt-include=3D${opt-dir}/include
>>> --with-opt-lib
>>> --without-opt-lib=3D${opt-dir}/lib
>>> --with-make-prog
>>> --without-make-prog
>>> --srcdir=3D.
>>> --curdir
>>> --ruby=3D/usr/local/bin/ruby
>>> <internal:lib/rubygems/custom_require>:29:in `require': no such file =

to
>> load
>>> -- generate/generate_reason (LoadError)
>>> from <internal:lib/rubygems/custom_require>:29:in `require'
>>> from extconf.rb:18:in `<main>'
>>>=20
>>>=20
>>> Gem files will remain installed in
>>> /usr/local/lib/ruby/gems/1.9.1/gems/rubywmq-1.0.0 for inspection.
>>> Results logged to
>>> /usr/local/lib/ruby/gems/1.9.1/gems/rubywmq-1.0.0/ext/gem_make.out
>>>=20
>>>=20
>>> *Thank you*
>>>=20
>>>=20
>>>=20
>>> --
>>> Ruby Student

>>=20
>>=20
>>=20

>=20
>=20
> --=20
> Ruby Student



 
Reply With Quote
 
brabuhr@gmail.com
Guest
Posts: n/a
 
      05-31-2011
Ruby Student wrote:
>> /usr/local/bin/ruby extconf.rb
>> *** extconf.rb failed ***
>> ruby -v
>> *ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]*


Kristofer White <> wrote:
> Do, in a terminal, the following:
>
> rpm -qa | grep ruby
>
> That will tell you all RPMs installed that have 'ruby' in their name.


In this case, that likely won't help because he is not using Red Hat's
ruby package, but some other Ruby in /usr/local (while it could be
from a 3rd-party RPM, it's probably a source install).

Ruby Student, you installed ruby through something like "./configure
&& make && make install"?

 
Reply With Quote
 
brabuhr@gmail.com
Guest
Posts: n/a
 
      05-31-2011
On Tue, May 31, 2011 at 4:58 PM, Ruby Student <> wrote:
> gem install rubywmq
>
> <internal:lib/rubygems/custom_require>:29:in `require': no such file to load
> -- generate/generate_reason (LoadError)
> from <internal:lib/rubygems/custom_require>:29:in `require'
> from extconf.rb:18:in `<main>'


The first problem is an incompatibility between this gem's code and
1.9.2's default load path (in 1.9.2 "." is not in the load path so the
require fails). I worry that there will be more serious complications
to come, but we can get past this by running extconf directly:

cd /usr/local/lib/ruby/gems/1.9.1/gems/rubywmq-1.0.0/ext
ruby -I. extconf.rb

At this point it fails for me, becuase I do not have the WebSphere MQ libraries:

....rvm/gems/ruby-1.9.2-p180/gems/rubywmq-1.0.0/ext/generate/generate_reason.rb:6:in
`initialize': No such file or directory - /opt/mqm/inc/cmqc.h
(Errno::ENOENT)

But, I assume you do; so, you should get farther down the road.

 
Reply With Quote
 
Gunther Diemant
Guest
Posts: n/a
 
      05-31-2011
[Note: parts of this message were removed to make it a legal post.]

I'm not sure, but I think the problem is the removal of '.' from the
loadpath in 1.9.
Is there any way to adjust the loadpath with a commandline option to the gem
command (like the -I switch for ruby)?
Or is the rubywmq gem not 1.9 compatible and one has to adjust the
sourcecode?

2011/6/1 <>

> Ruby Student wrote:
> >> /usr/local/bin/ruby extconf.rb
> >> *** extconf.rb failed ***
> >> ruby -v
> >> *ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]*

>
> Kristofer White <> wrote:
> > Do, in a terminal, the following:
> >
> > rpm -qa | grep ruby
> >
> > That will tell you all RPMs installed that have 'ruby' in their name.

>
> In this case, that likely won't help because he is not using Red Hat's
> ruby package, but some other Ruby in /usr/local (while it could be
> from a 3rd-party RPM, it's probably a source install).
>
> Ruby Student, you installed ruby through something like "./configure
> && make && make install"?
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Errno::EEXIST File Exists error when installing 'ferret' gem fromlocal .gem file Brandon Simmons Ruby 0 12-22-2010 11:03 PM
Re: Replacing WMQ with MSMQ ... Oldus Fartus Computer Support 5 10-28-2009 06:38 AM
Re: Replacing WMQ with MSMQ ... Pennywise@DerryMaine.Gov Computer Support 0 10-28-2009 06:24 AM
ERROR: While executing gem ... (Gem::GemNotFoundException) C Lost Warrior Ruby 0 04-12-2008 03:50 PM
ERROR: While executing gem ... (Gem::GemNotFoundException) Could not find rubygems-upodate (> 0) in the repository han Ruby 1 10-24-2005 10:28 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57