如何使用Homebrew在OS X上为命令行安装Basex?

时间:2015-12-10 00:56:58

标签: macos basex

我试图在OS X上使用Homebrew安装BaseX:

$ brew cask install basex
==> We need to make Caskroom for the first time at /opt/homebrew-cask/Caskroom
==> We'll set permissions properly so we won't need sudo in the future
Password:
==> Downloading http://files.basex.org/releases/8.1.1/BaseX811.app.tar.bz2
######################################################################## 100.0%
==> Symlinking App 'BaseX.app' to '/Users/user/Applications/BaseX.app'
  basex staged at '/opt/homebrew-cask/Caskroom/basex/8.1.1' (148 files, 153M)
$ basex
-bash: basex: command not found

从命令行运行它究竟需要做什么?

1 个答案:

答案 0 :(得分:2)

brew cask将GUI应用程序安装到/Applications,而不是命令行工具。如果要安装命令行工具,请运行brew install basex(不使用cask)。

还要比较安装应用程序的cask recipy

app 'BaseX.app'

使用brew recipy安装命令行工具并为可执行文件创建符号链接

libexec.install Dir["*"]
bin.install_symlink Dir["#{libexec}/bin/*"]

感受到差异。