zoukankan      html  css  js  c++  java
  • centos ruby 2.1.1安装配置

    1. 下载

      https://www.ruby-lang.org/en/

    2. 安装

      tar zxvf ruby-2.1.1.gz

      cd ruby-2.1.1

      ./configure --prefix=/usr/local/ruby-2.1.1

      make && make install

      修改环境变量

      vim ~/.bash_profile

    修改追加  PATH=......:/usr/local/ruby-2.1.1/bin

      

      执行是配置生效:. .bash_profile

    3. 安装rails

       /usr/local/ruby-2.1.1/bin/gem install rails

    4. 安装nodejs && sqlite-devel

      http://nodejs.org/download/

      tar zxvf nodejs-0.10.26-linux-x86.gz

      ./configure --prefix=/usr/local/nodejs

      make -j2 && make install

      配置path

      #vim /etc/profile

      #PATH追加/usr/local/nodejs/bin 

      #source /etc/profile //刷新配置

      # yum install sqlite-devel

    5. helloworld

      # cd /data1/app/

      # rails new helloworld

      

      # cd helloworld && bundle install

      #rails s  

  • 相关阅读:
    第十二周作业
    第十一周作业
    第十周作业
    第九周作业*
    #**第八周作业+预习作业**
    第七周作业
    Linux 日志查看常用命令
    Linux tar命令
    Java 数组
    设计模式 观察者模式(Observer)
  • 原文地址:https://www.cnblogs.com/the-moving-ear/p/3601180.html
Copyright © 2011-2022 走看看