- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
最近更新 cask 时,我开始出现以下错误:
Error: Cask 'java' definition is invalid: Token '{:v1=>"java"}' in header line does not match the file name.
→ brew --version
Homebrew 2.1.2
Homebrew/homebrew-core (git revision 6811d1; last commit 2019-05-11)
Homebrew/homebrew-cask (git revision ba4e3; last commit 2019-05-11)
brew cask upgrade --verbose --debug
的输出:
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> Updated Formulae
angular-cli atlassian-cli libpqxx terraforming
app-engine-python elasticsearch osm2pgrouting
asciidoctorj jenkins-lts postgresql
==> Casks with `auto_updates` or `version :latest` will not be upgraded
==> Upgrading 1 outdated package:
Error: Cask 'java' definition is invalid: Token '{:v1=>"java"}' in header line does not match the file name.
/usr/local/Homebrew/Library/Homebrew/cask/cask_loader.rb:73:in `cask'
/usr/local/Caskroom/java/.metadata/1.8.0_51-b16/20150725210402.758/Casks/java.rb:1:in `load'
/usr/local/Homebrew/Library/Homebrew/cask/cask_loader.rb:62:in `instance_eval'
/usr/local/Homebrew/Library/Homebrew/cask/cask_loader.rb:62:in `load'
/usr/local/Homebrew/Library/Homebrew/cask/cask_loader.rb:178:in `load'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/upgrade.rb:39:in `block in run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/upgrade.rb:37:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/upgrade.rb:37:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/abstract_command.rb:36:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:92:in `run_command'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:158:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:123:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:9:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:102:in `<main>'
Error: Kernel.exit
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:162:in `exit'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:162:in `rescue in run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:146:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:123:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:9:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:102:in `<main>'
brew tap
的输出:
beeftornado/rmtree
heroku/brew
homebrew/cask
homebrew/core
homebrew/services
brew doctor
的输出:
→ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and which additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew-provided
script of the same name. We found the following "config" scripts:
/Users/myUser/anaconda3/bin/icu-config
/Users/myUser/anaconda3/bin/krb5-config
/Users/myUser/anaconda3/bin/freetype-config
/Users/myUser/anaconda3/bin/xslt-config
/Users/myUser/anaconda3/bin/libpng16-config
/Users/myUser/anaconda3/bin/python3.6m-config
/Users/myUser/anaconda3/bin/libpng-config
/Users/myUser/anaconda3/bin/xml2-config
/Users/myUser/anaconda3/bin/python3-config
/Users/myUser/anaconda3/bin/curl-config
/Users/myUser/anaconda3/bin/ncursesw6-config
/Users/myUser/anaconda3/bin/pcre-config
/Users/myUser/anaconda3/bin/python3.6-config
/Applications/Postgres.app/Contents/Versions/9.4/bin/gdal-config
Warning: Some installed formulae are not readable:
dotwrp: Unsupported special dependency :fortran
(base)
最佳答案
通过执行以下操作解决:
vim /usr/local/Caskroom/java/.metadata/1.8.0_51-b16/20150725210402.758/Casks/java.rb
cask :v1 => 'java' do
cask 'java' do
undent
注释,这给我带来了问题。 brew cask uninstall java
关于自酿: cask 'java'定义无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56092643/
由于其中一个项目使用的是 Java 1.7,我希望该版本能够手动运行 mrunit 测试用例。我在我的机器上安装了 java8,还想要 java7。当我运行 brew cask install jav
我刚刚安装了一个新的 Cask,然后运行了 brew doctor,它返回了 Error: Cask 'java' is unreadable: undefined method undent' fo
我正在尝试使用brew-cask安装virtual box,但这会返回这种错误,并且我无法安装virtualbox。我使用 MacOSX Lion 10.7.5 和 homebrew 0.9.5,ru
最近更新 cask 时,我开始出现以下错误: Error: Cask 'java' definition is invalid: Token '{:v1=>"java"}' in header lin
如何使用 ansible 安装特定版本的自制 cask 配方?例如,vagrant 2.2.6 而最新可用的是 2.2.7。 最佳答案 使用较新版本的 Homebrew cask命令已被删除并导致错误
我按照 http://caskroom.io/ 中的描述安装了 Homebrew Cask 用于踢球.它归结为以下命令: $ brew install caskroom/cask/brew-cask
本文整理了Java中co.cask.tephra.runtime.ZKModule类的一些代码示例,展示了ZKModule类的具体用法。这些代码示例主要来源于Github/Stackoverflow/
本文整理了Java中co.cask.tigon.guice.ZKClientModule类的一些代码示例,展示了ZKClientModule类的具体用法。这些代码示例主要来源于Github/Stack
我使用 brew cask 安装了信号(brew cask install signal) 我希望能够通过键入 signal 从终端启动 GUI 应用程序(例如:要运行 emacs 的 GUI [使用
我最近安装了 homebrew-cask,我看到的一件事是它默认将应用程序安装到以下目录中: 版本包下载 => /opt/homebrew-cask/Caskroom/ 示例:/opt/homebre
我想知道我的哪些应用程序可以使用 brew cask 安装命令。 我该怎么做? 规范 我想要做的是从 /Applications 中的所有应用程序中提取 brew-cask 上也可用的应用程序并列出他
我安装了一个 Homebrew 桶,当我尝试卸载它时,它给了我一个错误: $ brew cask uninstall julia Error: Cask 'julia' definition is i
我使用Homebrew Cask在 OS X 上安装应用程序。如何升级所有已安装的 casks? 最佳答案 现在 Homebrew Cask 终于有了官方升级机制(具体实现请参见Issue 3396)
嗯,我刚刚更新了我的 brew 并在执行 brew tap phinze/cask 命令后在我的机器上安装了 brew-cask 公式。然后我用brew cask install vagrant来安装
哪个目录是brew cask install使用的真实位置? 我想找到应用程序的真实位置,而不是/Application中的符号链接(symbolic link) 最佳答案 您可以在可用的 Casks
本文整理了Java中co.cask.cdap.api.workflow.WorkflowToken类的一些代码示例,展示了WorkflowToken类的具体用法。这些代码示例主要来源于Github/S
本文整理了Java中co.cask.cdap.api.workflow.WorkflowSpecification类的一些代码示例,展示了WorkflowSpecification类的具体用法。这些代
本文整理了Java中co.cask.cdap.common.guice.ZKClientModule类的一些代码示例,展示了ZKClientModule类的具体用法。这些代码示例主要来源于Github
本文整理了Java中co.cask.cdap.common.guice.ZKDiscoveryModule类的一些代码示例,展示了ZKDiscoveryModule类的具体用法。这些代码示例主要来源于
本文整理了Java中co.cask.cdap.common.zookeeper.ZKExtOperations类的一些代码示例,展示了ZKExtOperations类的具体用法。这些代码示例主要来源于
我是一名优秀的程序员,十分优秀!