Ilyas Aliyev
Ilyas Aliyev

Reputation: 21

I have problem with whenever gem on local

After running whenever -i in log files is see this messages. What should i do to fix this problem?

cut: /link/to/my/project/.ruby-version: Operation not permitted
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin19/rbconfig.rb:229:in ``': Operation not permitted - getcwd (Errno::EPERM)
    from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin19/rbconfig.rb:229:in `<module:RbConfig>'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin19/rbconfig.rb:11:in `<top (required)>'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:9:in `require'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:9:in `<top (required)>'
    from <internal:gem_prelude>:2:in `require'
    from <internal:gem_prelude>:2:in `<internal:gem_prelude>'

Upvotes: 1

Views: 603

Answers (1)

engineerDave
engineerDave

Reputation: 3935

The file .ruby-version is a pattern from rvm. I think a few other ruby installers might use this pattern too and this file shouldn't be checked into the repo as it's specific to a developer's environment, but it tells rvm to switch the version of ruby. Given that's where this message is being thrown this message would indicate to me this looks like a permissions issue with your installed ruby or with whenever gem itself in your environment.

Upvotes: 1

Related Questions