Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: no such file to load -- /Casks/Applications.rb #123

Closed
keith opened this issue Jan 3, 2013 · 3 comments
Closed

Error: no such file to load -- /Casks/Applications.rb #123

keith opened this issue Jan 3, 2013 · 3 comments

Comments

@keith
Copy link
Contributor

keith commented Jan 3, 2013

After successfully installing everything I'm running into a new error when I try to run different tasks through brew cask for example brew cask install

=> brew tap phinze/homebrew-cask
Cloning into '/usr/local/Library/Taps/phinze-cask'...
remote: Counting objects: 1451, done.
remote: Compressing objects: 100% (635/635), done.
remote: Total 1451 (delta 840), reused 1410 (delta 805)
Receiving objects: 100% (1451/1451), 4.54 MiB | 1.15 MiB/s, done.
Resolving deltas: 100% (840/840), done.
Tapped 1 formula
=> brew install brew-cask
==> Cloning https://github.com/phinze/homebrew-cask.git
Updating /Library/Caches/Homebrew/brew-cask--git
==> Checking out tag v0.6.0
/usr/local/Cellar/brew-cask/0.6.0: 134 files, 540K, built in 2 seconds
=> brew doctor
Your system is raring to brew.
=> brew cask search
=> brew cask install
Error: no such file to load -- /Casks/Applications.rb
Please report this bug:
    https://github.com/mxcl/homebrew/wiki/troubleshooting
/usr/local/Cellar/brew-cask/0.6.0/rubylib/cask.rb:46:in `require'
/usr/local/Cellar/brew-cask/0.6.0/rubylib/cask.rb:46:in `load'
/usr/local/Cellar/brew-cask/0.6.0/rubylib/cask/cli/install.rb:5:in `run'
/usr/local/Cellar/brew-cask/0.6.0/rubylib/cask/cli/install.rb:3:in `each'
/usr/local/Cellar/brew-cask/0.6.0/rubylib/cask/cli/install.rb:3:in `run'
/usr/local/Cellar/brew-cask/0.6.0/rubylib/cask/cli.rb:21:in `process'
/usr/local/bin/brew-cask.rb:6
/usr/local/bin/brew:51:in `require'
/usr/local/bin/brew:51:in `require?'
/usr/local/bin/brew:91
=> brew --config
HOMEBREW_VERSION: 0.9.3
HEAD: 4baf64237d8fefba68a24e2237d08311592f00bb
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: dual-core 64-bit penryn
OS X: 10.8.2-x86_64
Xcode: 4.5.2
CLT: 4.5.0.0.1.1249367152
GCC-4.2: build 5666
LLVM-GCC: build 2336
Clang: 4.1 build 421
X11: 2.7.4 => /opt/X11
System Ruby: 1.8.7-358
Perl: /usr/local/perl/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /Users/ksmiley/.rbenv/shims/ruby

Any ideas?

@passcod
Copy link
Contributor

passcod commented Jan 3, 2013

What's the value of your HOMEBREW_CASK_OPTS? (from $ env)
I suspect you set it thus:

HOMEBREW_CASK_OPTS=/Applications

which essentially adds /Applications (well, prepends, actually) as an argument to any brew cask command you try to run. The correct syntax for this is:

HOMEBREW_CASK_OPTS="--appdir=/Applications"

(That syntax is thus because there'll be more options added later on…)

@passcod
Copy link
Contributor

passcod commented Jan 3, 2013

I just realised the README says otherwise. My bad. This is a mistake in the README :(

@keith
Copy link
Contributor Author

keith commented Jan 3, 2013

Ah yes. This fixes it, and you are correct. I actually changed the value in my .zshrc today because I saw the shorter version in the readme. Thanks for figuring that out!

@keith keith closed this as completed Jan 3, 2013
phinze added a commit that referenced this issue Jan 3, 2013
faun pushed a commit to faun/homebrew-cask that referenced this issue Jun 15, 2014
Added casks for firefox-beta branch
@Homebrew Homebrew locked and limited conversation to collaborators May 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants