I'm attempting to install upx in terminal using 'brew install upx'
the git repo is fetched and downloaded then the following error appears:
==> Downloading https://formulae.brew.sh/api/formula.json
######################################################################## 100.0%
==> Downloading https://formulae.brew.sh/api/cask.json
######################################################################## 100.0%
==> Fetching upx
######################################################################## 100.0%
==> Downloading https://github.com/upx/upx/releases/download/v3.96/upx-3.96-src.tar.xz
Already downloaded: /Users/***/Library/Caches/Homebrew/downloads/bd95b9b65d032f884c07f772fdbea03291bc6ba5d6b6a952c236ce39891f4c28--upx-3.96-src.tar.xz
==> Patching
Error: An exception occurred within a child process:
Errno::ENOENT: No such file or directory # rb_sysopen - /Users/***/Library/Caches/Homebrew/downloads/828bed0793519b45dcaa13c6897f0e919e7023816880e2d770a3e5ea3129dbc8--51f69a20e0287904398bbf4c72ba2f809a0b0850.patch
Does anybody have any advice on how to resolve this?
Many thanks
Related
I'm sorry if my question is a little newbie, i just get Mac in my job and I'm usually a Linux user...
I'm trying to install mariadb to use it after with python, i tried with brew. I know it's old version of macOS (and i can't do anything about it)
brew install mariadb
Running `brew update --auto-update`...
Warning: You are using macOS 10.14.
We (and Apple) do not provide support for this old version.
It is expected behaviour that some formulae will fail to build in this old version.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from MacHomebrew on Twitter.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.
==> Fetching dependencies for mariadb: cmake, fmt, mecab, mecab-ipadic, msgpack, ca-certificates, openssl#1.1, pcre, groonga, pcre2, xz and zstd
==> Fetching cmake
==> Downloading https://github.com/Kitware/CMake/releases/download/v3.25.2/cmake-3.25.2.tar.gz
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/b19b531ca705f5d1736fb10a83767e06ac2e8801a3f9f34ac8b4bd6e1697dda2--cmake-3.25.2.tar.gz
==> Fetching fmt
==> Downloading https://github.com/fmtlib/fmt/archive/9.1.0.tar.gz
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/d39fe7ae376a7198a34490e5acb665b0112ea585720eb917c496bb050bc76c62--fmt-9.1.0.tar.gz
==> Fetching mecab
==> Downloading https://ghcr.io/v2/homebrew/core/mecab/manifests/0.996-3
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/21431e68751945bd7900be15e222a38b4402841088e6d5669b4f48c56dc614b3--mecab-0.996-3.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/mecab/blobs/sha256:ef261d203140305ca8c9e4b7311c61176a17325df9454610d3eb33a312c4d3c5
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/45441007488c38750c14c63895eccd562a5af40519f48eed3e35ce6eb10fbb13--mecab--0.996.mojave.bottle.3.tar.gz
==> Fetching mecab-ipadic
==> Downloading https://ghcr.io/v2/homebrew/core/mecab-ipadic/manifests/2.7.0-20070801
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/011316e018929eb52aa0a17e2d6634fe3804c07bf44859f3cc7a0b4baf0e3cea--mecab-ipadic-2.7.0-20070801.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/mecab-ipadic/blobs/sha256:30967b4167d34f05c79f185d71a40198fff4067d0cce82aed59383548c898681
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/f5097a021ff29918177e2d4279101124910e2f287932a3619641988e92f66a76--mecab-ipadic--2.7.0-20070801.mojave.bottle.tar.gz
==> Fetching msgpack
==> Downloading https://github.com/msgpack/msgpack-c/releases/download/c-5.0.0/msgpack-c-5.0.0.tar.gz
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/c58619083eaba272e9c477c3c0deb886dc539140f009dd42dc2634e8db0378a3--msgpack-c-5.0.0.tar.gz
==> Fetching ca-certificates
==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/manifests/2023-01-10
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/927414ed081d996b84d938be6af4d2639403b4d2bee3cc29268d0844999da180--ca-certificates-2023-01-10.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/blobs/sha256:11fe9d0a98a2ac454fa1db95762a697c3340f46560ff27e5e9db8fdeb003f17e
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/ca2448928ab98c455b5e46d4a6604247a151ab0f4e60553dbb5c6aecd2e1df3c--ca-certificates--2023-01-10.all.bottle.tar.gz
==> Fetching openssl#1.1
==> Downloading https://www.openssl.org/source/openssl-1.1.1t.tar.gz
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/ec3feb171aa63b32c30a6e7423e78f743f92d1ef984b66b0ea548d08220c0ce6--openssl-1.1.1t.tar.gz
==> Fetching pcre
==> Downloading https://ghcr.io/v2/homebrew/core/pcre/manifests/8.45
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/4a3bba0e8d1899c13ac3442d2c49df6c1999948bdc0943f2f179693257d82545--pcre-8.45.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/pcre/blobs/sha256:a42b79956773d18c4ac337868cfc15fadadf5e779d65c12ffd6f8fd379b5514c
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/456b31dd91116840800d9cc2f35c6f2ebde8cfe8513e6d08dd6974f3309dc4f9--pcre--8.45.mojave.bottle.tar.gz
==> Fetching groonga
==> Downloading https://packages.groonga.org/source/groonga-normalizer-mysql/groonga-normalizer-mysql-1.2.1.tar.gz
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/8bc84be3a691a3cf950cf2576dac8b64884fd7f4f91026475399827c9d96fd6b--groonga-normalizer-mysql-1.2.1.tar.gz
==> Downloading https://packages.groonga.org/source/groonga/groonga-13.0.0.tar.gz
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/31a0c28bde3252bed7d10bba33dec5ef45e6a5379da383e40c28f668bb03878d--groonga-13.0.0.tar.gz
==> Fetching pcre2
==> Downloading https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.42/pcre2-10.42.tar.bz2
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/7f4d74ac3e447b9fed53bce4202af3921ffc5ae1469894e7e1b10bda2145a15b--pcre2-10.42.tar.bz2
==> Fetching xz
==> Downloading https://downloads.sourceforge.net/project/lzmautils/xz-5.4.1.tar.gz
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/ca0c062e8ecb14160415874ad277c80d73d9a9d00aa926ff11a32e877f6651fe--xz-5.4.1.tar.gz
==> Fetching zstd
==> Downloading https://github.com/facebook/zstd/archive/v1.5.4.tar.gz
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/a7632ef95a5b612da27d37abb163299230d9f9394c53a8385de8c57a366c2ebe--zstd-1.5.4.tar.gz
==> Fetching mariadb
==> Downloading https://downloads.mariadb.com/MariaDB/mariadb-10.10.3/source/mariadb-10.10.3.tar.gz
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/182c68feeae25618d12662bea09676695697b3545a81c63d59850e574372c312--mariadb-10.10.3.tar.gz
==> Installing dependencies for mariadb: cmake, fmt, mecab, mecab-ipadic, msgpack, ca-certificates, openssl#1.1, pcre, groonga, pcre2, xz and zstd
Error: Cannot link cmake
Another version is already linked: /usr/local/Cellar/cmake/3.24.2
i tried to upgrade cmake in case of but i wasn't a better try:
==> Upgrading 1 outdated package:
cmake 3.24.2 -> 3.25.2
==> Fetching cmake
==> Downloading https://github.com/Kitware/CMake/releases/download/v3.25.2/cmake-3.25.2.tar.gz
Already downloaded: /Users/cea/Library/Caches/Homebrew/downloads/b19b531ca705f5d1736fb10a83767e06ac2e8801a3f9f34ac8b4bd6e1697dda2--cmake-3.25.2.tar.gz
==> Upgrading cmake
3.24.2 -> 3.25.2
Error: Permission denied # apply2files - /usr/local/share/emacs/site-lisp/cmake
if someone has any solutions for me thanks!
I have a 2016 MacBook Pro (w/ touchbar) and Mac OS Sierra (10.12.3). I freshly installed Homebrew (v1.1.9) and ran brew install gcc49. It appears to install all dependencies fine, but once it gets to gcc, I get
Error: Permission denied - /Users/<me>/Library/Caches/Homebrew/gcc#4.9-4.9.3.tar.bz2
Original permissions after downloaded by Homebrew:
-rw-r--r-- 1 <me> <company_domain> 86M Jun 26 2015 /Users/<me>/Library/Caches/Homebrew/gcc#4.9-4.9.3.tar.bz2
I tried setting to 755 and group to admin, but no luck:
-rwxr-xr-x 1 <me> admin 86M Jun 26 2015 /Users/<me>/Library/Caches/Homebrew/gcc#4.9-4.9.3.tar.bz2
> brew install gcc49
Updating Homebrew...
==> Using the sandbox
==> Downloading https://ftpmirror.gnu.org/gcc/gcc-4.9.3/gcc-4.9.3.tar.bz2
Already downloaded: /Users/<me>/Library/Caches/Homebrew/gcc#4.9-4.9.3.tar.bz2
Error: Permission denied - /Users/<me>/Library/Caches/Homebrew/gcc#4.9-4.9.3.tar.bz2
I then chowned the directory to be group admin instead of the company domain. It already had 775 permissions. Still no luck.
I have seen several posts where people had to chown directories to make homebrew happy, but I don't see permission issues on the given file or directory.
brew doctor reports some unexpected dylibs, header, and .pc files. I'm not sure if those came from my company's Mac OS image.
Am I overlooking something obvious? I appreciate any help.
Here is the entire initial install output:
> brew install gcc49
==> Installing dependencies for gcc#4.9: gmp#4, mpfr#2, libmpc#0.8, isl#0.12, cloog
==> Installing gcc#4.9 dependency: gmp#4
==> Downloading https://homebrew.bintray.com/bottles/gmp#4-4.3.2.sierra.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring gmp#4-4.3.2.sierra.bottle.1.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
This is an alternate version of another formula.
For compilers to find this software you may need to set:
LDFLAGS: -L/usr/local/opt/gmp#4/lib
CPPFLAGS: -I/usr/local/opt/gmp#4/include
==> Summary
🍺 /usr/local/Cellar/gmp#4/4.3.2: 20 files, 2.4M
==> Installing gcc#4.9 dependency: mpfr#2
==> Downloading https://homebrew.bintray.com/bottles/mpfr#2-2.4.2.sierra.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring mpfr#2-2.4.2.sierra.bottle.1.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
This is an alternate version of another formula.
For compilers to find this software you may need to set:
LDFLAGS: -L/usr/local/opt/mpfr#2/lib
CPPFLAGS: -I/usr/local/opt/mpfr#2/include
==> Summary
🍺 /usr/local/Cellar/mpfr#2/2.4.2: 25 files, 2.7M
==> Installing gcc#4.9 dependency: libmpc#0.8
==> Downloading https://homebrew.bintray.com/bottles/libmpc#0.8-0.8.1.sierra.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring libmpc#0.8-0.8.1.sierra.bottle.1.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
This is an alternate version of another formula.
For compilers to find this software you may need to set:
LDFLAGS: -L/usr/local/opt/libmpc#0.8/lib
CPPFLAGS: -I/usr/local/opt/libmpc#0.8/include
==> Summary
🍺 /usr/local/Cellar/libmpc#0.8/0.8.1: 12 files, 273.8K
==> Installing gcc#4.9 dependency: isl#0.12
==> Downloading https://homebrew.bintray.com/bottles/isl#0.12-0.12.2.sierra.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring isl#0.12-0.12.2.sierra.bottle.1.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
This is an alternate version of another formula.
For compilers to find this software you may need to set:
LDFLAGS: -L/usr/local/opt/isl#0.12/lib
CPPFLAGS: -I/usr/local/opt/isl#0.12/include
==> Summary
🍺 /usr/local/Cellar/isl#0.12/0.12.2: 57 files, 2.9M
==> Installing gcc#4.9 dependency: cloog
==> Downloading https://homebrew.bintray.com/bottles/cloog-0.18.4_1.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring cloog-0.18.4_1.sierra.bottle.tar.gz
🍺 /usr/local/Cellar/cloog/0.18.4_1: 35 files, 442.4K
==> Installing gcc#4.9
==> Using the sandbox
==> Downloading https://ftpmirror.gnu.org/gcc/gcc-4.9.3/gcc-4.9.3.tar.bz2
==> Downloading from http://mirror.easthsia.com/gnu/gcc/gcc-4.9.3/gcc-4.9.3.tar.bz2
######################################################################## 100.0%
Error: Permission denied - /Users/<me>/Library/Caches/Homebrew/gcc#4.9-4.9.3.tar.bz2
Try to sudo chown -R <me>:admin /usr/local/* and try again. You may need to restore some user or group ownership recursively (which this command will do).
When trying to install Apache Spark using homebrew on Mac OS X Yosemite 10.10, I get a strange error as shown below:
$ brew install apache-spark
==> Downloading https://www.apache.org/dyn/closer.cgi?path=spark/spark-1.5.0/spark-1.5.0-bin-hadoop2.
==> Best Mirror http://mirror.nexcess.net/apache/spark/spark-1.5.0/spark-1.5.0-bin-hadoop2.6.tgz
######################################################################## 100.0%
tar: copyfile unpack (spark-1.5.0-bin-hadoop2.6/python/test_support/sql/orc_partitioned/SUCCESS.crc) failed: No such file or directory
🍺 /usr/local/Cellar/apache-spark/1.5.0: 621 files, 304M, built in 3.4 minutes
Anyone else encountered this error before?
After running brew install dpkg, dpkg is successfully installed; but, like homebrew says below, cannot install or uninstall any software.
==> Caveats
This installation of dpkg is not configured to install software, so
commands such as `dpkg -i`, `dpkg --configure` will fail.
Full installation output:
MacBook-Air:~ james$ brew install dpkg
==> Installing dependencies for dpkg: gnu-tar, xz
==> Installing dpkg dependency: gnu-tar
==> Downloading https://homebrew.bintray.com/bottles/gnu-tar-1.28.yosemite.bottle.2.tar.gz
######################################################################## 100.0%
==> Pouring gnu-tar-1.28.yosemite.bottle.2.tar.gz
==> Caveats
gnu-tar has been installed as "gtar".
If you really need to use it as "tar", you can add a "gnubin" directory
to your PATH from your bashrc like:
PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH"
==> Summary
🍺 /usr/local/Cellar/gnu-tar/1.28: 13 files, 1.6M
==> Installing dpkg dependency: xz
==> Downloading https://homebrew.bintray.com/bottles/xz-5.2.1.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring xz-5.2.1.yosemite.bottle.tar.gz
🍺 /usr/local/Cellar/xz/5.2.1: 59 files, 1.7M
==> Installing dpkg
==> Downloading https://homebrew.bintray.com/bottles/dpkg-1.17.25_1.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring dpkg-1.17.25_1.yosemite.bottle.tar.gz
==> Caveats
This installation of dpkg is not configured to install software, so
commands such as `dpkg -i`, `dpkg --configure` will fail.
==> Summary
🍺 /usr/local/Cellar/dpkg/1.17.25_1: 246 files, 5.3M
I'm trying to install php53-fpm on OS X Mavericks
brew install php53 --with-fpm
Getting stacked at :
==> Installing dependencies for php53: gettext, jpeg, unixodbc, homebrew/dupes/zlib, libevent
==> Installing php53 dependency: gettext
==> Downloading http://ftpmirror.gnu.org/gettext/gettext-0.18.3.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/gettext-0.18.3.1.tar.gz
==> Downloading patches
######################################################################## 100.0%
==> Patching
patching file gettext-tools/Makefile.in
Hunk #1 succeeded at 1551 (offset 51 lines).
==> ./configure --prefix=/usr/local/Cellar/gettext/0.18.3.1 --with-included-gettext --with-included-glib --with-included-libcroco --with-included-libunistring --with-emacs --disa
==> make
Seems like this file of 16M will compile forever. I stopped after 2 hours. Any Idea ?
Thanks.
Upgrading xcode from the Appstore solved it somehow.