本文介绍了用于自制酒桶的brew linkapps(自动创建到/Applications文件夹的符号链接)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Homebrew和Homebrew cask在OS 10.10.5的Mac上管理我的安装.

I am using homebrew and homebrew cask to manage my installations on my Mac with OS 10.10.5.

在使用"brew cask install"安装应用程序之后,/Applications文件夹中未显示符号链接.

After installing an app using "brew cask install", no symlink in the /Applications folder shows up.

对于通过"brew install"安装的应用程序,可以通过运行"brew linkapps"命令来创建/Applications的符号链接–自制酒桶是否有类似的东西?

For apps installed via "brew install", a symlink to /Applications can be created by running the command "brew linkapps" – is there something similar for homebrew casks?

在这种特殊情况下,Sublime Text 2的LatexTools软件包的某些功能无法正常工作(自动打开pdf查看器并跳到pdf中的行),因为LatexTools希望将pdf阅读器放在例如/Applications/Skim.app.通过"ln -s"手动创建从木桶安装位置到/Applications的符号链接可以解决此问题.

In this particular case, some features of the LatexTools package for Sublime Text 2 did not work (open pdf viewer automatically and jump to line in pdf) as LatexTools expects the pdf reader used to be located in, e.g. /Applications/Skim.app. Manually creating a symlink from the cask install location to /Applications via "ln -s" solved the problem.

推荐答案

没有brew cask linkapps,并且容器链接到〜/Applications而不是/Applications,如上所述.但是,这可能会更改为将应用程序捆绑包移动到/Applications而不是链接的酿造桶. (请参见 https://github.com/caskroom/homebrew-cask/issues/13201)

There's no brew cask linkapps and casks are linked to ~/Applications rather than /Applications, as noted above. However, this will supposedly change to brew-cask moving app bundles to /Applications rather than linking. (see https://github.com/caskroom/homebrew-cask/issues/13201)

这篇关于用于自制酒桶的brew linkapps(自动创建到/Applications文件夹的符号链接)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 12:22