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

送分小仙女□ 提交于 2019-12-11 10:46:25

问题


I'm trying to install BaseX using Homebrew on OS X:

$ 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?


回答1:


brew cask installs GUI applications into /Applications, not the command line tools. If you want to install the command line tools, run brew install basex (without 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

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

to get a feeling of the differences.



来源:https://stackoverflow.com/questions/34191925/how-to-install-basex-for-command-line-on-os-x-using-homebrew

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!