Ruby
Rails
RubyOnRailsTutorial
RubyonRalis

[事象]$ gem install rails が実行できない。。

mac OS X のターミナルにて。

yoooshiii$ gem install rails -v 5.0.3

ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory.

Progate通りにやっているのに、、、エラー。

Qiitaで調べたら出てきた!!

[title]https://qiita.com/NAKKA-K/items/6b5de9459b3c952f5b2e

yoooshiii$sudo gem install rails -v 5.0.3

Password:*********(自分のpcパスワード)





できた!!!!!!

Fetching: concurrent-ruby-1.1.5.gem (100%)

Successfully installed concurrent-ruby-1.1.5
Fetching: thread_safe-0.3.6.gem (100%)
Successfully installed thread_safe-0.3.6
Fetching: tzinfo-1.2.5.gem (100%)
Successfully installed tzinfo-1.2.5
Fetching: i18n-0.9.5.gem (100%)
Successfully installed i18n-0.9.5
Fetching: activesupport-5.0.3.gem (100%)
Successfully installed activesupport-5.0.3
Fetching: mini_portile2-2.4.0.gem (100%)
Successfully installed mini_portile2-2.4.0
Fetching: nokogiri-1.10.3.gem (100%)
Building native extensions. This could take a while...
Successfully installed nokogiri-1.10.3
Fetching: rails-dom-testing-2.0.3.gem (100%)
Successfully installed rails-dom-testing-2.0.3
Fetching: crass-1.0.4.gem (100%)
Successfully installed crass-1.0.4
Fetching: loofah-2.2.3.gem (100%)
Successfully installed loofah-2.2.3
Fetching: rails-html-sanitizer-1.0.4.gem (100%)
Successfully installed rails-html-sanitizer-1.0.4
Fetching: erubis-2.7.0.gem (100%)
Successfully installed erubis-2.7.0
Fetching: builder-3.2.3.gem (100%)
Successfully installed builder-3.2.3
Fetching: actionview-5.0.3.gem (100%)
Successfully installed actionview-5.0.3
Fetching: rack-2.0.7.gem (100%)
Successfully installed rack-2.0.7
Fetching: rack-test-0.6.3.gem (100%)
Successfully installed rack-test-0.6.3
Fetching: actionpack-5.0.3.gem (100%)
Successfully installed actionpack-5.0.3
Fetching: sprockets-3.7.2.gem (100%)
Successfully installed sprockets-3.7.2
Fetching: sprockets-rails-3.2.1.gem (100%)
Successfully installed sprockets-rails-3.2.1
Fetching: bundler-1.17.3.gem (100%)
Successfully installed bundler-1.17.3
Fetching: method_source-0.9.2.gem (100%)
Successfully installed method_source-0.9.2
Fetching: thor-0.20.3.gem (100%)
Successfully installed thor-0.20.3
Fetching: railties-5.0.3.gem (100%)
Successfully installed railties-5.0.3
Fetching: websocket-extensions-0.1.4.gem (100%)
Successfully installed websocket-extensions-0.1.4
Fetching: websocket-driver-0.6.5.gem (100%)
Building native extensions. This could take a while...
Successfully installed websocket-driver-0.6.5
Fetching: nio4r-2.3.1.gem (100%)
Building native extensions. This could take a while...
Successfully installed nio4r-2.3.1
Fetching: actioncable-5.0.3.gem (100%)
Successfully installed actioncable-5.0.3
Fetching: globalid-0.4.2.gem (100%)
Successfully installed globalid-0.4.2
Fetching: activejob-5.0.3.gem (100%)
Successfully installed activejob-5.0.3
Fetching: mini_mime-1.0.1.gem (100%)
Successfully installed mini_mime-1.0.1
Fetching: mail-2.7.1.gem (100%)
Successfully installed mail-2.7.1
Fetching: actionmailer-5.0.3.gem (100%)
Successfully installed actionmailer-5.0.3
Fetching: arel-7.1.4.gem (100%)
Successfully installed arel-7.1.4
Fetching: activemodel-5.0.3.gem (100%)
Successfully installed activemodel-5.0.3
Fetching: activerecord-5.0.3.gem (100%)
Successfully installed activerecord-5.0.3
Fetching: rails-5.0.3.gem (100%)
Successfully installed rails-5.0.3
Parsing documentation for concurrent-ruby-1.1.5
Installing ri documentation for concurrent-ruby-1.1.5
Parsing documentation for thread_safe-0.3.6
Installing ri documentation for thread_safe-0.3.6
Parsing documentation for tzinfo-1.2.5
Installing ri documentation for tzinfo-1.2.5
Parsing documentation for i18n-0.9.5
Installing ri documentation for i18n-0.9.5
Parsing documentation for activesupport-5.0.3
Installing ri documentation for activesupport-5.0.3
Parsing documentation for mini_portile2-2.4.0
Installing ri documentation for mini_portile2-2.4.0
Parsing documentation for nokogiri-1.10.3
Installing ri documentation for nokogiri-1.10.3
Parsing documentation for rails-dom-testing-2.0.3
Installing ri documentation for rails-dom-testing-2.0.3
Parsing documentation for crass-1.0.4
Installing ri documentation for crass-1.0.4
Parsing documentation for loofah-2.2.3
Installing ri documentation for loofah-2.2.3
Parsing documentation for rails-html-sanitizer-1.0.4
Installing ri documentation for rails-html-sanitizer-1.0.4
Parsing documentation for erubis-2.7.0
Installing ri documentation for erubis-2.7.0
Parsing documentation for builder-3.2.3
Installing ri documentation for builder-3.2.3
Parsing documentation for actionview-5.0.3
Installing ri documentation for actionview-5.0.3
Parsing documentation for rack-2.0.7
Installing ri documentation for rack-2.0.7
Parsing documentation for rack-test-0.6.3
Installing ri documentation for rack-test-0.6.3
Parsing documentation for actionpack-5.0.3
Installing ri documentation for actionpack-5.0.3
Parsing documentation for sprockets-3.7.2
Installing ri documentation for sprockets-3.7.2
Parsing documentation for sprockets-rails-3.2.1
Installing ri documentation for sprockets-rails-3.2.1
Parsing documentation for bundler-1.17.3
Installing ri documentation for bundler-1.17.3
Parsing documentation for method_source-0.9.2
Installing ri documentation for method_source-0.9.2
Parsing documentation for thor-0.20.3
Installing ri documentation for thor-0.20.3
Parsing documentation for railties-5.0.3
Installing ri documentation for railties-5.0.3
Parsing documentation for websocket-extensions-0.1.4
Installing ri documentation for websocket-extensions-0.1.4
Parsing documentation for websocket-driver-0.6.5
Installing ri documentation for websocket-driver-0.6.5
Parsing documentation for nio4r-2.3.1
Installing ri documentation for nio4r-2.3.1
Parsing documentation for actioncable-5.0.3
Installing ri documentation for actioncable-5.0.3
Parsing documentation for globalid-0.4.2
Installing ri documentation for globalid-0.4.2
Parsing documentation for activejob-5.0.3
Installing ri documentation for activejob-5.0.3
Parsing documentation for mini_mime-1.0.1
Installing ri documentation for mini_mime-1.0.1
Parsing documentation for mail-2.7.1
Installing ri documentation for mail-2.7.1
Parsing documentation for actionmailer-5.0.3
Installing ri documentation for actionmailer-5.0.3
Parsing documentation for arel-7.1.4
Installing ri documentation for arel-7.1.4
Parsing documentation for activemodel-5.0.3
Installing ri documentation for activemodel-5.0.3
Parsing documentation for activerecord-5.0.3
Installing ri documentation for activerecord-5.0.3
Parsing documentation for rails-5.0.3
Installing ri documentation for rails-5.0.3
Done installing documentation for concurrent-ruby, thread_safe, tzinfo, i18n, activesupport, mini_portile2, nokogiri, rails-dom-testing, crass, loofah, rails-html-sanitizer, erubis, builder, actionview, rack, rack-test, actionpack, sprockets, sprockets-rails, bundler, method_source, thor, railties, websocket-extensions, websocket-driver, nio4r, actioncable, globalid, activejob, mini_mime, mail, actionmailer, arel, activemodel, activerecord, rails after 69 seconds
36 gems installed

そして、これからスタートです!。