Configurando ambiente Ruby

Updated . Posted . Visible to the public.

Para Ubuntu:

Instalando dependências necessárias

sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties

Instalando RVM Show archive.org snapshot

curl -sSL https://get.rvm.io | bash

Instalando Ruby Show archive.org snapshot

rvm install ruby
rvm use --default ruby-2.1.3

Instalando Bundler

gem install bundler

Para Rhel 5:

Adicionar repositório http://mirror.centos.org/ (muito bom, contém praticamente todos os pacotes necessários)

  • Criar arquivo /etc/yum.repos.d/centos.repo com o conteúdo:
     [centos]
     name=Foo for RHEL/ CentOS $releasever - $basearch
     baseurl=http://mirror.centos.org/centos/5/os/x86_64/
     enabled=1
     gpgcheck=0

Instalando dependências necessárias
sudo yum install gcc gcc-c++ make automake zlib-devel libjpeg-devel giflib-devel freetype-devel bison openssl-devel git readline-devel autoconf python

Adicionar repositório http://rbel.frameos.org/

  • Criar arquivo /etc/yum.repos.d/rbel_frameos.repo com o conteúdo:
    [rbel5]
    name = RBEL 5 Repo
    baseurl = http://rbel.frameos.org/stable/el5/$basearch
    gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-RBEL
    gpgcheck = 1
    enabled = 0

    [rbel5-testing]
    name = RBEL 5 Testing Repo
    baseurl = http://rbel.frameos.org/testing/el5/$basearch
    gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-RBEL
    gpgcheck = 1
    enabled = 0

Instalar com yum (Pode ser necessário adicionar ao PATH e criar link simbólico para usar como ruby ao invés de ruby19)
sudo yum install ruby19

Instalar bundler
sudo gem install bundle

Halisson
Last edit
Posted by Halisson to ZeroGlosa (2014-06-18 20:48)