简体   繁体   English

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

[英]How to install Basex for command line on OS X using Homebrew?

I'm trying to install BaseX using Homebrew on OS X: 我正在尝试在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

What exactly needs to be done to run it from command line? 从命令行运行它到底需要做什么?

brew cask installs GUI applications into /Applications , not the command line tools. brew cask将GUI应用程序安装到/Applications ,而不是命令行工具中。 If you want to install the command line tools, run brew install basex (without cask ). 如果你要安装的命令行工具,运行brew install basex (不含cask )。

Also compare the cask recipy installing the application 还要比较安装应用程序的桶食谱

app 'BaseX.app'

with the brew recipy installing the command line tools and creating symlinks to the executables 使用brew brew安装命令行工具并创建指向可执行文件的符号链接

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

to get a feeling of the differences. 感受差异。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM