--0015175d07bc5d998d04b9a46c07 Content-Type: text/plain; charset=ISO-8859-1 Great! Thank you On Thu, Feb 23, 2012 at 11:41 AM, Rafal Zdziech <raf / amidev.co.uk> wrote: > 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-include opt-dir}/include >>> > --with-opt-lib >>> > --without-opt-lib opt-dir}/lib >>> > --with-make-prog >>> > --without-make-prog >>> > --srcdir >>> > --curdir >>> > --ruby sr/local/bin/ruby >>> > --with-zlib-dir >>> > --without-zlib-dir >>> > --with-zlib-include >>> > --without-zlib-include zlib-dir}/include >>> > --with-zlib-lib >>> > --without-zlib-lib zlib-dir}/lib >>> > --with-iconv-dir >>> > --without-iconv-dir >>> > --with-iconv-include >>> > --without-iconv-include iconv-dir}/include >>> > --with-iconv-lib >>> > --without-iconv-lib iconv-dir}/lib >>> > --with-xml2-dir >>> > --without-xml2-dir >>> > --with-xml2-include >>> > --without-xml2-include xml2-dir}/include >>> > --with-xml2-lib >>> > --without-xml2-lib xml2-dir}/lib >>> > --with-xslt-dir >>> > --without-xslt-dir >>> > --with-xslt-include >>> > --without-xslt-include xslt-dir}/include >>> > --with-xslt-lib >>> > --without-xslt-lib xslt-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 >> > -- Ruby Student --0015175d07bc5d998d04b9a46c07 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Great!<br><br>Thank you<br><br><div class="gmail_quote">On Thu, Feb 23, 2012 at 11:41 AM, Rafal Zdziech <span dir="ltr"><raf / amidev.co.uk></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"> <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: <a href="http://www.amidev.co.uk" target="_blank">www.amidev.co.uk</a></p><div class="HOEnZb"><div class="h5"> <div class="gmail_quote">On Feb 23, 2012 4:33 PM, "Ruby Student" <<a href="mailto:ruby.student / gmail.com" target="_blank">ruby.student / gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);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>'ruby' was not found, cannot install rubygems unless ruby is present (Do you have an RVM ruby installed & selected?)<br> <br>Thank you<br><br><div class="gmail_quote">On Thu, Feb 23, 2012 at 8:53 AM, ami <span dir="ltr"><<a href="mailto:raf / amidev.co.uk" target="_blank">raf / amidev.co.uk</a>></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> > Hello Team,<br> ><br> > I am trying to install mechanize but it is failing. Any help will be<br> > appreciated.<br> > Here are the details:<br> ><br> > OS: Red Hat Enterprise Linux Workstation release 6.2 (Santiago)<br> > Ruby:<br> > ruby -v<br> > ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]<br> ><br> > It complains that that library: libxslt is missing. However, the<br> > library IS installed:<br> > # rpm -qa | grep -i libxslt<br> > libxslt-python-1.1.26-2.el6.x86_64<br> > libxslt-1.1.26-2.el6.x86_64<br> ><br> > Also, if I try to install it it states that it is already installed:<br> ><br> > yum install libxslt<br> > Setting up Install Process<br> > Package libxslt-1.1.26-2.el6.x86_64 already installed and latest<br> > version<br> > Nothing to do<br> ><br> > Now the errors from gem:<br> ><br> > # gem install mechanize<br> > /usr/local/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':<br> > It seems your ruby installation is missing psych (for YAML output).<br> > To eliminate this warning, please install libyaml and reinstall your<br> > ruby.<br> > Building native extensions. ¨Âèéãïõìôáëå ÷èéìå®®®¼âò¾ > ERROR: ¨Âòòïò éîóôáììéîç íåãèáîéú庼âò¾ > ERROR: Failed to build gem native extension.<br> ><br> > /usr/local/bin/ruby extconf.rb<br> > extconf.rb:10: Use RbConfig instead of obsolete and deprecated Config.<br> > checking for libxml/parser.h... yes<br> > checking for libxslt/xslt.h... no<br> > -----<br> > libxslt is missing. ¨Âìåáóöéóéô¼âò> <a href="http://nokogiri.org/tutorials/installing_nokogiri.html" target="_blank">http://nokogiri.org/tutorials/installing_nokogiri.html</a> for help with<br> > installing dependencies.<br> > -----<br> > *** extconf.rb failed ***<br> > Could not create Makefile due to some reason, probably lack of<br> > necessary libraries and/or headers. ¨Âèåãë ôèíëíæ®ìïç æéìå æïíïòå¼âò¾ > details. ¨Âïõ íáîååä ãïîæéçõòáôéïïðôéïîó®¼âò¾ ><br> > Provided configuration options:<br> > --with-opt-dir<br> > --without-opt-dir<br> > --with-opt-include<br> > --without-opt-include=${opt-dir}/include<br> > --with-opt-lib<br> > --without-opt-lib=${opt-dir}/lib<br> > --with-make-prog<br> > --without-make-prog<br> > --srcdir=.<br> > --curdir<br> > --ruby=/usr/local/bin/ruby<br> > --with-zlib-dir<br> > --without-zlib-dir<br> > --with-zlib-include<br> > --without-zlib-include=${zlib-dir}/include<br> > --with-zlib-lib<br> > --without-zlib-lib=${zlib-dir}/lib<br> > --with-iconv-dir<br> > --without-iconv-dir<br> > --with-iconv-include<br> > --without-iconv-include=${iconv-dir}/include<br> > --with-iconv-lib<br> > --without-iconv-lib=${iconv-dir}/lib<br> > --with-xml2-dir<br> > --without-xml2-dir<br> > --with-xml2-include<br> > --without-xml2-include=${xml2-dir}/include<br> > --with-xml2-lib<br> > --without-xml2-lib=${xml2-dir}/lib<br> > --with-xslt-dir<br> > --without-xslt-dir<br> > --with-xslt-include<br> > --without-xslt-include=${xslt-dir}/include<br> > --with-xslt-lib<br> > --without-xslt-lib=${xslt-dir}/lib<br> ><br> ><br> > Gem files will remain installed<br> > in /usr/local/lib/ruby/gems/1.9.1/gems/nokogiri-1.5.0 for inspection.<br> > Results logged<br> > to /usr/local/lib/ruby/gems/1.9.1/gems/nokogiri-1.5.0/ext/nokogiri/gem_make.out<br> ><br> > When I try to install psych or yaml I get the same errors listed<br> > above.<br> ><br> > Thank you<br> > --<br> > Ruby Student<br> <br> <br> <br> </div></div></blockquote></div><br><br clear="all"><br>-- <br>Ruby Student<br> </blockquote></div> </div></div></blockquote></div><br><br clear="all"><br>-- <br>Ruby Student<br> --0015175d07bc5d998d04b9a46c07--