jekyll 사이트 에 따르면 jekyll 을 사용하여 새 웹 사이트를 만드는 방법입니다.
~ $ gem install jekyll
~ $ jekyll new myblog
~ $ cd myblog
~/myblog $ jekyll serve
gem install jekyll
작동하지 않았다,도했다 sudo gem install jekyll
:
└─>gem install jekyll
ERROR: While executing gem ... (Errno::EACCES)
Permission denied - /var/lib/gems/1.9.1/gems/fast-stemmer-1.0.2/LICENSE
┌─[Sat Jun 08][jon@jon-MacMini:~/Web]
└─>sudo !!
sudo gem install jekyll
Building native extensions. This could take a while...
ERROR: Error installing jekyll:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from extconf.rb:1:in `<main>'
Gem files will remain installed in /var/lib/gems/1.9.1/gems/fast-stemmer-1.0.2 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/fast-stemmer-1.0.2/ext/gem_make.out
나는 또한 여기에 대한 답변을 따르려고했지만 도움이되지 않습니다. sudo apt-get install jekyll
공장. 그럼에도 불구하고 running jekyll new myblog
은이 오류를 반환합니다.
└─>jekyll new myblog
/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 -> myblog
/usr/lib/ruby/vendor_ruby/jekyll/site.rb:126:in `chdir': No such file or directory - /home/jon/Web/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>'
이 문제의 원인을 아는 사람이 있습니까?
sudo apt-get install ruby
.