Today i installed Jekyll on my mac.
Everything have gone fine, i've done it this way:
Install RVM -> Install Ruby through RVM -> Install Jekyll without problems
But now when i try to run my build, it deploys fine but then reports an error. I've included everything i do in the terminal here:
Mortens-MacBook-Pro:~ mortenpradsgaard$ cd /Users/mortenpradsgaard/Documents/GitHub
Mortens-MacBook-Pro:GitHub mortenpradsgaard$ cd sostdk
Mortens-MacBook-Pro:sostdk mortenpradsgaard$ jekyll serve
Configuration file: /Users/mortenpradsgaard/Documents/GitHub/sostdk/_config.yml
Source: /Users/mortenpradsgaard/Documents/GitHub/sostdk
Destination: /Users/mortenpradsgaard/Documents/GitHub/sostdk/_site
Incremental build: disabled. Enable with --incremental
Generating...
done in 0.134 seconds.
Auto-regeneration: enabled for '/Users/mortenpradsgaard/Documents/GitHub/sostdk'
Server address: http://127.0.0.1:4000/sostdk//
Server running... press ctrl-c to stop.
E, [2017-06-29T14:06:16.311105 #5384] ERROR -- : fsevent: running worker failed: wrong number of arguments (2 for 1):/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/adapter/base.rb:41:in `block (2 levels) in configure'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/rb-fsevent-0.10.1/lib/rb-fsevent/fsevent.rb:75:in `call'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/rb-fsevent-0.10.1/lib/rb-fsevent/fsevent.rb:75:in `run'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:68:in `_run_worker'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:52:in `_run'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/adapter/base.rb:78:in `block in start'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/internals/thread_pool.rb:6:in `call'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/internals/thread_pool.rb:6:in `block in add' called from: /Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:67:in `_run_worker'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:52:in `_run'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/adapter/base.rb:78:in `block in start'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/internals/thread_pool.rb:6:in `call'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/internals/thread_pool.rb:6:in `block in add'
We were facing the same issue in our jekyll build. It turns out this was an issue with the rb-fsevent gem that should now be resolved as of 0.10.2.
For posterity and future searches, specifying version 0.9.8 in our Gemfile kept us in good shape until the rb-fsevent fix landed:
Gemfile
gem "rb-fsevent", "0.9.8"
Hat tip to https://github.com/guard/listen/issues/431 for the detective work.
Is this the repository in question? https://github.com/sostdk/sostdk/
In your _config.yml, you have the baseurl duplicating part of the siteurl:
siteurl: https://sostdk.github.io/sostdk/
baseurl: /sostdk/
It might fix your error if you change siteurl to https://sostdk.github.io/sostdk and baseurl to /.
You might want to change your repository name from sostdk to sostdk.github.io. This would enable you to leave off the /sostdk part leaving it just as https://sostdk.github.io.
Related
I am trying to run my jekyll site using jekyll serve but it fails. Below is a list of variations of the command I have tried:
bundle exec jekyll serve --port $PORT --host 0.0.0.0
bundle exec jekyll serve
jekyll serve --port $PORT --host 0.0.0.0
jekyll serve
For all of the above commands it fails and gives me the following error message on my heroku app:
jekyll 3.7.0 | Error: File exists # syserr_fail2_in - /app/_site/bin/erb
Please can you help. My problem is a little different from this post:
link
I have tried the following versions of ruby:
2.1.9
2.2.9
2.3.5
2.4.3
See my config below:
config.ru
require 'rack/jekyll'
run Rack::Jekyll.new
Rakefile
namespace :assets do
task :precompile do
sh 'bundle exec jekyll build'
end
end
Procfile
web: bundle exec jekyll serve --port $PORT --host 0.0.0.0
Gemfile
source 'https://rubygems.org'
gemspec
ruby '2.4.3'
gem 'jekyll'
gem 'rack-jekyll'
gem 'rake'
_config.yml
title: title
description: description
google_analytics:
theme: jekyll-theme-dinky
jekyll_auth:
ssl: true
gems: ['kramdown']
exclude: ['config.ru', 'Gemfile', 'Gemfile.lock', 'vendor', 'Procfile',
'Rakefile']
I am running my site locally with the same version of ruby, rubygems, bunlder and jekyll without this issue.
If I run this using puma it works but then my permanlinks dont work. I want to run this using jekyll serve
Please can someone help.
Herewith the output for jekyll serve --trace:
/app/vendor/ruby-2.2.9/lib/ruby/2.2.0/fileutils.rb:1371:in `symlink': File exists # sys_fail2 - /app/_site/bin/erb (Errno::EEXIST)
from /app/vendor/ruby-2.2.9/lib/ruby/2.2.0/fileutils.rb:1371:in `copy'
from /app/vendor/ruby-2.2.9/lib/ruby/2.2.0/fileutils.rb:472:in `block in copy_entry'
from /app/vendor/ruby-2.2.9/lib/ruby/2.2.0/fileutils.rb:1498:in `call'
from /app/vendor/ruby-2.2.9/lib/ruby/2.2.0/fileutils.rb:1498:in `wrap_traverse'
from /app/vendor/ruby-2.2.9/lib/ruby/2.2.0/fileutils.rb:469:in `copy_entry'
from /app/vendor/bundle/ruby/2.2.0/gems/jekyll-3.7.0/lib/jekyll/static_file.rb:154:in `copy_file'
from /app/vendor/bundle/ruby/2.2.0/gems/jekyll-3.7.0/lib/jekyll/static_file.rb:100:in `write'
from /app/vendor/bundle/ruby/2.2.0/gems/jekyll-3.7.0/lib/jekyll/site.rb:208:in `block in write'
from /app/vendor/bundle/ruby/2.2.0/gems/jekyll-3.7.0/lib/jekyll/site.rb:329:in `block (2 levels) in each_site_file'
from /app/vendor/bundle/ruby/2.2.0/gems/jekyll-3.7.0/lib/jekyll/site.rb:328:in `each'
from /app/vendor/bundle/ruby/2.2.0/gems/jekyll-3.7.0/lib/jekyll/site.rb:328:in `block in each_site_file'
from /app/vendor/bundle/ruby/2.2.0/gems/jekyll-3.7.0/lib/jekyll/site.rb:327:in `each'
from /app/vendor/bundle/ruby/2.2.0/gems/jekyll-3.7.0/lib/jekyll/site.rb:327:in `each_site_file'
from /app/vendor/bundle/ruby/2.2.0/gems/jekyll-3.7.0/lib/jekyll/site.rb:207:in `write'
from /app/vendor/bundle/ruby/2.2.0/gems/jekyll-3.7.0/lib/jekyll/site.rb:75:in `process'
from /app/vendor/bundle/ruby/2.2.0/gems/jekyll-3.7.0/lib/jekyll/command.rb:28:in `process_site'
from /app/vendor/bundle/ruby/2.2.0/gems/jekyll-3.7.0/lib/jekyll/commands/build.rb:65:in `build'
from /app/vendor/bundle/ruby/2.2.0/gems/jekyll-3.7.0/lib/jekyll/commands/build.rb:36:in `process'
from /app/vendor/bundle/ruby/2.2.0/gems/jekyll-3.7.0/lib/jekyll/commands/serve.rb:93:in `block in start'
from /app/vendor/bundle/ruby/2.2.0/gems/jekyll-3.7.0/lib/jekyll/commands/serve.rb:93:in `each'
from /app/vendor/bundle/ruby/2.2.0/gems/jekyll-3.7.0/lib/jekyll/commands/serve.rb:93:in `start'
from /app/vendor/bundle/ruby/2.2.0/gems/jekyll-3.7.0/lib/jekyll/commands/serve.rb:75:in `block (2 levels) in init_with_program'
from /app/vendor/bundle/ruby/2.2.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `call'
from /app/vendor/bundle/ruby/2.2.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
from /app/vendor/bundle/ruby/2.2.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
from /app/vendor/bundle/ruby/2.2.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
from /app/vendor/bundle/ruby/2.2.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
from /app/vendor/bundle/ruby/2.2.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
from /app/vendor/bundle/ruby/2.2.0/gems/jekyll-3.7.0/exe/jekyll:15:in `<top (required)>'
from /app/vendor/bundle/bin/jekyll:17:in `load'
from /app/vendor/bundle/bin/jekyll:17:in `<main>'
The error seems to be because of a symlinked static_file that is attempting to write to _site/bin/erb after a _site/bin/erb has already been written..
Wonder why it doesn't causes similar error while building locally..
The app/bin has no role in a static website.. so you can tell Jekyll to ignore that directory by adding it to your exclude: array..
After trying a dozen or so things, I took a flyer on downgrading Jekyll to an earlier version. Voila! Sorry - I haven't done any root cause analysis or made an attempt to get it working with the current version.
Jekyll entry in my Gemfile:
gem 'jekyll', '3.0.0'
I just recently did a bunch of upgrading on my jekyll site to get a plugin to install and now when I got to build I get this:
`jekyll 3.4.3 | Error: undefined method `gsub' for 25:Integer`
The full stack is:
Configuration file: /Users/susanjrobertson/Sites/jekyll_site/_config.yml
Source: /Users/susanjrobertson/Sites/jekyll_site
Destination: /Users/susanjrobertson/Sites/jekyll_site/_site
Incremental build: disabled. Enable with --incremental
Generating...
/Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/utils.rb:213:in `slugify': undefined method `gsub' for 25:Integer (NoMethodError)
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/drops/url_drop.rb:22:in `title'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/drops/drop.rb:52:in `public_send'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/drops/drop.rb:52:in `[]'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/url.rb:112:in `block in generate_url_from_drop'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/url.rb:102:in `gsub'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/url.rb:102:in `generate_url_from_drop'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/url.rb:69:in `generate_url'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/url.rb:60:in `generated_url'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/url.rb:40:in `to_s'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/document.rb:200:in `url'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/document.rb:214:in `destination'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/regenerator.rb:176:in `regenerate_document?'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/regenerator.rb:25:in `regenerate?'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/site.rb:451:in `block (2 levels) in render_docs'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/site.rb:450:in `each'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/site.rb:450:in `block in render_docs'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/site.rb:449:in `each'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/site.rb:449:in `render_docs'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/site.rb:190:in `render'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/site.rb:69:in `process'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/command.rb:26:in `process_site'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/commands/build.rb:63:in `build'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/commands/build.rb:34:in `process'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/commands/build.rb:16:in `block (2 levels) in init_with_program'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/exe/jekyll:13:in `<top (required)>'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/bin/jekyll:22:in `load'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/bin/jekyll:22:in `<main>'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `eval'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `<main>'
I'm not the most adept with these things and have no idea what's going on here or how to fix it. X-Code is up to date, I'm using a ruby package manager to get the gems working together, but still am seeing this final error.
Any ideas? And Thank you!
After installation I just had the same error. Went to the jekyll-docs gem directory and ran...
jekyll serve
That command exited with...
Configuration file: C:/ruby217/lib/ruby/gems/2.1.0/gems/jekyll-docs-3.1.1/site/_config.yml Dependency Error: Yikes! It looks like you don't have jekyll-feed or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- jekyll-feed' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/! jekyll 3.1.1 | Error: jekyll-feed
So I did...
gem install jekyll-feed
jekyll serve
This time...
Configuration file: C:/ruby217/lib/ruby/gems/2.1.0/gems/jekyll-docs-3.1.1/site/_config.yml Dependency Error: Yikes! It looks like you don't have jekyll-redirect-from or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- jekyll-redirect-from' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/! jekyll 3.1.1 | Error: jekyll-redirect-from
Again...
gem install jekyll-redirect-from
jekyll serve
This time...
Configuration file: C:/ruby217/lib/ruby/gems/2.1.0/gems/jekyll-docs-3.1.1/site/_config.yml Source: C:/ruby217/lib/ruby/gems/2.1.0/gems/jekyll-docs-3.1.1/site Destination: C:/ruby217/lib/ruby/gems/2.1.0/gems/jekyll-docs-3.1.1/site/_site Incremental build: disabled. Enable with --incremental Generating... Dependency Error: Yikes! It looks like you don't have pygments or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- pygments' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/! Liquid Exception: pygments in C:/ruby217/lib/ruby/gems/2.1.0/gems/jekyll-docs-3.1.1/site/_docs/assets.md ERROR: YOUR SITE COULD NOT BE BUILT: ------------------------------------ pygments
So I opened _config.yml (and there at the end of file were those 2 gems listed which I installed above. I should have opened the _config.yml first) and changed this line...
highlighter: pygments
to..
highlighter: rouge
because rouge was already installed on system. After that I ran...
jekyll serve
and voila. It worked.
Conclusion: required dependencies are not resolving correctly.
So, a friend in another place answered this question for me!
I had a post that was the following slug: 25 and Jekyll didn't like that at all, I changed it to twenty-five and it was all good!
Hope this helps someone else :)
I've been running compass and sass for a while now, however updated my system this afternoon:
mac osX 10.10.2 (14C1514)
Ruby version: ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
Sass version: Sass 3.4.13 (Selective Steve)
Compass version: 1.0.3
And all of a sudden compass stopped working, it would watch the files but and do the first write, but then after that it wouldn't see any more changes.
After looking around online i found:
compass watch --p
might help me, it seemed to work and was running fine 'ish' but build times were really slow.
Andys-mac:scss andy$ compass watch --p
>>> Compass is watching for changes. Press Ctrl-C to Stop.
modified layout/_header.scss
write /Users/andy/Sites/projectname/httpdocs/library/css/style.css
When i break from this it throws me the error as follows:
E, [2015-03-20T15:13:26.627204 #1102] ERROR -- : Actor crashed!
Celluloid::DeadActorError: attempted to call a dead actor
/Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync_proxy.rb:23:in `method_missing'
/Library/Ruby/Gems/2.0.0/gems/listen-2.9.0/lib/listen/file.rb:9:in `change'
/Library/Ruby/Gems/2.0.0/gems/listen-2.9.0/lib/listen/change.rb:40:in `change'
/Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `public_send'
/Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `dispatch'
/Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in `dispatch'
/Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in `block in invoke'
/Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in `block in task'
/Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in `block in task'
/Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in `block in initialize'
/Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'
E, [2015-03-20T15:13:26.628055 #1102] ERROR -- : Actor crashed!
Celluloid::DeadActorError: attempted to call a dead actor
/Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync_proxy.rb:23:in `method_missing'
/Library/Ruby/Gems/2.0.0/gems/listen-2.9.0/lib/listen/file.rb:9:in `change'
/Library/Ruby/Gems/2.0.0/gems/listen-2.9.0/lib/listen/change.rb:40:in `change'
/Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `public_send'
/Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `dispatch'
/Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in `dispatch'
/Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in `block in invoke'
/Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in `block in task'
/Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in `block in task'
/Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in `block in initialize'
/Library/Ruby/Gems/2.0.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'
Im lost i've tried uninstalling compass - sass, updating ruby system im at the end of my whit please help me. If i've missed anything that people might know to help fix it, i'll gladly share.
Thanks so much.
Okay, so i found that celluloid was causing a data leak or something along those lines.
I tried a few things to sort this:
sudo gem update `gem list | cut -d ' ' -f 1`
Updating all the gems didn't work but that might work for some people. I ended up running:
sudo gem uninstall --all
To remove all gems that might be causing a problem, i then reinstalled the compass gem and sass gem. 2 hours of routing and that was the fix. Hope this helps people in the future.
I ended up uninstalling all versions of celluloid
sudo gem uninstall celluloid
Then I reinstalled celluloid
sudo gem install celluloid
And it started working again.
EDIT: Found the answer (see my answer below!). It involves using version 1.4.2 instead of 1.4.3, so if anyone has any ideas on getting 1.4.3 working, that could be helpful as well. Thanks!
EDIT 2: Thanks to a comment below, it seems that 1.4.3 does have a problem when running on windows. https://github.com/jekyll/jekyll/issues/1948
I have just setup jekyll on my windows 7 computer. I have ruby installed along with the dev pack.
I have run gem install jekyll and that completed with success. I have created a new site as per the jekyll documentation.
The problem I am experiencing happens when I try to run jekyll serve. Please find below the error output.
PS C:\jekyll\test-site> jekyll serve --trace
Configuration file: C:/jekyll/test-site/_config.yml
Source: C:/jekyll/test-site
Destination: C:/jekyll/test-site/_site
Generating... C:/Ruby193/lib/ruby/1.9.1/fileutils.rb:247:in `mkdir': Invalid argument - C:/jekyll/test-site/_site/C: (Errno::EINVAL)
from C:/Ruby193/lib/ruby/1.9.1/fileutils.rb:247:in `fu_mkdir'
from C:/Ruby193/lib/ruby/1.9.1/fileutils.rb:221:in `block (2 levels) in mkdir_p'
from C:/Ruby193/lib/ruby/1.9.1/fileutils.rb:219:in `reverse_each'
from C:/Ruby193/lib/ruby/1.9.1/fileutils.rb:219:in `block in mkdir_p'
from C:/Ruby193/lib/ruby/1.9.1/fileutils.rb:205:in `each'
from C:/Ruby193/lib/ruby/1.9.1/fileutils.rb:205:in `mkdir_p'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-1.4.3/lib/jekyll/convertible.rb:168:in `write'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-1.4.3/lib/jekyll/site.rb:259:in `block in write'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-1.4.3/lib/jekyll/site.rb:397:in `block (2 levels) in each_site_file'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-1.4.3/lib/jekyll/site.rb:396:in `each'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-1.4.3/lib/jekyll/site.rb:396:in `block in each_site_file'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-1.4.3/lib/jekyll/site.rb:395:in `each'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-1.4.3/lib/jekyll/site.rb:395:in `each_site_file'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-1.4.3/lib/jekyll/site.rb:259:in `write'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-1.4.3/lib/jekyll/site.rb:41:in `process'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-1.4.3/lib/jekyll/command.rb:18:in `process_site'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-1.4.3/lib/jekyll/commands/build.rb:23:in `build'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-1.4.3/lib/jekyll/commands/build.rb:7:in `process'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-1.4.3/bin/jekyll:97:in `block (2 levels) in <top (required)>'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commander-4.1.5/lib/commander/command.rb:180:in `call'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commander-4.1.5/lib/commander/command.rb:180:in `call'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commander-4.1.5/lib/commander/command.rb:155:in `run'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commander-4.1.5/lib/commander/runner.rb:402:in `run_active_command'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commander-4.1.5/lib/commander/runner.rb:78:in `run!'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commander-4.1.5/lib/commander/delegates.rb:11:in `run!'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commander-4.1.5/lib/commander/import.rb:10:in `block in <top (required)>
I have looked around but am a novice with ruby, so I have no idea what to look for or how to find the error here. Any help would be much appriciated.
Thanks,
Joe
Answering my own question, I managed to find a solution.
This appears to be a problem with Jekyll version 1.4.3. To fix the issue I uninstalled jekyll and installed version 1.4.2.
gem uninstall jekyll
gem install jekyll --version "=1.4.2"
Doing this and everything should work fine if you have the same issue as me on windows.
I guess this is because version 1.4.3 is new (released on 13th) and is unstable on windows.
Just came across the same issue with Jekyll's plugin "Category Archive Generator" (https://github.com/shigeya/jekyll-category-archive-plugin)
Most likely you have a plugin - in the _plugins folder - which is using the File.join() method. e.g. File.join('/', dest, #dir, #category_dir_name, 'index.html')
Modify this by deleting the first element leaving you with File.join(dest, #dir, #category_dir_name, 'index.html')
I had the same problem on Ubuntu Precise 12.04. The issue was that I had ruby1.8 installed. I also had ruby1.9.1 installed. I removed ruby1.8, and then Jekyll installed fine.
I'm using rails 3.1.0 and trying to setup Capistrano to precompile assets. Capistrano v2.8.0 has "load 'deploy/assets'" in Capfile. But when I run "cap deploy" it shows the following error:
cap deploy
/usr/lib/ruby/1.8/capistrano/configuration/loading.rb:183:in `find_file_in_load_path': no such file to load -- deploy/assets (LoadError)
from /usr/lib/ruby/1.8/capistrano/configuration/loading.rb:171:in `load_from_file'
from /usr/lib/ruby/1.8/capistrano/configuration/loading.rb:89:in `load'
from /usr/lib/ruby/1.8/capistrano/configuration/loading.rb:86:in `load'
from /usr/lib/ruby/1.8/capistrano/configuration/loading.rb:86:in `each'
from /usr/lib/ruby/1.8/capistrano/configuration/loading.rb:86:in `load'
from Capfile:3:in `load'
from /usr/lib/ruby/1.8/capistrano/configuration/loading.rb:172:in `load_from_file'
from /usr/lib/ruby/1.8/capistrano/configuration/loading.rb:89:in `load'
from /usr/lib/ruby/1.8/capistrano/configuration/loading.rb:86:in `load'
from /usr/lib/ruby/1.8/capistrano/configuration/loading.rb:86:in `each'
from /usr/lib/ruby/1.8/capistrano/configuration/loading.rb:86:in `load'
from /usr/lib/ruby/1.8/capistrano/cli/execute.rb:64:in `load_recipes'
from /usr/lib/ruby/1.8/capistrano/cli/execute.rb:64:in `each'
from /usr/lib/ruby/1.8/capistrano/cli/execute.rb:64:in `load_recipes'
from /usr/lib/ruby/1.8/capistrano/cli/execute.rb:30:in `execute!'
from /usr/lib/ruby/1.8/capistrano/cli/execute.rb:14:in `execute'
from /usr/bin/cap:4
UPDATE
It magically started working after I restarted my PC (Ubuntu).
Can you please demonstrate that the cap that you are using is indeed in the bundle?
Please share your Gemfile and your Capfile, chances are that "cap" isn't in the bundle, so it's loading a previous version, be sure to run with "bundle exec" (to make sure to use the correct capistrano)
As I encountered the same problem currently, I noticed that using RVM with a project specific .rvmrc was not reloaded after I switched branches with git checkout. The result was that the system wide capistrano version 2.6.0 was being used instead of the project specific capistrano version 2.9.0. This lead to the same error message 'no such file to load -- deploy/assets (LoadError)'.
A simple cd out of the project path and again into the project path solved the problem for me.
What worked for me for this issue was installing the latest version of capistrano (gem install capistrano).