Skip to content

Instantly share code, notes, and snippets.

@somecuitears
Created February 9, 2017 15:44
Show Gist options
  • Save somecuitears/c6b88944e3e59c598a57812084d373d6 to your computer and use it in GitHub Desktop.
Save somecuitears/c6b88944e3e59c598a57812084d373d6 to your computer and use it in GitHub Desktop.
Homebrew and UPX Installation Procedure for macOS

UPX detail : Compress/expand executable files;

Open terminal | Command+Space and type Terminal and press enter/return key.

Paste following code :

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null

Wait for the command to finish. After completion run following code :

brew install upx
Copy link

ghost commented Jan 2, 2021

When I enter the terminal code, it says "Need sudo access on macOS". I checked online, and apparently all it's needed is a "sudo" at the beginning of the code.
Still, after entering the password, it says "Don't run this as root! " , and if I enter the "brew install upx" code it will say "zsh: command not found: brew".

@angiestav
Copy link

same problem here

@JunlinHe
Copy link

JunlinHe commented Mar 5, 2021

brew install --build-from-source upx

@nihaalmoosa
Copy link

nihaalmoosa commented Jun 23, 2021

There is an error in M1 mac.

Error: upx: no bottle available!
You can try to install from source with:
  brew install --build-from-source upx
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.

What should be done?

@riyzzel
Copy link

riyzzel commented Jul 2, 2021

Any solution on this? Error: upx: no bottle available!

@xavierbzh
Copy link

There is an error in M1 mac.

Error: upx: no bottle available!
You can try to install from source with:
  brew install --build-from-source upx
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.

What should be done?

Well it didn't work with "brew install upx"

I did also get the message:
You can try to install from source with:
brew install --build-from-source upx

So that's what I did, I put in the terminal "brew install --build-from-source upx" and it works

Thanx for guiding me

@juvechina
Copy link

M1芯片用这个命令可以:
arch -arm64 brew install --build-from-source upx

@vaultxmad
Copy link

please help with this error

Last login: Thu Feb 17 22:05:50 on ttys000
************@Mac-Air ~ % brew install upx

Warning: No available formula with the name "upx".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> 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.
********@Mac-Air ~ %

i just change my name with*** for privacy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment