您的位置:首页 > 大数据 > 人工智能

rails 安装在mac 2015-09-12

2015-09-13 18:09 411 查看
在mac 上安装 rails 步骤实例
环境:安装oh-my-zsh

gem install rails

然后缺少的文件一个个的装上去。。。

HelloSam bundle
install

Fetching gem metadata from https://rubygems.org/............
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies....

Using rake 10.4.2

Using i18n 0.7.0

Using json 1.8.3

Using minitest 5.8.0

Using thread_safe 0.3.5

Using tzinfo 1.2.2

Using activesupport 4.2.4

Using builder 3.2.2

Using erubis 2.7.0

Using mini_portile 0.6.2

Using nokogiri 1.6.6.2

Using rails-deprecated_sanitizer 1.0.3

Using rails-dom-testing 1.0.7

Using loofah 2.0.3

Using rails-html-sanitizer 1.0.2

Using actionview 4.2.4

Using rack 1.6.4

Using rack-test 0.6.3

Using actionpack 4.2.4

Using globalid 0.3.6

Using activejob 4.2.4

Using mime-types 2.6.1

Using mail 2.6.3

Using actionmailer 4.2.4

Using activemodel 4.2.4

Using arel 6.0.3

Using activerecord 4.2.4

Using debug_inspector 0.0.2

Using binding_of_caller 0.7.2

Using bundler 1.10.6

Using byebug 6.0.2

Using coffee-script-source 1.9.1.1

Using execjs 2.6.0

Using coffee-script 2.4.1

Using thor 0.19.1

Using railties 4.2.4

Using coffee-rails 4.1.0

Using multi_json 1.11.2

Using jbuilder 2.3.1

Using jquery-rails 4.0.5

Using sprockets 3.3.4

Using sprockets-rails 2.3.3

Using rails 4.2.4

Using rdoc 4.2.0

Using sass 3.4.18

Using tilt 2.0.1

Using sass-rails 5.0.4

Using sdoc 0.4.1

Using spring 1.3.6

Using sqlite3 1.3.10

Using turbolinks 2.5.3

Using uglifier 2.7.2

Using web-console 2.2.1

Bundle complete! 12 Gemfile dependencies, 53 gems now installed.

Use `bundle show [gemname]` to see where a bundled gem is installed.

HelloSam

HelloSam bundle
install

Fetching gem metadata from https://rubygems.org/............
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies....

Using rake 10.4.2

Using i18n 0.7.0

Using json 1.8.3

Using minitest 5.8.0

Using thread_safe 0.3.5

Using tzinfo 1.2.2

Using activesupport 4.2.4

Using builder 3.2.2

Using erubis 2.7.0

Using mini_portile 0.6.2

Using nokogiri 1.6.6.2

Using rails-deprecated_sanitizer 1.0.3

Using rails-dom-testing 1.0.7

Using loofah 2.0.3

Using rails-html-sanitizer 1.0.2

Using actionview 4.2.4

Using rack 1.6.4

Using rack-test 0.6.3

Using actionpack 4.2.4

Using globalid 0.3.6

Using activejob 4.2.4

Using mime-types 2.6.1

Using mail 2.6.3

Using actionmailer 4.2.4

Using activemodel 4.2.4

Using arel 6.0.3

Using activerecord 4.2.4

Using debug_inspector 0.0.2

Using binding_of_caller 0.7.2

Using bundler 1.10.6

Using byebug 6.0.2

Using coffee-script-source 1.9.1.1

Using execjs 2.6.0

Using coffee-script 2.4.1

Using thor 0.19.1

Using railties 4.2.4

Using coffee-rails 4.1.0

Using multi_json 1.11.2

Using jbuilder 2.3.1

Using jquery-rails 4.0.5

Using sprockets 3.3.4

Using sprockets-rails 2.3.3

Using rails 4.2.4

Using rdoc 4.2.0

Using sass 3.4.18

Using tilt 2.0.1

Using sass-rails 5.0.4

Using sdoc 0.4.1

Using spring 1.3.6

Using sqlite3 1.3.10

Using turbolinks 2.5.3

Using uglifier 2.7.2

Using web-console 2.2.1

Bundle complete! 12 Gemfile dependencies, 53 gems now installed.

Use `bundle show [gemname]` to see where a bundled gem is installed.

HelloSam

建立HelloSam页面

rb rails new HelloSam

exist

identical README.rdoc

identical Rakefile

identical config.ru

identical .gitignore

identical Gemfile

exist app

identical app/assets/javascripts/application.js

identical app/assets/stylesheets/application.css

identical app/controllers/application_controller.rb

identical app/helpers/application_helper.rb

identical app/views/layouts/application.html.erb

identical app/assets/images/.keep

identical app/mailers/.keep

identical app/models/.keep

identical app/controllers/concerns/.keep

identical app/models/concerns/.keep

exist bin

identical bin/bundle

identical bin/rails

identical bin/rake

identical bin/setup

exist config

identical config/routes.rb

identical config/application.rb

identical config/environment.rb

conflict config/secrets.yml

Overwrite /Users/sam/Desktop/rb/HelloSam/config/secrets.yml? (enter "h" for help) [Ynaqdh] y

force config/secrets.yml

exist config/environments

identical config/environments/development.rb

identical config/environments/production.rb

identical config/environments/test.rb

exist config/initializers

identical config/initializers/assets.rb

identical config/initializers/backtrace_silencers.rb

identical config/initializers/cookies_serializer.rb

identical config/initializers/filter_parameter_logging.rb

identical config/initializers/inflections.rb

identical config/initializers/mime_types.rb

identical config/initializers/session_store.rb

identical config/initializers/wrap_parameters.rb

exist config/locales

identical config/locales/en.yml

identical config/boot.rb

identical config/database.yml

exist db

identical db/seeds.rb

exist lib

exist lib/tasks

identical lib/tasks/.keep

exist lib/assets

identical lib/assets/.keep

exist log

identical log/.keep

exist public

identical public/404.html

identical public/422.html

identical public/500.html

identical public/favicon.ico

identical public/robots.txt

exist test/fixtures

identical test/fixtures/.keep

exist test/controllers

identical test/controllers/.keep

exist test/mailers

identical test/mailers/.keep

exist test/models

identical test/models/.keep

exist test/helpers

identical test/helpers/.keep

exist test/integration

identical test/integration/.keep

identical test/test_helper.rb

exist tmp/cache

exist tmp/cache/assets

exist vendor/assets/javascripts

identical vendor/assets/javascripts/.keep

exist vendor/assets/stylesheets

identical vendor/assets/stylesheets/.keep

run bundle install

yUsing rake 10.4.2

Using i18n 0.7.0

Using json 1.8.3

Using minitest 5.8.0

Using thread_safe 0.3.5

Using tzinfo 1.2.2

Using activesupport 4.2.4

Using builder 3.2.2

Using erubis 2.7.0

Using mini_portile 0.6.2

Using nokogiri 1.6.6.2

Using rails-deprecated_sanitizer 1.0.3

Using rails-dom-testing 1.0.7

Using loofah 2.0.3

Using rails-html-sanitizer 1.0.2

Using actionview 4.2.4

Using rack 1.6.4

Using rack-test 0.6.3

Using actionpack 4.2.4

Using globalid 0.3.6

Using activejob 4.2.4

Using mime-types 2.6.1

Using mail 2.6.3

Using actionmailer 4.2.4

Using activemodel 4.2.4

Using arel 6.0.3

Using activerecord 4.2.4

Using debug_inspector 0.0.2

Using binding_of_caller 0.7.2

Using byebug 6.0.2

Using coffee-script-source 1.9.1.1

Using execjs 2.6.0

Using coffee-script 2.4.1

Using thor 0.19.1

Using railties 4.2.4

Using coffee-rails 4.1.0

Using multi_json 1.11.2

Using jbuilder 2.3.1

Using jquery-rails 4.0.5

Using bundler 1.10.6

Using sprockets 3.3.4

Using sprockets-rails 2.3.3

Using rails 4.2.4

Using rdoc 4.2.0

Using sass 3.4.18

Using tilt 2.0.1

Using sass-rails 5.0.4

Using sdoc 0.4.1

Using spring 1.3.6

Using sqlite3 1.3.10

Using turbolinks 2.5.3

Using uglifier 2.7.2

Using web-console 2.2.1

Bundle complete! 12 Gemfile dependencies, 53 gems now installed.

Use `bundle show [gemname]` to see where a bundled gem is installed.

run bundle exec spring binstub --all

* bin/rake: spring inserted

* bin/rails: spring inserted

开启WEBrick

HelloSam rails server

=> Booting WEBrick

=> Rails 4.2.4 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options

=> Ctrl-C to shutdown server

[2015-09-12 00:05:47] INFO WEBrick 1.3.1

[2015-09-12 00:05:47] INFO ruby 2.2.3 (2015-08-18) [x86_64-darwin14]

[2015-09-12 00:05:47] INFO WEBrick::HTTPServer#start: pid=29571 port=3000

浏览器敲入: http://localhost:3000
HelloSam bundle
install

Fetching gem metadata from https://rubygems.org/............
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies....

Using rake 10.4.2

Using i18n 0.7.0

Using json 1.8.3

Using minitest 5.8.0

Using thread_safe 0.3.5

Using tzinfo 1.2.2

Using activesupport 4.2.4

Using builder 3.2.2

Using erubis 2.7.0

Using mini_portile 0.6.2

Using nokogiri 1.6.6.2

Using rails-deprecated_sanitizer 1.0.3

Using rails-dom-testing 1.0.7

Using loofah 2.0.3

Using rails-html-sanitizer 1.0.2

Using actionview 4.2.4

Using rack 1.6.4

Using rack-test 0.6.3

Using actionpack 4.2.4

Using globalid 0.3.6

Using activejob 4.2.4

Using mime-types 2.6.1

Using mail 2.6.3

Using actionmailer 4.2.4

Using activemodel 4.2.4

Using arel 6.0.3

Using activerecord 4.2.4

Using debug_inspector 0.0.2

Using binding_of_caller 0.7.2

Using bundler 1.10.6

Using byebug 6.0.2

Using coffee-script-source 1.9.1.1

Using execjs 2.6.0

Using coffee-script 2.4.1

Using thor 0.19.1

Using railties 4.2.4

Using coffee-rails 4.1.0

Using multi_json 1.11.2

Using jbuilder 2.3.1

Using jquery-rails 4.0.5

Using sprockets 3.3.4

Using sprockets-rails 2.3.3

Using rails 4.2.4

Using rdoc 4.2.0

Using sass 3.4.18

Using tilt 2.0.1

Using sass-rails 5.0.4

Using sdoc 0.4.1

Using spring 1.3.6

Using sqlite3 1.3.10

Using turbolinks 2.5.3

Using uglifier 2.7.2

Using web-console 2.2.1

Bundle complete! 12 Gemfile dependencies, 53 gems now installed.

Use `bundle show [gemname]` to see where a bundled gem is installed.

HelloSam
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: