如何在Ubuntu下部署Ruby环境

系统部署
2014-03-22 09:39

部署软件包

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
    #!/bin/bash
    
    # Adjust time
    dpkg-reconfigure tzdata
    apt-get -y install ntpdate
    ntpdate cn.pool.ntp.org
    
    # Speed up apt-get
    add-apt-repository ppa:ferramroberto/lffl
    apt-get update
    apt-get -y install apt-fast aria2
    echo "alias apt-get='apt-fast'" >> ~/.bashrc
    
    # Install git curl nodejs
    apt-fast -y install curl git-core nodejs
    
    # Install mysql
    apt-get -y install imagemagick
    
    # Install patch
    apt-fast -y install libmagickwand-dev libmysqlclient-dev libsqlite3-dev libgtkmm-2.4 libnotify-dev
    apt-fast -y install zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev
    apt-fast -y install libxslt1-dev libcurl4-openssl-dev python-software-properties
    apt-fast -y install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
    apt-fast -y install libpq-dev

部署RVM

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
    #!/bin/bash --login
    
    apt-fast update
    apt-fast -y install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 
    apt-fast -y install libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties
    apt-fast -y install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
    command curl -sSL https://rvm.io/mpapis.asc | sudo gpg --import -
    curl -L https://get.rvm.io | bash -s stable
    echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc
    source /etc/profile.d/rvm.sh
    rvm get stable
    rvm list known
    rvm install 2.1.4
    rvm use --default 2.1.4
    ruby -v

    rvmsudo gem install rubygems-update
    rvmsudo gem update --system

    gem install bundle
加载 Disqus 评论

© 版权所有 悟理 2013-2019
Powered By Jekyll & Semantic UI

如何在Ubuntu下部署Ruby环境

系统部署
2014-03-22 09:39

部署软件包

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
    #!/bin/bash
    
    # Adjust time
    dpkg-reconfigure tzdata
    apt-get -y install ntpdate
    ntpdate cn.pool.ntp.org
    
    # Speed up apt-get
    add-apt-repository ppa:ferramroberto/lffl
    apt-get update
    apt-get -y install apt-fast aria2
    echo "alias apt-get='apt-fast'" >> ~/.bashrc
    
    # Install git curl nodejs
    apt-fast -y install curl git-core nodejs
    
    # Install mysql
    apt-get -y install imagemagick
    
    # Install patch
    apt-fast -y install libmagickwand-dev libmysqlclient-dev libsqlite3-dev libgtkmm-2.4 libnotify-dev
    apt-fast -y install zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev
    apt-fast -y install libxslt1-dev libcurl4-openssl-dev python-software-properties
    apt-fast -y install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
    apt-fast -y install libpq-dev

部署RVM

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
    #!/bin/bash --login
    
    apt-fast update
    apt-fast -y install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 
    apt-fast -y install libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties
    apt-fast -y install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
    command curl -sSL https://rvm.io/mpapis.asc | sudo gpg --import -
    curl -L https://get.rvm.io | bash -s stable
    echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc
    source /etc/profile.d/rvm.sh
    rvm get stable
    rvm list known
    rvm install 2.1.4
    rvm use --default 2.1.4
    ruby -v

    rvmsudo gem install rubygems-update
    rvmsudo gem update --system

    gem install bundle
加载 Disqus 评论

© 版权所有 悟理 2013-2019
Powered By Jekyll & Semantic UI

如何在Ubuntu下部署Ruby环境

系统部署
2014-03-22 09:39

部署软件包

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
    #!/bin/bash
    
    # Adjust time
    dpkg-reconfigure tzdata
    apt-get -y install ntpdate
    ntpdate cn.pool.ntp.org
    
    # Speed up apt-get
    add-apt-repository ppa:ferramroberto/lffl
    apt-get update
    apt-get -y install apt-fast aria2
    echo "alias apt-get='apt-fast'" >> ~/.bashrc
    
    # Install git curl nodejs
    apt-fast -y install curl git-core nodejs
    
    # Install mysql
    apt-get -y install imagemagick
    
    # Install patch
    apt-fast -y install libmagickwand-dev libmysqlclient-dev libsqlite3-dev libgtkmm-2.4 libnotify-dev
    apt-fast -y install zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev
    apt-fast -y install libxslt1-dev libcurl4-openssl-dev python-software-properties
    apt-fast -y install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
    apt-fast -y install libpq-dev

部署RVM

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
    #!/bin/bash --login
    
    apt-fast update
    apt-fast -y install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 
    apt-fast -y install libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties
    apt-fast -y install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
    command curl -sSL https://rvm.io/mpapis.asc | sudo gpg --import -
    curl -L https://get.rvm.io | bash -s stable
    echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc
    source /etc/profile.d/rvm.sh
    rvm get stable
    rvm list known
    rvm install 2.1.4
    rvm use --default 2.1.4
    ruby -v

    rvmsudo gem install rubygems-update
    rvmsudo gem update --system

    gem install bundle
加载 Disqus 评论

© 版权所有 悟理 2013-2019
Powered By Jekyll & Semantic UI