티스토리 뷰
Ubuntu 에서 Ruby & Rails 설치하기
1. RVM 설치
$ curl -sSL https://get.rvm.io | bash -s stable2. RVM 실행
$ rvm get stable3. Ruby 설치에 필요한 패키지들 설치
$ rvm requirements("Command not found" 에러시)
$ source ~/.rvm/scripts/rvm
4. 패키지 management 설치
$ apt-get install libyaml-dev5. RVM의 OpenSSL 환경변수 등록
$ rvm install 2.0.0 --with-openssl-dir=$HOME/.rvm/usr
6. Rails 애플리케이션을 실행하기 위한 필요한 Gemset 설정
rvm use 2.0.0@railstutorial_rails_4_0 --create --default
7. RubyGems 설치 확인
$ which gem /Users/mhartl/.rvm/rubies/ruby-2.0.0-p0/bin/gem
8. RubyGems 사용버전 설정
$ gem update --system 2.1.99. 불필요한 문서 미다운을 위한 .gemrc 파일 수정 (사용하는 에디터로 열기)
$ subl ~/.gemrc아래 내용 작성 및 저장
install: --no-rdoc --no-ri update: --no-rdoc --no-ri
10. Rails 설치
$ gem install rails --version 4.0.811. 필요 패키지 설치
$ sudo apt-get install libxslt-dev libxml2-dev libsqlite3-dev node.js12. Rails 새로운 프로젝트 생성 or 기존 프로젝트 사용
'Ruby&Rails > Rails' 카테고리의 다른 글
| [Rails] CRUD의 Create & Update & Delete 문법 (0) | 2015.06.24 |
|---|---|
| [Rails] 외부 fonts 경로 및 사용법 (0) | 2015.01.28 |
| [Rails] 이전 url로 redirect 하기 (1) | 2014.08.21 |
| [Rails] 파일/이미지 업로드 paperclip (0) | 2014.08.18 |
| [Rails] Active record - rake db 종류 (0) | 2014.08.16 |
댓글
Copyright ⓒ 2018 moneystory.blog. All rights reserved.
