Cant install php53 on OS X Mavericks using homebew - macos

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.

Related

can't install mariadb because of Cannot link cmake

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 cannot get solidity installed with homebrew on macOS Sierra. Installation hangs at boost

I have tried to install solidity on my Mac with
brew update
brew upgrade
brew tap ethereum/ethereum
brew install solidity
brew linkapps solidity
as suggested at solidity#binary-packages. But when I try to brew install solidity the installation process gets stuck right here when installing boost:
bash-3.2$ brew install solidity
==> Installing solidity from ethereum/ethereum
==> Installing dependencies for ethereum/ethereum/solidity: boost, cryptopp, gmp
==> Installing ethereum/ethereum/solidity dependency: boost
==> Using the sandbox
==> Downloading https://dl.bintray.com/boostorg/release/1.64.0/source/boost_1_64_0.tar.bz2
Already downloaded: /Users/Me/Library/Caches/Homebrew/boost-1.64.0.tar.bz2
==> Downloading https://github.com/boostorg/mpi/commit/f5bdcc1.patch
Already downloaded: /Users/Me/Library/Caches/Homebrew/boost--patch-c7af75a83fef90fdb9858bc988d64ca569ae8d940396b9bc60a57d63fca2587b.patch
==> Downloading https://github.com/boostorg/serialization/commit/1d86261.diff
Already downloaded: /Users/Me/Library/Caches/Homebrew/boost--patch-155f603a00975a1702808be072c1420964feac8323de39c111a9d3a363a4ed9a.diff
==> Patching
==> Applying f5bdcc1.patch
patching file boost/mpi/detail/mpi_datatype_primitive.hpp
patching file boost/mpi/detail/packed_iprimitive.hpp
patching file boost/mpi/detail/packed_oprimitive.hpp
Hunk #2 succeeded at 97 (offset -5 lines).
==> Applying 1d86261.diff
patching file boost/serialization/array.hpp
==> ./bootstrap.sh --prefix=/usr/local/Cellar/boost/1.64.0_1 --libdir=/usr/local/Cellar/boost/1.64.0_1/lib --without-icu --without-libraries=python,mp
==> ./b2 headers
==> ./b2 --prefix=/usr/local/Cellar/boost/1.64.0_1 --libdir=/usr/local/Cellar/boost/1.64.0_1/lib -d2 -j4 --layout=tagged --user-config=user-config.jam
I did find this brew hanging thread and tried to fix everything brew doctor gave me and I have the latest command line tools installed. I could not get it to work yet. Any ideas?
JK! Wow. I guess one of the manny things I tried must have worked. Now it still takes a very very long time but eventually it came to:
🍺 /usr/local/Cellar/boost/1.64.0_1: 12,630 files, 404.4MB, built in 17 minutes 38 seconds
17minutes. Wow.

Homebrew permission denied on file I own with rwx permissions

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).

Install Spatialite on OS X Yosemite

I have problems installing Spatialite tools on OS X Yosemite, first of all I have read Install Spatialite for python (GeoDjango) on OS X but it didn't help me to resolve the issue.
Here I will provide steps that I did in order to install spatialite with Homebrew.
1) Install latest sqlite3
brew install sqlite
==> Downloading https://homebrew.bintray.com/bottles/sqlite-3.8.8.3.yosemite.bottle.tar.gz
Already downloaded: /Library/Caches/Homebrew/sqlite-3.8.8.3.yosemite.bottle.tar.gz
==> Pouring sqlite-3.8.8.3.yosemite.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.
OS X provides an older sqlite3.
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/sqlite/lib
CPPFLAGS: -I/usr/local/opt/sqlite/include
==> Summary
🍺 /usr/local/Cellar/sqlite/3.8.8.3: 9 files, 2.1M
2) Install libspatialite
brew install libspatialite
==> Downloading https://homebrew.bintray.com/bottles/libspatialite-4.2.0_1.yosemite.bottle.tar.gz
Already downloaded: /Library/Caches/Homebrew/libspatialite-4.2.0_1.yosemite.bottle.tar.gz
==> Pouring libspatialite-4.2.0_1.yosemite.bottle.tar.gz
🍺 /usr/local/Cellar/libspatialite/4.2.0_1: 26 files, 17M
3) Install spatialite-tools
brew install spatialite-tools
==> Downloading https://homebrew.bintray.com/bottles/spatialite-tools-4.2.0.yosemite.bottle.3.tar.gz
Already downloaded: /Library/Caches/Homebrew/spatialite-tools-4.2.0.yosemite.bottle.3.tar.gz
==> Pouring spatialite-tools-4.2.0.yosemite.bottle.3.tar.gz
🍺 /usr/local/Cellar/spatialite-tools/4.2.0: 21 files, 804K
4) Looks good so far, lets try to use spatialite
spatialite -version
SQLite header and source version mismatch
2015-02-25 13:29:11 9d6c1880fb75660bbabd693175579529785f8a6b
2014-12-09 01:34:36 f66f7a17b78ba617acde90fc810107f34f1a1f2e
So it looks like spatialite is built on top of sqlite3
(f66f7a17b78ba617acde90fc810107f34f1a1f2e)
but not (9d6c1880fb75660bbabd693175579529785f8a6b)
Current version 3.8.8.3 9d6c1880fb75660bbabd693175579529785f8a6b
Required version 3.8.7.4 f66f7a17b78ba617acde90fc810107f34f1a1f2e
To fix this I need to install manually sqlite 3.8.7.4 instead of 3.8.8.3 which is latest version in homebrew
6) Remove currently installed sqlite
brew remove sqlite
brew unlink sqlite
7) Install sqlite 3.8.7.4
Download tarbal from here https://www.sqlite.org/src/info/f66f7a17b78ba617acde90fc810107f34f1a1f2e and unpack contents
Install with
./configure
sudo make clean
sudo make
sudo make install
8) Try to create spatialite database
spatialite geo.db "SELECT InitSpatialMetaData();"
dyld: lazy symbol binding failed: Symbol not found: _sqlite3_rtree_geometry_callback
Referenced from: /usr/local/lib/libspatialite.7.dylib
Expected in: /usr/local/lib/libsqlite3.0.dylib
dyld: Symbol not found: _sqlite3_rtree_geometry_callback
Referenced from: /usr/local/lib/libspatialite.7.dylib
Expected in: /usr/local/lib/libsqlite3.0.dylib
Trace/BPT trap: 5
So the issue is that it cannot find _sqlite3_rtree_geometry_callback in a library...
Please point me what I did wrong or if there is a better way to install it on OS X
Thank you for your time

Installation error with Octave on Homebrew OS X Mountain lion (10.8.5)

I am trying to install Octave on Mac 10.8.5 using Homebrew.
I ran the following commands in the terminal to install that after installing Xquartz.
brew tap homebrew/science
brew update && brew upgrade
brew install octave
After doing this it successfully installed all the dependencies and finally reached at the last option of installing octave as shown below. But while installing Octave it gave the following error:
==> Installing octave
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> Downloading http://ftpmirror.gnu.org/octave/octave-3.6.4.tar.bz2
######################################################################## 100.0%
==> Downloading patches
######################################################################## 100.0%
==> Patching
patching file configure.ac
Hunk #1 succeeded at 1605 (offset 2 lines).
==> autoreconf -ivf
==> ./configure --prefix=/usr/local/Cellar/octave/3.6.4 --with-blas=-Wl,-framewo
==> make all
==> make install
./plot.texi:3957: warning: node `Multiple Plot Windows' is prev for `Printing and Saving Plots' in menu but not in sectioning
make[3]: *** [octave.info] Error 1
make[2]: *** [install-recursive] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install] Error 2
READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting
If reporting this issue please do so at (not mxcl/homebrew):
https://github.com/homebrew/homebrew-science/issues
Kindly note that all the dependencies which gets installed when you run brew install octave didn't throw and error and after that only it started installing octave.
Please take a look at this link
https://github.com/Homebrew/homebrew-science/issues/444
use --enable-docs=no option. It will work on mountain lion.
I too had the same issue; fixed by adding the option.

Resources