First, my thanks to everyone for your help.

*Kristofer:*

This is inteteresting. The rpm -qa returns a differet version of ruby than
the ruby -v, as you can see below.
I want to use the latest. So I want to remove version 1.87. However, I want
to make sure that I don't break something else on the way!

rpm -qa | grep -i ruby
ruby-devel-1.8.7.299-5.el6_0.1.x86_64
ruby-libs-1.8.7.299-5.el6_0.1.x86_64

[root@oc7871667644 Desktop]# ruby -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]
######################## ==========================
#############################

*Brabuhr:*

I executed the commands you provided and this is the output:

cd /usr/local/lib/ruby/gems/1.9.1/gems/rubywmq-1.0.0/ext
[root@oc7871667644 ext]#  ruby -I. extconf.rb
checking for cmqc.h... yes
Generated wmq_reason.c
Generated wmq_const_admin.rb
Generated wmq_const.rb
Generated wmq_structs.c
creating Makefile

Does this mean that I now have a functional Ruby-WMQ? Or do I need any
further command? Normally *gem install* does it all and I don't really know
at what stage I find myself now.

Also, answering your question, I did install ruby via:
"./configure
&& make && make install"
######################## ==========================
#############################

In general, is it safe to remove the old version, 1.8.7 and how should I do
it? Via the rpm -e?

Again, thank you all for your help. It is really appreciated!


On Tue, May 31, 2011 at 5:15 PM, Ruby Student <ruby.student / gmail.com>wrote:

> 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 <me / kmwhite.net> 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
>



-- 
Ruby Student