在Mac Big Sur上安装upx [英] Installing upx with Mac Big Sur

查看:819
本文介绍了在Mac Big Sur上安装upx的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在安装upx时遇到问题.以下是我采取的步骤.我的macO是11.2.1

I'm having trouble installing upx. The following are the steps that I took. My macOs is 11.2.1

 % ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
==> Checking for `sudo` access (which may request your password).
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
==> /usr/bin/sudo /usr/sbin/chown -R vuduc:admin /usr/local/Homebrew
==> Downloading and installing Homebrew...
HEAD is now at 3ff5795ae Merge pull request #10652 from danielnachun/revert-gcc-linkage-fix
==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics
No analytics data has been sent yet (or will be during this `install` run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations

==> Next steps:
- Run `brew help` to get started
- Further documentation: 
    https://docs.brew.sh

% brew install upx
Updating Homebrew...
fatal: Could not resolve HEAD to a revision
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "upx".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.

如何解决此问题?我需要安装upx,因为某些应用程序显示您无权打开该应用程序...";当我尝试运行它们时.

How can I solve this issue? I need to install upx because some apps show "You do not have permission to open the application…" when I tried to run them.

推荐答案

我遇到了同样的问题.我搜索了很长时间,尝试了各种方法.

I had the same issue. I searched for ages and tried various things.

最后,我解决了它从HomeBrew github获取相关信息的问题,并将其发布在UPX GitHub问题日志中.

In the end, I resolved it getting relevant info from the HomeBrew github and posted it on the UPX GitHub issue log.

签出> https://github.com/upx/upx/issues/469

在您首选的Shell(bash/zsh/fish/etc)中,运行以下命令:

In your preferred Shell (bash / zsh / fish / etc), run this:

git -C $(brew --repo homebrew/core) checkout master

这会将您的啤酒与原产地"分支到主"节点分支

That will swich your brew from the "origin" branch to the "master" branch

从此处运行:酿造upx

这篇关于在Mac Big Sur上安装upx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆