homebrew-cask-upgrade: Error: No such file or directory @ rb_sysopen - /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.0/data/unicode.data

# input
brew cu

# output
Error: No such file or directory @ rb_sysopen - /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.0/data/unicode.data
# input
brew doctor

# output
Your system is ready to brew.
# input
brew config

# output
HOMEBREW_VERSION: 3.4.11-53-g34dd8e3
ORIGIN: https://github.com/Homebrew/brew
HEAD: 34dd8e305789a5433d345a29b03a4d4f3a568d1e
Last commit: 4 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 0f98d77858de1aa1738d1d09ad4d226114255cbe
Core tap last commit: 65 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_BAT: set
HOMEBREW_CASK_OPTS: []
HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: 1
HOMEBREW_CLEANUP_MAX_AGE_DAYS: 1
HOMEBREW_CORE_GIT_REMOTE: https://github.com/Homebrew/homebrew-core
HOMEBREW_FORCE_BREWED_CURL: set
HOMEBREW_FORCE_BREWED_GIT: set
HOMEBREW_MAKE_JOBS: 8
HOMEBREW_NO_ANALYTICS: set
HOMEBREW_NO_AUTO_UPDATE: set
Homebrew Ruby: 2.6.8 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 13.1.6 build 1316
Git: 2.36.1 => /opt/homebrew/opt/git/bin/git
Curl: 7.83.1 => /opt/homebrew/opt/curl/bin/curl
macOS: 12.4-arm64
CLT: 13.4.0.0.1.1651278267
Xcode: N/A
Rosetta 2: false

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 4
  • Comments: 25

Most upvoted comments

Otherwise just get the unicode.data file from here:

https://github.com/sporkmonger/addressable/tree/main/data

It is only this file that needs to be in that directory.

i had the same issue and resolved it by

mkdir /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.0/data/
wget https://raw.githubusercontent.com/sporkmonger/addressable/main/data/unicode.data -O /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.0/data/unicode.data

I’ll consider this issue being resolved then 🙂 thank you all for your help investigating this.

Thank you for the context @samford ! I actually removed direct require of cask (which was causing the issue) which probably happens anyways somewhere as the code works without any issues (or at least I haven’t spotted any).

That being said, it’s great to have the context on this to understand what happened 🙂