<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Vivir y Aprender Web &#187; Instalación</title>
	<atom:link href="https://viviryaprenderweb.com/category/instalacion/feed/" rel="self" type="application/rss+xml" />
	<link>https://viviryaprenderweb.com</link>
	<description>Desarrollo web, recursos y tutoriales sobre xhtml, css, javascript, jquery, php, ruby on rails, seo y diseño web</description>
	<lastBuildDate>Wed, 20 Apr 2016 06:22:22 +0000</lastBuildDate>
	<language>es-ES</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.41</generator>
	<item>
		<title>Cómo instalar Ruby en Ubuntu 12.04, 14.04</title>
		<link>https://viviryaprenderweb.com/como-instalar-ruby-en-ubuntu/</link>
		<comments>https://viviryaprenderweb.com/como-instalar-ruby-en-ubuntu/#comments</comments>
		<pubDate>Sat, 23 Aug 2014 09:18:25 +0000</pubDate>
		<dc:creator><![CDATA[Ramón Torres]]></dc:creator>
				<category><![CDATA[Instalación]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://viviryaprenderweb.com/?p=380</guid>
		<description><![CDATA[<p>En este post te enseñaremos cómo instalar Ruby en Ubuntu 12.04 y 14.04, con Ruby Version Manager (RVM), veremos cuales son los requerimientos y los beneficios de instalar Ruby con RVM. Los requerimientos previos o pre-requisitos para instalar Ruby con RVM son las siguientes herramientas (GNU Tools): bash (&#62;= 3.2.25) awk sed grep which ls [&#8230;]</p>
<p>La entrada <a rel="nofollow" href="https://viviryaprenderweb.com/como-instalar-ruby-en-ubuntu/">Cómo instalar Ruby en Ubuntu 12.04, 14.04</a> aparece primero en <a rel="nofollow" href="https://viviryaprenderweb.com">Vivir y Aprender Web</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>En este post te enseñaremos cómo instalar Ruby en Ubuntu 12.04 y 14.04, con <a title="Enlace a Ruby Version Manager sitio oficial" href="http://rvm.io/">Ruby Version Manager (RVM)</a>, veremos cuales son los requerimientos y los beneficios de instalar Ruby con RVM.<br />
<span id="more-380"></span><br />
Los requerimientos previos o pre-requisitos para instalar Ruby con RVM son las siguientes herramientas (<a title="Enlace a descripción de GNU" href="http://es.wikipedia.org/wiki/GNU" target="_blank">GNU</a> Tools):</p>
<ul>
<li>bash (&gt;= 3.2.25)</li>
<li>awk</li>
<li>sed</li>
<li>grep</li>
<li>which</li>
<li>ls</li>
<li>cp</li>
<li>tar</li>
<li>gunzip</li>
<li>bunzip2</li>
<li>curl</li>
<li>git</li>
<li>subversion</li>
</ul>
<p>Normalmente la mayoría de estas herramientas ya vienen instaladas por defecto, excepto las últimas 3: Curl, Git, Subversion.</p>
<p>Por lo tanto vamos ha instalarlas:</p>
<blockquote><p>Recomendación: antes de instalar estas herramientas te aconsejamos ejecutar: <strong>sudo apt-get update &amp;&amp; sudo apt-get upgrade</strong> en la terminal para estar seguros que nuestra paquetería esta actualizada y funcionando correctamente.</p></blockquote>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> curl git-core subversion</pre></td></tr></table></div>

<p>Luego una forma rápida que podemos utilizar para revisar si tenemos todas estas herramientas instaladas es por el siguiente bash script, copia nuevamente y pega en el terminal:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">for</span> name <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #c20cb9; font-weight: bold;">bash</span>,<span style="color: #c20cb9; font-weight: bold;">awk</span>,<span style="color: #c20cb9; font-weight: bold;">sed</span>,<span style="color: #c20cb9; font-weight: bold;">grep</span>,<span style="color: #c20cb9; font-weight: bold;">ls</span>,<span style="color: #c20cb9; font-weight: bold;">cp</span>,<span style="color: #c20cb9; font-weight: bold;">tar</span>,curl,<span style="color: #c20cb9; font-weight: bold;">gunzip</span>,<span style="color: #c20cb9; font-weight: bold;">bunzip2</span>,<span style="color: #c20cb9; font-weight: bold;">git</span>,<span style="color: #c20cb9; font-weight: bold;">svn</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> ; <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #c20cb9; font-weight: bold;">which</span> <span style="color: #007800;">$name</span> ; <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$?</span> <span style="color: #660033;">-eq</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;OK&quot;</span> ; <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;NO tenemos: <span style="color: #007800;">$name</span>&quot;</span> ; <span style="color: #000000; font-weight: bold;">fi</span> ; <span style="color: #000000; font-weight: bold;">done</span>;</pre></td></tr></table></div>

<p>Si todo da un «OK» podemos seguir adelante, todo lo contrario si vemos que nos hace falta algo tenemos que revisar e instalar lo que nos haga falta.</p>
<h2>Ahora sí, ha instalar Ruby <img src="https://viviryaprenderweb.com/wp-includes/images/smilies/icon_biggrin.gif" alt=":D" class="wp-smiley" /></h2>
<h3>1er Paso:</h3>
<p>Vamos a nuestro terminal y ejecutamos la siguiente línea:</p>
<pre>\curl -sSL https://get.rvm.io | bash -s stable</pre>
<p>Pare revisar que hemos instalado correctamente RVM vamos a ejecutar el siguiente comando:</p>
<pre>rvm list known</pre>
<p>Por si el comando anterior ha fallado, te recomiendo que hagas lo siguiente: puedes cerrar y volver ha abrir la consola o también puedes ejecutar el siguiente comando:</p>
<pre>source /home/ramon/.rvm/scripts/rvm</pre>
<blockquote><p>Mucho ojo que /home/<strong>ramon</strong>/ corresponde al directorio home de mi usuario en el sistema esto será diferente en tu caso así que hay tener cuidado.</p></blockquote>
<h3>2do Paso</h3>
<p>Ahora que ya tenemos disponible nuestro comando «rvm» vamos ha instalar Ruby 2.1.1 (versión) de la siguiente manera:</p>
<pre>rvm install 2.1.1</pre>
<p>(Esto puede tardar unos minutos)</p>
<p>Cuando termine la instalación de Ruby 2.1.1, vamos a ejecutar el siguiente comando para comprobar que se ha instalado correctamente:</p>
<pre>rvm list</pre>
<p>Veremos una lista con nuestra versión de Ruby.</p>
<h3>3er Paso</h3>
<p>Para decirle a nuestra terminal con que versión de Ruby queremos trabajar simplemente ejecutamos el siguiente comando:</p>
<pre>rvm use 2.1.1</pre>
<p>luego:</p>
<pre>ruby -v</pre>
<p>Y listo ahora ya tenemos nuestra instalación de Ruby funcionando correctamente con Ruby Version Manager (RVM).</p>
<p>Ahora si queremos que siempre nos cargue por default una versión de Ruby en específico podemos hacer lo siguiente:</p>
<pre>rvm use 2.1.1 --default</pre>
<p>Ademas quiero acompañar esta guía con un vídeo, en el cual hemos seguido estos pasos y podrás ver con exactitud la salida de cada uno de estos comandos y una breve explicación, espero sea de tu agrado:</p>
<p><iframe width="420" height="315" src="//www.youtube.com/embed/C-DZiQrN8e0" frameborder="0" allowfullscreen></iframe></p>
<h2>Beneficios de instalar Ruby con Ruby Version Manager (RVM)</h2>
<p>Si luego necesitamos trabajar con otra versión de Ruby solo seguimos del Paso 2 en adelante, sin necesidad de desinstalar la versión que ya tenemos.</p>
<p>Podemos tener varias versiones de Ruby sin conflicto alguno, esto a la vez nos permite crear <a title="Información de gemset" href="http://rvm.io/gemsets/basics" target="_blank">gemsets</a> con diferentes gemas.</p>
<p>Estos conceptos de gemset y gemas los explicáremos con mas detalles en un próximo post, también veremos algunas opciones avanzadas de rvm y algunos otros script que te ayudaran aun un poco mas.</p>
<p>Espero este post haya sido de tu agrado y de gran ayuda, que tengas un buen día.</p>
<p>&nbsp;</p>
<p>La entrada <a rel="nofollow" href="https://viviryaprenderweb.com/como-instalar-ruby-en-ubuntu/">Cómo instalar Ruby en Ubuntu 12.04, 14.04</a> aparece primero en <a rel="nofollow" href="https://viviryaprenderweb.com">Vivir y Aprender Web</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://viviryaprenderweb.com/como-instalar-ruby-en-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
