"리눅스 rails 설치"의 두 판 사이의 차이

6번째 줄: 6번째 줄:
*[[리눅스 rbenv ruby 설치]] ★
*[[리눅스 rbenv ruby 설치]] ★
:( 또는 [[리눅스 RVM ruby 설치]] )
:( 또는 [[리눅스 RVM ruby 설치]] )
==사용자 계정 생성==
* root 계정으로 rails를 설치하다 보면 "Don't run Bundler as root."라는 메시지가 나온다.<ref>http://stackoverflow.com/questions/27552523/bundle-install-rails-on-ubuntu</ref>
* 권장사항대로 별도의 계정을 만들어 진행한다.
* 여기서는 간단히 railsuser라는 계정을 만들었는데, 다른 계정명을 써도 된다.
<source lang='console'>
root@zetawiki:~# useradd railsuser -m -s /bin/bash
root@zetawiki:~# cat /etc/passwd | grep railsuser
railsuser:x:1000:1000::/home/railsuser:/bin/bash
</source>
<source lang='console'>
root@zetawiki:~# cat /etc/group | grep railsuser
railsuser:x:1000:
</source>
<source lang='console'>
root@zetawiki:~# su - railsuser
railsuser@zetawiki:~$ pwd
/home/railsuser
</source>


==확인==
==확인==

2016년 6월 6일 (월) 14:43 판

rails 설치
레일즈 설치
루비 온 레일즈 설치

1 사전 작업

( 또는 리눅스 RVM ruby 설치 )

2 확인

root@zetawiki:~# rails -v
The program 'rails' can be found in the following packages:
 * ruby-railties-3.2
 * ruby-railties-4.0
Try: apt-get install <selected package>
root@zetawiki:~# gem list | grep rails
root@zetawiki:~#

3 설치

root@zetawiki:~# gem install rails
Fetching: rack-1.6.4.gem (100%)
Successfully installed rack-1.6.4
Fetching: concurrent-ruby-1.0.2.gem (100%)
Successfully installed concurrent-ruby-1.0.2
Fetching: sprockets-3.6.0.gem (100%)
Successfully installed sprockets-3.6.0
Fetching: thread_safe-0.3.5.gem (100%)
Successfully installed thread_safe-0.3.5
Fetching: tzinfo-1.2.2.gem (100%)
Successfully installed tzinfo-1.2.2
Fetching: i18n-0.7.0.gem (100%)
Successfully installed i18n-0.7.0
Fetching: activesupport-4.2.6.gem (100%)
Successfully installed activesupport-4.2.6
Fetching: mini_portile2-2.0.0.gem (100%)
Successfully installed mini_portile2-2.0.0
Fetching: nokogiri-1.6.7.2.gem (100%)
Building native extensions.  This could take a while...
... (생략)
Parsing documentation for sprockets-rails-3.0.0
Installing ri documentation for sprockets-rails-3.0.0
Parsing documentation for rails-4.2.5
Installing ri documentation for rails-4.2.5
Done installing documentation for i18n, thread_safe, tzinfo, activesupport, builder, erubis, mini_portile2, nokogiri, rails-deprecated_sanitizer, rails-dom-testing, loofah, rails-html-sanitizer, actionview, rack, rack-test, actionpack, globalid, activejob, mime-types, mail, actionmailer, activemodel, arel, activerecord, thor, railties, concurrent-ruby, sprockets, sprockets-rails, rails after 842 seconds
30 gems installed

4 확인 2

railsuser@zetawiki:~$ rails -v
Rails 4.2.5
railsuser@zetawiki:~$ gem list | grep rails
rails (4.2.5)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.7)
rails-html-sanitizer (1.0.2)
sprockets-rails (3.0.0)

5 후속 작업

6 같이 보기

7 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}