1

当我打算对 sudo chmod 600 -R Documents/some_directory 执行命令时,我不小心运行了命令 sudo chmod 600 -R / 并且我的 macbook pro 的文件权限搞砸了。我运行了 sudo chmod 755 -R /directories_that_don't_need_to_be_secure 并尝试修复所有权限。但是当我启动我的 Jekyll 服务器 jekyll --server --auto 时,我遇到了一堆错误。我使我的整个目录可读、可写和可执行。但是错误不断弹出。这是我在 jekyll 服务器生成时得到的:

    Shalin-Shah-Me:shalin shalinvs$ jekyll --server --auto
Configuration from /Users/shalinvs/Documents/Developer/Websites/shalin/_config.yml
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- sass (LoadError)
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `require'
    from /Users/shalinvs/Documents/Developer/Websites/shalin/_plugins/sass_converter.rb:5
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `require'
    from /Library/Ruby/Gems/1.8/gems/jekyll-0.12.0/bin/../lib/jekyll/site.rb:78:in `setup'
    from /Library/Ruby/Gems/1.8/gems/jekyll-0.12.0/bin/../lib/jekyll/site.rb:77:in `each'
    from /Library/Ruby/Gems/1.8/gems/jekyll-0.12.0/bin/../lib/jekyll/site.rb:77:in `setup'
    from /Library/Ruby/Gems/1.8/gems/jekyll-0.12.0/bin/../lib/jekyll/site.rb:76:in `each'
    from /Library/Ruby/Gems/1.8/gems/jekyll-0.12.0/bin/../lib/jekyll/site.rb:76:in `setup'
    from /Library/Ruby/Gems/1.8/gems/jekyll-0.12.0/bin/../lib/jekyll/site.rb:31:in `initialize'
    from /Library/Ruby/Gems/1.8/gems/jekyll-0.12.0/bin/jekyll:238:in `new'
    from /Library/Ruby/Gems/1.8/gems/jekyll-0.12.0/bin/jekyll:238
    from /usr/bin/jekyll:23:in `load'
    from /usr/bin/jekyll:23

我也尝试使用磁盘工具来修复我的权限,但仍然没有运气。

提前致谢!

4

1 回答 1

0

你能得到什么?

gem list sass

尝试这个:

gem uninstall sass
gem install sass

然后再次运行你的 jekyll 命令。

于 2013-01-03T23:52:35.443 回答