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 trialThomas Moore
5,301 PointsJekyll New Command
When I'm in the terminal and type "jekyll new project" nothing is created. The terminal replies with: /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require': iconv will be deprecated in the future, use String#encode instead.
WARNING: Could not read configuration. Using defaults (and options).
No such file or directory - new/_config.yml
Building site: new -> project
/usr/lib/ruby/vendor_ruby/jekyll/site.rb:126:in
chdir': No such file or directory - /home/tybogey/new/ (Errno::ENOENT)
from /usr/lib/ruby/vendor_ruby/jekyll/site.rb:126:in read_directories'
from /usr/lib/ruby/vendor_ruby/jekyll/site.rb:98:in
read'
from /usr/lib/ruby/vendor_ruby/jekyll/site.rb:38:in process'
from /usr/bin/jekyll:250:in
<main>'
I'm running Linux on Ubuntu and both Ruby and Jekyll are on there newest versions. Thanks in advance!
1 Answer
Francisco Ruiz
14,213 PointsHi Thomas - From what I can find you may need to be on Ruby 2.0.0 (if i am reading the error right it looks like you are on 1.9.1) I have 2.1.5 and the jekyll new project
works fine. From the Jekyll troubleshooting page
If you encounter errors during gem installation, you may need to install the header files for compiling extension modules for Ruby 2.0.0. This can be done on Ubuntu or Debian by running:
sudo apt-get install ruby2.0.0-dev
Hope that helps :)
Thomas Moore
5,301 PointsThomas Moore
5,301 PointsYou were correct about me being on 1.9.1, but that command didn't update ruby for me. After some digging I managed to update it. When I run the jekyll new command now it's returning: /usr/local/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
require': cannot load such file -- jekyll (LoadError) from /usr/local/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
require' from /usr/bin/jekyll:20:in `<main>'This terminal stuff is frustrating ha. Appreciate the help!