--e89a8ff2424ffa978304b9a44fcb
Content-Type: text/plain; charset=ISO-8859-1

Hi,

Type in rvm list first to see what Ruby version you have got installed.
Then rvm use 1.9.3 --default

Homepage: www.amidev.co.uk
On Feb 23, 2012 4:33 PM, "Ruby Student" <ruby.student / gmail.com> wrote:

> OK, I got rvm installed. It also looks like it installed ruby.
> But, how do I invoke ruby installed by rvm? When I type: *ruby -v*, I get
> an error.
>
>
> # rvm install 1.9.3
> Fetching yaml-0.1.4.tar.gz to /usr/local/rvm/archives
>   % Total    % Received % Xferd  Average Speed   Time    Time     Time
> Current
>                                  Dload  Upload   Total   Spent    Left
> Speed
> 100  460k  100  460k    0     0   340k      0  0:00:01  0:00:01 --:--:--
> 556k
> Extracting yaml-0.1.4.tar.gz to /usr/local/rvm/src
> Configuring yaml in /usr/local/rvm/src/yaml-0.1.4.
> Compiling yaml in /usr/local/rvm/src/yaml-0.1.4.
> Installing yaml to /usr/local/rvm/usr
> Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.9.3-p125,
> this may take a while depending on your cpu(s)...
>
> ruby-1.9.3-p125 - #fetching
> ruby-1.9.3-p125 - #downloading ruby-1.9.3-p125, this may take a while
> depending on your connection...
>   % Total    % Received % Xferd  Average Speed   Time    Time     Time
> Current
>                                  Dload  Upload   Total   Spent    Left
> Speed
> 100 9505k  100 9505k    0     0   395k      0  0:00:24  0:00:24 --:--:--
> 2177k
> ruby-1.9.3-p125 - #extracting ruby-1.9.3-p125 to
> /usr/local/rvm/src/ruby-1.9.3-p125
> ruby-1.9.3-p125 - #extracted to /usr/local/rvm/src/ruby-1.9.3-p125
> ruby-1.9.3-p125 - #configuring
> ruby-1.9.3-p125 - #compiling
> ruby-1.9.3-p125 - #installing
> Retrieving rubygems-1.8.17
>   % Total    % Received % Xferd  Average Speed   Time    Time     Time
> Current
>                                  Dload  Upload   Total   Spent    Left
> Speed
> 100  246k  100  246k    0     0   352k      0 --:--:-- --:--:-- --:--:--
> 659k
> Extracting rubygems-1.8.17 ...
> Removing old Rubygems files...
> Installing rubygems-1.8.17 for ruby-1.9.3-p125 ...
> Installation of rubygems completed successfully.
> ruby-1.9.3-p125 - adjusting #shebangs for (gem irb erb ri rdoc testrb
> rake).
> ruby-1.9.3-p125 - #importing default gemsets (/usr/local/rvm/gemsets/)
> Install of ruby-1.9.3-p125 - #complete
>
> [root@oc8821576380 ruby-1.9.3-p0]#* ruby -v*
> Command not found.
>
> Also,
>
> *# rvm rubygems mechanize*
> 'ruby' was not found, cannot install rubygems unless ruby is present (Do
> you have an RVM ruby installed & selected?)
>
> Thank you
>
> On Thu, Feb 23, 2012 at 8:53 AM, ami <raf / amidev.co.uk> wrote:
>
>> Hi,
>>
>> I would advise you to unistall your ruby installation and install rvm
>> first and go from there.
>>
>>
>> On Thu, 2012-02-23 at 22:44 +0900, Ruby Student wrote:
>> > Hello Team,
>> >
>> > I am trying to install mechanize but it is failing. Any help will be
>> > appreciated.
>> > Here are the details:
>> >
>> > OS: Red Hat Enterprise Linux Workstation release 6.2 (Santiago)
>> > Ruby:
>> > ruby -v
>> > ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
>> >
>> > It complains that that library: libxslt is missing. However, the
>> > library IS installed:
>> > # rpm -qa | grep -i libxslt
>> > libxslt-python-1.1.26-2.el6.x86_64
>> > libxslt-1.1.26-2.el6.x86_64
>> >
>> > Also, if I try to install it it states that it is already installed:
>> >
>> > yum install libxslt
>> > Setting up Install Process
>> > Package libxslt-1.1.26-2.el6.x86_64 already installed and latest
>> > version
>> > Nothing to do
>> >
>> > Now the errors from gem:
>> >
>> > # gem install mechanize
>> > /usr/local/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
>> > It seems your ruby installation is missing psych (for YAML output).
>> > To eliminate this warning, please install libyaml and reinstall your
>> > ruby.
>> > Building native extensions.  This could take a while...
>> > ERROR:  Error installing mechanize:
>> >     ERROR: Failed to build gem native extension.
>> >
>> >         /usr/local/bin/ruby extconf.rb
>> > extconf.rb:10: Use RbConfig instead of obsolete and deprecated Config.
>> > checking for libxml/parser.h... yes
>> > checking for libxslt/xslt.h... no
>> > -----
>> > libxslt is missing.  please visit
>> > http://nokogiri.org/tutorials/installing_nokogiri.html for help with
>> > installing dependencies.
>> > -----
>> > *** 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-includeopt-dir}/include
>> >     --with-opt-lib
>> >     --without-opt-libopt-dir}/lib
>> >     --with-make-prog
>> >     --without-make-prog
>> >     --srcdir>> >     --curdir
>> >     --rubysr/local/bin/ruby
>> >     --with-zlib-dir
>> >     --without-zlib-dir
>> >     --with-zlib-include
>> >     --without-zlib-includezlib-dir}/include
>> >     --with-zlib-lib
>> >     --without-zlib-libzlib-dir}/lib
>> >     --with-iconv-dir
>> >     --without-iconv-dir
>> >     --with-iconv-include
>> >     --without-iconv-includeiconv-dir}/include
>> >     --with-iconv-lib
>> >     --without-iconv-libiconv-dir}/lib
>> >     --with-xml2-dir
>> >     --without-xml2-dir
>> >     --with-xml2-include
>> >     --without-xml2-includexml2-dir}/include
>> >     --with-xml2-lib
>> >     --without-xml2-libxml2-dir}/lib
>> >     --with-xslt-dir
>> >     --without-xslt-dir
>> >     --with-xslt-include
>> >     --without-xslt-includexslt-dir}/include
>> >     --with-xslt-lib
>> >     --without-xslt-libxslt-dir}/lib
>> >
>> >
>> > Gem files will remain installed
>> > in /usr/local/lib/ruby/gems/1.9.1/gems/nokogiri-1.5.0 for inspection.
>> > Results logged
>> > to
>> /usr/local/lib/ruby/gems/1.9.1/gems/nokogiri-1.5.0/ext/nokogiri/gem_make.out
>> >
>> > When I try to install psych or yaml I get the same errors listed
>> > above.
>> >
>> > Thank you
>> > --
>> > Ruby Student
>>
>>
>>
>>
>
>
> --
> Ruby Student
>

--e89a8ff2424ffa978304b9a44fcb
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<p>Hi,</p>
<p>Type in rvm list first to see what Ruby version you have got installed. Then rvm use 1.9.3 --default </p>
<p>Homepage: www.amidev.co.uk</p>
<div class="gmail_quote">On Feb 23, 2012 4:33 PM, &quot;Ruby Student&quot; &lt;ruby.student / gmail.com&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
OK, I got rvm installed. It also looks like it installed ruby.<br>But, how do I invoke ruby installed by rvm? When I type:b>ruby -v</b>, I get an error.<br><br><br># rvm install 1.9.3<br>Fetching yaml-0.1.4.tar.gz to /usr/local/rvm/archives<br>

% Total  % Received % XferdAverage Speed   Time  Time     TimeCurrent<br>                                 DloadUpload   Total   Spent  LeftSpeed<br>100460k100460k  0     0   340k    00:00:0100:01 --:--:--556k<br>

Extracting yaml-0.1.4.tar.gz to /usr/local/rvm/src<br>Configuring yaml in /usr/local/rvm/src/yaml-0.1.4.<br>Compiling yaml in /usr/local/rvm/src/yaml-0.1.4.<br>Installing yaml to /usr/local/rvm/usr<br>Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.9.3-p125, this may take a while depending on your cpu(s)...<br>

<br>ruby-1.9.3-p125 - #fetching <br>ruby-1.9.3-p125 - #downloading ruby-1.9.3-p125, this may take a while depending on your connection...<br>% Total  % Received % XferdAverage Speed   Time  Time     TimeCurrent<br>

                                 DloadUpload   Total   Spent  LeftSpeed<br>100 9505k100 9505k  0     0   395k    00:00:240:00:24 --:--:-- 2177k<br>ruby-1.9.3-p125 - #extracting ruby-1.9.3-p125 to /usr/local/rvm/src/ruby-1.9.3-p125<br>

ruby-1.9.3-p125 - #extracted to /usr/local/rvm/src/ruby-1.9.3-p125<br>ruby-1.9.3-p125 - #configuring <br>ruby-1.9.3-p125 - #compiling <br>ruby-1.9.3-p125 - #installing <br>Retrieving rubygems-1.8.17<br>% Total  % Received % XferdAverage Speed   Time  Time     TimeCurrent<br>

                                 DloadUpload   Total   Spent  LeftSpeed<br>100246k100246k  0     0   352k    0 --:--:-- --:--:-- --:--:--659k<br>Extracting rubygems-1.8.17 ...<br>Removing old Rubygems files...<br>

Installing rubygems-1.8.17 for ruby-1.9.3-p125 ...<br>Installation of rubygems completed successfully.<br>ruby-1.9.3-p125 - adjusting #shebangs for (gem irb erb ri rdoc testrb rake).<br>ruby-1.9.3-p125 - #importing default gemsets (/usr/local/rvm/gemsets/)<br>

Install of ruby-1.9.3-p125 - #complete <br><br>[root@oc8821576380 ruby-1.9.3-p0]#<b> ruby -v</b><br>Command not found.<br><br>Also,<br><br><b># rvm rubygems mechanize</b><br>&#39;ruby&#39; was not found, cannot install rubygems unless ruby is present (Do you have an RVM ruby installed &amp; selected?)<br>

<br>Thank you<br><br><div class="gmail_quote">On Thu, Feb 23, 2012 at 8:53 AM, ami <span dir="ltr">&lt;<a href="mailto:raf / amidev.co.uk" target="_blank">raf / amidev.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

Hi,<br>
<br>
I would advise you to unistall your ruby installation and install rvm<br>
first and go from there.<br>
<div><div><br>
<br>
On Thu, 2012-02-23 at 22:44 +0900, Ruby Student wrote:<br>
&gt; Hello Team,<br>
&gt;<br>
&gt; I am trying to install mechanize but it is failing. Any help will be<br>
&gt; appreciated.<br>
&gt; Here are the details:<br>
&gt;<br>
&gt; OS: Red Hat Enterprise Linux Workstation release 6.2 (Santiago)<br>
&gt; Ruby:<br>
&gt; ruby -v<br>
&gt; ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]<br>
&gt;<br>
&gt; It complains that that library: libxslt is missing. However, the<br>
&gt; library IS installed:<br>
&gt; # rpm -qa | grep -i libxslt<br>
&gt; libxslt-python-1.1.26-2.el6.x86_64<br>
&gt; libxslt-1.1.26-2.el6.x86_64<br>
&gt;<br>
&gt; Also, if I try to install it it states that it is already installed:<br>
&gt;<br>
&gt; yum install libxslt<br>
&gt; Setting up Install Process<br>
&gt; Package libxslt-1.1.26-2.el6.x86_64 already installed and latest<br>
&gt; version<br>
&gt; Nothing to do<br>
&gt;<br>
&gt; Now the errors from gem:<br>
&gt;<br>
&gt; # gem install mechanize<br>
&gt; /usr/local/lib/ruby/1.9.1/yaml.rb:56:in `&lt;top (required)&gt;&#39;:<br>
&gt; It seems your ruby installation is missing psych (for YAML output).<br>
&gt; To eliminate this warning, please install libyaml and reinstall your<br>
&gt; ruby.<br>
&gt; Building native extensions.   宮
&gt; ERROR:    庼
&gt; ERROR: Failed to build gem native extension.<br>
&gt;<br>
&gt; /usr/local/bin/ruby extconf.rb<br>
&gt; extconf.rb:10: Use RbConfig instead of obsolete and deprecated Config.<br>
&gt; checking for libxml/parser.h... yes<br>
&gt; checking for libxslt/xslt.h... no<br>
&gt; -----<br>
&gt; libxslt is missing.  &gt; <a href="http://nokogiri.org/tutorials/installing_nokogiri.html" target="_blank">http://nokogiri.org/tutorials/installing_nokogiri.html</a> for help with<br>
&gt; installing dependencies.<br>
&gt; -----<br>
&gt; *** extconf.rb failed ***<br>
&gt; Could not create Makefile due to some reason, probably lack of<br>
&gt; necessary libraries and/or headers.     
&gt; details.    
&gt;<br>
&gt; Provided configuration options:<br>
&gt; --with-opt-dir<br>
&gt; --without-opt-dir<br>
&gt; --with-opt-include<br>
&gt; --without-opt-include=${opt-dir}/include<br>
&gt; --with-opt-lib<br>
&gt; --without-opt-lib=${opt-dir}/lib<br>
&gt; --with-make-prog<br>
&gt; --without-make-prog<br>
&gt; --srcdir=.<br>
&gt; --curdir<br>
&gt; --ruby=/usr/local/bin/ruby<br>
&gt; --with-zlib-dir<br>
&gt; --without-zlib-dir<br>
&gt; --with-zlib-include<br>
&gt; --without-zlib-include=${zlib-dir}/include<br>
&gt; --with-zlib-lib<br>
&gt; --without-zlib-lib=${zlib-dir}/lib<br>
&gt; --with-iconv-dir<br>
&gt; --without-iconv-dir<br>
&gt; --with-iconv-include<br>
&gt; --without-iconv-include=${iconv-dir}/include<br>
&gt; --with-iconv-lib<br>
&gt; --without-iconv-lib=${iconv-dir}/lib<br>
&gt; --with-xml2-dir<br>
&gt; --without-xml2-dir<br>
&gt; --with-xml2-include<br>
&gt; --without-xml2-include=${xml2-dir}/include<br>
&gt; --with-xml2-lib<br>
&gt; --without-xml2-lib=${xml2-dir}/lib<br>
&gt; --with-xslt-dir<br>
&gt; --without-xslt-dir<br>
&gt; --with-xslt-include<br>
&gt; --without-xslt-include=${xslt-dir}/include<br>
&gt; --with-xslt-lib<br>
&gt; --without-xslt-lib=${xslt-dir}/lib<br>
&gt;<br>
&gt;<br>
&gt; Gem files will remain installed<br>
&gt; in /usr/local/lib/ruby/gems/1.9.1/gems/nokogiri-1.5.0 for inspection.<br>
&gt; Results logged<br>
&gt; to /usr/local/lib/ruby/gems/1.9.1/gems/nokogiri-1.5.0/ext/nokogiri/gem_make.out<br>
&gt;<br>
&gt; When I try to install psych or yaml I get the same errors listed<br>
&gt; above.<br>
&gt;<br>
&gt; Thank you<br>
&gt; --<br>
&gt; Ruby Student<br>
<br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Ruby Student<br>
</blockquote></div>

--e89a8ff2424ffa978304b9a44fcb--