Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Ruby installation missing psych? (For YAML output) Someone tell me what this means and how to fix?

/Users/DavidRyan/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.6/lib/bundler/shared_helpers.rb:78: warning: Insecure world writable dir /usr/local in PATH, mode 040777 /Users/DavidRyan/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.6/lib/bundler/shared_helpers.rb:78: warning: Insecure world writable dir /usr/local in PATH, mode 040777

  • bin/rake: spring already present
  • bin/rails: spring inserted Davids-MacBook-Pro:~ DavidRyan$ clear

Davids-MacBook-Pro:~ DavidRyan$ cd testapp Davids-MacBook-Pro:testapp DavidRyan$ bin/rails server /Users/DavidRyan/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.6/lib/bundler/shared_helpers.rb:78: warning: Insecure world writable dir /usr/local in PATH, mode 040777 /Users/DavidRyan/.rbenv/versions/2.2.2/lib/ruby/2.2.0/yaml.rb:4:in `<top (required)>': It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby. bin/rails:6: warning: already initialized constant APP_PATH /Users/DavidRyan/testapp/bin/rails:6: warning: previous definition of APP_PATH was here Usage: rails COMMAND [ARGS]

The most common rails commands are: generate Generate new code (short-cut alias: "g") console Start the Rails console (short-cut alias: "c") server Start the Rails server (short-cut alias: "s") dbconsole Start a console for the database specified in config/database.yml (short-cut alias: "db") new Create a new Rails application. "rails new my_app" creates a new application called MyApp in "./my_app"

In addition to those, there are: destroy Undo code generated with "generate" (short-cut alias: "d") plugin new Generates skeleton for developing a Rails plugin runner Run a piece of code in the application environment (short-cut alias: "r") Jason Seifer

4 Answers

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

David Ryan I'm not sure we have enough information here to debug this. Try uninstalling homebrew and follow along with the Workshop again and let's see if that works.

Thanks Jason Seifer I will try that and let you know

This link looks like it contains some useful info for you.

Steve.

Adrian Randall
Adrian Randall
4,807 Points

Have you tried:

sudo apt-get install libyaml

Or if you use brew

brew install libyaml

I think I installed brew awhile back before I became a treehouse member and I think I also installed a bunch of the wrong stuff which is causing issuse. Should I reinstall brew, ruby and RoR if the above doesn't work?