Otras Páginas

Expandir Todo

OS X RVM

Paso 1: Abrir Terminal

Busca Terminal.app dentro de Aplicaciones -> Utilidades.

Agrégala a tu dock; la estarás usando mucho. (Para agregarla al dock, haz click y mantén presionado el ícono del dock; una vez que Terminal se abra, selecciona opciones -> mantener en dock.)

Ordena tus ventanas para que Terminal y tu navegador estén uno después del otro. Vas a querer leer de tu navegador y escribir en tu terminal al mismo tiempo.

Paso 2: Instala un Compilador (XCode o GCC)

Paso 3: Instala Homebrew

Type this in the terminal:
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"

Si eso no funciona, visita https://github.com/mxcl/homebrew/wiki/installation y sigue las instrucciones.

Verificar

Type this in the terminal:
brew -v
Approximate expected result:
Homebrew 0.9.4
El texto en gris puede diferir y no importa.

Homebrew usa sudo para preparar tu directorio /usr/local. 'sudo' significa 'super user do' y es una forma de hacer que tu computadora haga todo lo que le pides. Es el tema de una caricatura famosa:

sudo make me a sandwich

Paso 4: Instala Git

Para continuar, instalaremos Git, el sistema de control de versiones más popular en el mundo de Ruby:

Type this in the terminal:
git --version
Approximate expected result:
git version 1.x.x
El texto en gris puede diferir y no importa.

Si ves ese mensaje, tienes Git. Muevéte al siguiente paso.

De otra forma, escribe esto en la terminal:
brew install git

Verificar

Type this in the terminal:
git --version
Approximate expected result:
git version 1.x.x
El texto en gris puede diferir y no importa.

Paso 5: Instala RVM, el organizador de versiones de Ruby

RVM son las siglas de Ruby Version Manager y es la forma mas fácil de instalar y administrar Ruby. Las instrucciones oficiales para la instalación de RVM se encuentran aquí, pero lo siguiente debe funcionar:

Paso 5.1: Instala RVM

Type this in the terminal:
curl -L get.rvm.io | bash -s stable

Esto ejecutará algunas acciones y mostrará un mensaje extenso el cual puedes ignorar.

Paso 5.2: Configura tu shell

Cada vez que abras una nueva terminal, rvm estará activo en ella. Cierra la ventana de la terminal y abre una nueva.

Verificar

Type this in the terminal:
type rvm | head -1
Expected result:
rvm is a function
Type this in the terminal:
rvm -v
Approximate expected result:
rvm 1.x.x (stable) by Wayne E. Seguin (wayneeseguin@gmail.com), Michal Papis <mpapis@gmail.com> [https://rvm.beginrescueend.com/]
El texto en gris puede diferir y no importa.

Paso 6: Configura RVM para usar Homebrew

Type this in the terminal:
rvm autolibs homebrew

Paso 7: Instala Ruby

Type this in the terminal:
rvm install 2.0.0

Las siguientes instrucciones descargan y compilan Ruby, lo cual tomará un momento.

Type this in the terminal:
rvm use 2.0.0
rvm --default use 2.0.0

Verificar

Type this in the terminal:
ruby -v
Approximate expected result:
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin13.0.0]
El texto en gris puede diferir y no importa.

Solución de problemas

Si al ejecutar rvm install 2.0.0 te aparece el mensaje autoreconf was not found in the PATH

Mac OS
Type this in the terminal:
brew install automake
Ubuntu Linux
Type this in the terminal:
sudo apt-get install automake

Una vez hecho eso, ejecuta nuevamente rvm install 2.0.0

Paso 8: Instala Rails

Type this in the terminal:
gem install rails

Verificar

Type this in the terminal:
rails -v
Approximate expected result:
Rails 4.0.x
El texto en gris puede diferir y no importa.

Paso 9: Instala Sublime Text 2

Estaremos usando el editor Sublime Text 2 durante el taller, aunque eres libre de utilizar un editor diferente si lo prefieres. Debe ser un editor de texto plano, como vi o Textmate.

Microsoft Word y otros procesadores de texto, incluyendo TextEdit y Notepad, no funcionarán.

Paso 9.1: Descargar Sublime Text 2

Paso 9.2: Seleccionar "Open with DiskImageMounter" en el cuadro de diálogo

Este debe ser la opción seleccionada por defecto.

Esto abrirá un instalador con un ícono de Sublime Text 2 y una imagen de tu carpeta Aplicaciones. Algo así:

Paso 9.3: Arrastrar Sublime Text 2 en tu carpeta Aplicaciones.

Esto abrirá un instalador con un ícono de Sublime Text 2 y una imagen de tu carpeta Aplicaciones. Arrastra Sublime Text 2 hacia la carpeta Aplicaciones.

Paso 9.4: Desmontar el instalador

arrastrándolo de tu escritorio a la basura

Verificar Instalación exitosa

Type this in the terminal:
git --version
Approximate expected result:
git version 1.x.x
El texto en gris puede diferir y no importa.
Type this in the terminal:
which ruby
Approximate expected result:
/Users/alex/.rvm/rubies/ruby-1.9.3-p290/bin/ruby
El texto en gris puede diferir y no importa.
Type this in the terminal:
which rails
Approximate expected result:
/Users/alex/.rvm/gems/ruby-1.9.3-p290/bin/rails
El texto en gris puede diferir y no importa.

Siguiente Paso:

Regresar a Macintosh%23step2 1