Trying to install sass on my laptop, using this tutorial: https://www.codementor.io/#ricardozea/sass-for-beginners-the-friendliest-guide-about-installing-and-using-sass-on-windows-cjfs2id3o
but always getting this error message when I reach the step of installing sass gem:
C:\Ruby27-x64>gem install sass
ERROR: While executing gem ... (Errno::ENOENT)
No such file or directory # rb_sysopen - NUL
Having the same issue every time I try to install a gem.
I was cleaning up my computer, probably stg went wrong in the registry, idk.
This is what I get in netbeans console:
C:/Ruby25-x64/lib/ruby/2.5.0/rubygems/resolver.rb:174:in `initialize': No such file or directory # rb_sysopen - NUL (Errno::ENOENT)
from C:/Ruby25-x64/lib/ruby/2.5.0/rubygems/resolver.rb:174:in `open'
from C:/Ruby25-x64/lib/ruby/2.5.0/rubygems/resolver.rb:174:in `output'
from C:/Ruby25-x64/lib/ruby/2.5.0/rubygems/resolver/molinillo/lib/molinillo/modules/ui.rb:40:in `after_resolution'
from C:/Ruby25-x64/lib/ruby/2.5.0/rubygems/resolver/molinillo/lib/molinillo/resolution.rb:115:in `end_resolution'
from C:/Ruby25-x64/lib/ruby/2.5.0/rubygems/resolver/molinillo/lib/molinillo/resolution.rb:83:in `ensure in resolve'
from C:/Ruby25-x64/lib/ruby/2.5.0/rubygems/resolver/molinillo/lib/molinillo/resolution.rb:83:in `resolve'
from C:/Ruby25-x64/lib/ruby/2.5.0/rubygems/resolver/molinillo/lib/molinillo/resolver.rb:42:in `resolve'
from C:/Ruby25-x64/lib/ruby/2.5.0/rubygems/resolver.rb:188:in `resolve'
from C:/Ruby25-x64/lib/ruby/2.5.0/rubygems/request_set.rb:385:in `resolve'
from C:/Ruby25-x64/lib/ruby/2.5.0/rubygems/request_set.rb:397:in `resolve_current'
from C:/Ruby25-x64/lib/ruby/2.5.0/rubygems.rb:243:in `finish_resolve'
from C:/Ruby25-x64/lib/ruby/2.5.0/rubygems.rb:306:in `block in activate_bin_path'
from C:/Ruby25-x64/lib/ruby/2.5.0/rubygems.rb:304:in `synchronize'
from C:/Ruby25-x64/lib/ruby/2.5.0/rubygems.rb:304:in `activate_bin_path'
from C:/Ruby25-x64/bin/sass:23:in `<main>'
Thank you for your help!
Related
I creating new and custom gem called as "jekyll-custom-plugin" for my Jekyll and gem this is successfully build.
robbi#pc MINGW64 /d/Workplace/ruby/jekyll-custom-plugin(master)
$ gem build jekyll-custom-plugin.gemspec
Successfully built RubyGem
Name: jekyll-custom-plugin
Version: 1.0.3
File: jekyll-custom-plugin-1.0.3.gem
I open and modified my gemfile plugin with file path and file version as needed
group :jekyll_plugins do
# put here other jekyll plugins..
gem 'jekyll-custom-plugin', '1.0.3', :path => 'd:/Workplace/ruby/jekyll-custom-plugin'
end
and my jekyll _config.yml call the plugin as usual
plugins:
- jekyll-custom-plugin
but when I try to build up the website (bundle update, bundle install and bundle exec jekylly serve), i keep getting
robbi#pc MINGW64 /d/NOPE/robbinespu.gitlab.io (master)
$ bundle exec jekyll serve
Configuration file: D:/NOPE/robbinespu.gitlab.io/_config.yml
Theme Config file: C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/octoflavor-ee4be458ed67/_config.yml
Dependency Error: Yikes! It looks like you don't have jekyll-custom-plugin or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. If you've run Jekyll with `bundle exec`, ensure that you have included the jekyll-custom-plugin gem in your Gemfile as well. The full error message from Ruby is: 'cannot load such file -- jekyll-custom-plugin' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/!
------------------------------------------------
Jekyll 4.0.0 Please append `--trace` to the `serve` command
for any additional information or backtrace.
------------------------------------------------
This is weid because, I already install and it show up here
robbi#pc MINGW64 /d/NOPE/robbinespu.gitlab.io (master)
$ bundle install | grep custom
Using jekyll-custom-plugin 1.0.3 from source at `d:/Workplace/ruby/jekyll-custom-plugin`
robbi#pc MINGW64 /d/NOPE/robbinespu.gitlab.io (master)
$ bundle info jekyll-custom-plugin
* jekyll-custom-plugin (1.0.3)
Summary: A Jekyll plugin to provide XXX.
Homepage: https://github.com/robbinespu/XXX
Path: d:/Workplace/ruby/jekyll-custom-plugin
even bundle said it already installed and match the version
robbi#pc MINGW64 /d/NOPE/robbinespu.gitlab.io (master)
$ bundle list | custom
* jekyll-custom-plugin (1.0.3)
here the --trace log
$ bundle exec jekyll s --trace
Configuration file: D:/NOPE/robbinespu.gitlab.io/_config.yml
Theme Config file: C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/octoflavor-ee4be458ed67/_config.yml
Dependency Error: Yikes! It looks like you don't have jekyll-custom-plugin or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. If you've run Jekyll with `bundle exec`, ensure that you have included the jekyll-custom-plugin gem in your Gemfile as well. The full error message from Ruby is: 'cannot load such file -- jekyll-custom-plugin' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/!
C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/external.rb:73:in `rescue in block in require_with_graceful_fail': jekyll-custom-plugin (Jekyll::Errors::MissingDependencyException)
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/external.rb:58:in `block in require_with_graceful_fail'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/external.rb:57:in `each'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/external.rb:57:in `require_with_graceful_fail'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/plugin_manager.rb:30:in `require_gems'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/plugin_manager.rb:22:in `conscientious_require'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/site.rb:125:in `setup'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/site.rb:35:in `initialize'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/commands/build.rb:30:in `new'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/commands/build.rb:30:in `process'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/command.rb:91:in `block in process_with_graceful_fail'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/command.rb:91:in `each'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/command.rb:91:in `process_with_graceful_fail'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/commands/serve.rb:86:in `block (2 levels) in init_with_program'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/exe/jekyll:15:in `<top (required)>'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bin/jekyll:23:in `load'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bin/jekyll:23:in `<main>'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/external.rb:60:in `require': cannot load such file -- jekyll-custom-plugin (LoadError)
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/external.rb:60:in `block in require_with_graceful_fail'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/external.rb:57:in `each'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/external.rb:57:in `require_with_graceful_fail'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/plugin_manager.rb:30:in `require_gems'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/plugin_manager.rb:22:in `conscientious_require'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/site.rb:125:in `setup'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/site.rb:35:in `initialize'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/commands/build.rb:30:in `new'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/commands/build.rb:30:in `process'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/command.rb:91:in `block in process_with_graceful_fail'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/command.rb:91:in `each'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/command.rb:91:in `process_with_graceful_fail'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/commands/serve.rb:86:in `block (2 levels) in init_with_program'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/exe/jekyll:15:in `<top (required)>'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bin/jekyll:23:in `load'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bin/jekyll:23:in `<main>'
The exception message does not give the (root cause) reason for failure.
Add --trace as suggested, examine the file that is raising the error and see how the error that is being raised is constructed. This could follow a pattern like:
begin
# ...
rescue LoadError => e
raise "Generic error message not including anything from 'e.'"
end
... in which case change to:
begin
# ...
rescue LoadError => e
raise "Error message: #{e.class}: #{e}"
end
... and you'll have the root cause displayed.
If you are less fortunate, you'll see:
if $SOME_GLOBAL_FLAG
raise "Generic error message"
end
In this case the flag is set elsewhere in a rescue block for LoadError. You'll need to hunt that rescue down and print the error from there.
In either case I personally would report the omission of the root cause exception to the library that utilizes either pattern as a bug.
I am using jekyll for the first time.
I downloaded the source code from here. When i run build and run the site using jekyll it runs well. Now I downloaded personal theme from here. After navigating to the downloaded themes folder and then building the new theme doesn't work. I get the following error :
Configuration file: /home/repos/sites/personal-jekyll-theme/_config.yml
/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- jemoji (LoadError)
from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/lib/ruby/vendor_ruby/jekyll/plugin_manager.rb:28:in `block in require_gems'
from /usr/lib/ruby/vendor_ruby/jekyll/plugin_manager.rb:26:in `each'
from /usr/lib/ruby/vendor_ruby/jekyll/plugin_manager.rb:26:in `require_gems'
from /usr/lib/ruby/vendor_ruby/jekyll/plugin_manager.rb:19:in `conscientious_require'
from /usr/lib/ruby/vendor_ruby/jekyll/site.rb:71:in `setup'
from /usr/lib/ruby/vendor_ruby/jekyll/site.rb:33:in `initialize'
from /usr/lib/ruby/vendor_ruby/jekyll/commands/build.rb:28:in `new'
from /usr/lib/ruby/vendor_ruby/jekyll/commands/build.rb:28:in `process'
from /usr/lib/ruby/vendor_ruby/jekyll/commands/build.rb:17:in `block (2 levels) in init_with_program'
from /usr/lib/ruby/vendor_ruby/mercenary/command.rb:220:in `call'
from /usr/lib/ruby/vendor_ruby/mercenary/command.rb:220:in `block in execute'
from /usr/lib/ruby/vendor_ruby/mercenary/command.rb:220:in `each'
from /usr/lib/ruby/vendor_ruby/mercenary/command.rb:220:in `execute'
from /usr/lib/ruby/vendor_ruby/mercenary/program.rb:42:in `go'
from /usr/lib/ruby/vendor_ruby/mercenary.rb:19:in `program'
from /usr/bin/jekyll:18:in `<main>'
Ruby Verison : ruby 2.1.5p273 (2014-11-13) [x86_64-linux-gnu]
Jekyll Version : jekyll 2.2.0
If possible please let me know where and what I am doing wrong. Is there some rule which states that I can locally build only one rule ? As far as I searched I tried changing the port number in config.yml and also tried building different sites with specifying their respective config files. jekyll still doesn't build and gives the same error. Thanks for your help in advance.
I also get the error which is jekyll-feed Load Error
The above issue was resolved following the instructions in readme file and running ./scripts/install.
Thanks #Jordan for your help.
Christophers-MacBook-Pro:spec chrisvh$ bundle exec rspec
Could not find i18n-0.6.9 in any of the sources
Run `bundle install` to install missing gems.
Christophers-MacBook-Pro:spec chrisvh$ bundle install
--- ERROR REPORT TEMPLATE -------------------------------------------------------
- What did you do?
I ran the command `/Users/chrisvh/.rbenv/versions/2.1.2/bin/bundle install`
- What did you expect to happen?
I expected Bundler to...
- What happened instead?
Instead, what actually happened was...
Error details
Errno::EACCES: Permission denied # rb_sysopen - /Users/chrisvh/.bundle/cache/compact_index/rubygems.org.443.29b0360b937aa4d161703e6160654e47/versions
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/vendor/compact_index_client/lib/compact_index_client/updater.rb:32:in `initialize'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/vendor/compact_index_client/lib/compact_index_client/updater.rb:32:in `open'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/vendor/compact_index_client/lib/compact_index_client/updater.rb:32:in `open'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/vendor/compact_index_client/lib/compact_index_client/updater.rb:32:in `update'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/vendor/compact_index_client/lib/compact_index_client.rb:63:in `update'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/vendor/compact_index_client/lib/compact_index_client.rb:54:in `update_and_parse_checksums!'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/fetcher/compact_index.rb:63:in `available?'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/fetcher/compact_index.rb:15:in `call'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/fetcher/compact_index.rb:15:in `block in compact_index_request'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/fetcher.rb:154:in `use_api'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/source/rubygems.rb:331:in `block in api_fetchers'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/source/rubygems.rb:331:in `select'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/source/rubygems.rb:331:in `api_fetchers'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/source/rubygems.rb:336:in `block in remote_specs'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/index.rb:10:in `build'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/source/rubygems.rb:335:in `remote_specs'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/source/rubygems.rb:82:in `specs'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/lazy_specification.rb:56:in `__materialize__'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/spec_set.rb:91:in `block in materialize'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/spec_set.rb:88:in `map!'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/spec_set.rb:88:in `materialize'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/definition.rb:140:in `specs'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/definition.rb:129:in `resolve_remotely!'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/installer.rb:195:in `resolve_if_need'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/installer.rb:70:in `run'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/installer.rb:22:in `install'
/usr/local/Cellar/rbenv/1.0.0/rbenv.d/exec/gem-rehash/rubygems_plugin.rb:27:in `install'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/cli/install.rb:106:in `run'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/cli.rb:173:in `install'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/cli.rb:11:in `start'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/exe/bundle:27:in `block in <top (required)>'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
/Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.12.0.pre.1/exe/bundle:19:in `<top (required)>'
/Users/chrisvh/.rbenv/versions/2.1.2/bin/bundle:23:in `load'
/Users/chrisvh/.rbenv/versions/2.1.2/bin/bundle:23:in `<main>'
Environment
Bundler 1.12.0.pre.1
Rubygems 2.2.2
Ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin15.0]
GEM_HOME /Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0
GEM_PATH /Users/chrisvh/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0:/Users/chrisvh/.gem/ruby/2.1.0
Git 2.7.1
--- TEMPLATE END ----------------------------------------------------------------
Unfortunately, an unexpected error occurred, and Bundler cannot continue.
First, try this link to see if there are any existing issue reports for this error:
https://github.com/bundler/bundler/search?q=Permission+denied+%40+rb_sysopen+-+%2FUsers%2Fchrisvh%2F.bundle%2Fcache%2Fcompact_index%2Frubygems.org.443.29b0360b937aa4d161703e6160654e47%2Fversions&type=Issues
If there aren't any reports for this error yet, please create copy and paste the report template above into a new issue. Don't forget to anonymize any private data! The new issue form is located at:
https://github.com/bundler/bundler/issues/new
Apparently there is something very wrong with my bundler because I always get this error and in rails apps I'm forced to run sudo bundle install or something similar to get it working any information on this topic would be greatly appreciated.
im trying to install cocoapods in a project oy mine, but i get always an error
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/user_interface/error_report.rb:103: warning: Insecure world writable dir /usr/local in PATH, mode 040777
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/pathname.rb:422:in `open': No such file or directory - /Users/CravenJM/.cocoapods/repos (Errno::ENOENT)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/pathname.rb:422:in `foreach'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/pathname.rb:422:in `children'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/sources_manager.rb:63:in `all'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/user_interface/error_report.rb:130:in `repo_information'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/user_interface/error_report.rb:34:in `report'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/command.rb:58:in `report_error'
from /Library/Ruby/Gems/2.0.0/gems/claide-0.7.0/lib/claide/command.rb:300:in `handle_exception'
from /Library/Ruby/Gems/2.0.0/gems/claide-0.7.0/lib/claide/command.rb:274:in `rescue in run'
from /Library/Ruby/Gems/2.0.0/gems/claide-0.7.0/lib/claide/command.rb:264:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/command.rb:45:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/bin/pod:43:in `<top (required)>'
from /usr/bin/pod:23:in `load'
from /usr/bin/pod:23:in `<main>'
any idea what it could be or how i could fix that? i need cocoapods for an app, but its a nightmare :-)
I had the same error on a new Mac because I forgot to run "pod setup" after installing cocoapods. Because of that the specs repo was missing and the "pod install" command failed.
Trying to install the vagrant-digitalocean plugin for vagrant, but its having an issue install the gems required for it.
Installing the 'vagrant-digitalocean' plugin. This can take a few minutes...
/opt/vagrant/embedded/lib/ruby/1.9.1/rubygems/installer.rb:562:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
/opt/vagrant/embedded/bin/ruby extconf.rb
creating Makefile
make
compiling generator.c
In file included from /opt/vagrant/embedded/include/ruby-1.9.1/ruby.h:32:0,
from ../fbuffer/fbuffer.h:5,
from generator.c:1:
/opt/vagrant/embedded/include/ruby-1.9.1/ruby/ruby.h:105:14: error: size of array ‘ruby_check_sizeof_long’ is negative
/opt/vagrant/embedded/include/ruby-1.9.1/ruby/ruby.h:109:14: error: size of array ‘ruby_check_sizeof_voidp’ is negative
In file included from /opt/vagrant/embedded/include/ruby-1.9.1/ruby/intern.h:43:0,
from /opt/vagrant/embedded/include/ruby-1.9.1/ruby/ruby.h:1383,
from /opt/vagrant/embedded/include/ruby-1.9.1/ruby.h:32,
from ../fbuffer/fbuffer.h:5,
from generator.c:1:
/opt/vagrant/embedded/include/ruby-1.9.1/ruby/st.h:67:14: error: size of array ‘st_check_for_sizeof_st_index_t’ is negative
make: *** [generator.o] Error 1
Gem files will remain installed in /home/aaron/.vagrant.d/gems/gems/json-1.8.0 for inspection.
Results logged to /home/aaron/.vagrant.d/gems/gems/json-1.8.0/ext/json/ext/generator/gem_make.out
from /opt/vagrant/embedded/lib/ruby/1.9.1/rubygems/installer.rb:540:in `block in build_extensions'
from /opt/vagrant/embedded/lib/ruby/1.9.1/rubygems/installer.rb:515:in `each'
from /opt/vagrant/embedded/lib/ruby/1.9.1/rubygems/installer.rb:515:in `build_extensions'
from /opt/vagrant/embedded/lib/ruby/1.9.1/rubygems/installer.rb:180:in `install'
from /opt/vagrant/embedded/lib/ruby/1.9.1/rubygems/dependency_installer.rb:297:in `block in install'
from /opt/vagrant/embedded/lib/ruby/1.9.1/rubygems/dependency_installer.rb:270:in `each'
from /opt/vagrant/embedded/lib/ruby/1.9.1/rubygems/dependency_installer.rb:270:in `each_with_index'
from /opt/vagrant/embedded/lib/ruby/1.9.1/rubygems/dependency_installer.rb:270:in `install'
from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/plugin/action/install_gem.rb:49:in `block in call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/plugin/gem_helper.rb:42:in `block in with_environment'
from /opt/vagrant/embedded/lib/ruby/1.9.1/rubygems/user_interaction.rb:40:in `use_ui'
from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/plugin/gem_helper.rb:41:in `with_environment'
from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/plugin/action/install_gem.rb:39:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/plugin/action/bundler_check.rb:20:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/builder.rb:116:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/runner.rb:61:in `block in run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/util/busy.rb:19:in `busy'
from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/action/runner.rb:61:in `run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/plugin/command/base.rb:17:in `action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/plugin/command/install.rb:44:in `execute'
from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/plugins/commands/plugin/command/root.rb:47:in `execute'
from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/cli.rb:46:in `execute'
from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/environment.rb:478:in `cli'
from /opt/vagrant/embedded/gems/gems/vagrant-1.2.7/bin/vagrant:84:in `<top (required)>'
from /opt/vagrant/bin/../embedded/gems/bin/vagrant:23:in `load'
from /opt/vagrant/bin/../embedded/gems/bin/vagrant:23:in `<main>'
This happened to me when I installed an i686 version of Vagrant on my Ubuntu x86_64 machine. Unfortunately, both version would install successfully but the wrong version would fail in this confusing way.
I was having issues with installing plugins with similar errors.
What fixed all the issues for me was updating to:
Vagrant 1.7.2
http://www.vagrantup.com/downloads
Ruby 2.2.0
Instructions: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you
Note: Just don't use his copy-paste instructions they are messed up, link over to the README files he has the links right above his copy-paste snippets.
This 100% fixed all my plugin install issues.
PS: Use sudo vagrant plugin install