Brew install failing on OS X - possibly something to do with new XCode - macos

I'm trying to do a brew install of fontconfig on OS X 10.8.3 and I'm being thrown with a nasty error. I have XCode 4.6.1 installed.
$ brew install fontconfig
==> Installing fontconfig dependency: pkg-config
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/pkg-config-0.28.mountain_lion.bottle.tar.gz
######################################################################## 100.0%
==> Pouring pkg-config-0.28.mountain_lion.bottle.tar.gz 🍺 /usr/local/Cellar/pkg-config/0.28: 10 files, 636K
==> Installing fontconfig
==> Downloading http://fontconfig.org/release/fontconfig-2.10.91.tar.gz Already downloaded: /Library/Caches/Homebrew/fontconfig-2.10.91.tar.gz
==> Patching patching file src/fcarch.h
==> ./configure --with-add-fonts=/Library/Fonts,~/Library/Fonts --prefix=/usr/local/Cellar/fontconfig/2.10.91
==> make install
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libfontconfig.la] Error 1
make[1]: *** [install] Error 2
make: *** [install-recursive] Error 1
READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting
There seems to be very little information around this issue and it's pretty painful.

*SOLVED*
Turned out I had the DYLD_LIBRARY_PATH env variable set to use with Oracle, and this was causing reference to 32-bit libraries.
Unsetting the DYLD_LIBRARY_PATH env variable fixed this.
Anybody using an Oracle client on their mac should be wary of this!

Related

Error installing wine on OS X 10.9.5

I'm trying to install wine on Mac OS X 10.9.5, but I'm getting some kind of error.
Here is output after
brew install wine
==> Installing dependencies for wine: fontconfig, libtiff, gd, libgphoto2, little-cms2, jasper, libicns, makedepend, openssl, sane-backends
==> Installing wine dependency: fontconfig
==> Downloading http://fontconfig.org/release/fontconfig-2.11.1.tar.bz2
Already downloaded: /Library/Caches/Homebrew/fontconfig-2.11.1.tar.bz2
==> Patching
patching file fc-cache/fc-cache.c
patching file fontconfig/fontconfig.h
patching file src/fccache.c
patching file src/fcdir.c
patching file src/fcfs.c
patching file src/fcint.h
patching file src/fcpat.c
==> ./configure --disable-silent-rules --with-add-fonts=/System/Library/Fonts,/Library/Fonts,~/Library/Fonts --prefix=/usr/local/Cellar/fontconfig/2.11.1 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc
==> make install RUN_FC_CACHE_TEST=false
make[2]: *** [install-data-local] Error 1
make[2]: *** Waiting for unfinished jobs....
/usr/bin/install -c -m 644 fonts.dtd '/usr/local/Cellar/fontconfig/2.11.1/share/xml/fontconfig'
make[1]: *** [install-am] Error 2
make: *** [install-recursive] Error 1
Warning: It appears you have MacPorts or Fink installed.
Software installed with other package managers causes known problems for
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.
READ THIS: https://git.io/brew-troubleshooting
Now I'm not much familiar with brew but if someone can point me on the right track I would appreciate it very much.
Btw, the single reason I'm trying to install wine is so that I can play Civilization3 on OSX.
In the end I installed wine via wineskin.

brew install collada-dom issue with mac os 10.9

So I have been trying to install collada-dom and I keep running into this issue not matter what I try.....
==> Downloading http://downloads.sourceforge.net/project/collada-dom/Collada%20DOM/Collada%20DOM%202.4/collada-dom-2.4.0.tgz
######################################################################## 100.0%
==> Patching
patching file CMakeLists.txt
Hunk #1 succeeded at 127 with fuzz 1 (offset 27 lines).
==> cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/collada-dom/2.4.0 -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev
==> make install
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [dom/libcollada-dom2.4-dp.2.4.0.dylib] Error 1
make[1]: *** [dom/CMakeFiles/collada-dom.dir/all] Error 2
make: *** [all] Error 2
READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting
brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/mxcl/homebrew
HEAD: 90cf3ba4583eebb429edf58deea63425fa492718
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit sandybridge
OS X: 10.9-x86_64
Xcode: 5.0.2
CLT: 5.0.1.0.1.1382131676
Clang: 5.0 build 500
X11: 2.7.5 => /opt/X11
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
I'm not sure if the patch ( https://github.com/mxcl/homebrew/blob/master/Library/Formula/collada-dom.rb ) fails in 10.9 or it's just a problem with my computer... #help

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.

Can't brew install postgresql on Mac Snow Leopard

Trying to install PostgreSQL on my OSX 10.6.8:
$ brew install postgresql
Output (Try 1):
==> Installing dependencies for postgresql: ossp-uuid
==> Installing postgresql dependency: ossp-uuid
==> Downloading ftp://ftp.ossp.org/pkg/lib/uuid/uuid-1.6.2.tar.gz
curl: (7) couldn't connect to host
Trying a mirror...
==> Downloading http://gnome-build-stage-1.googlecode.com/files/uuid-1.6.2.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/ossp-uuid/1.6.2 --without-perl --without-php --without-pgsql
==> make
make: *** [uuid_sha1.lo] Error 1
make: *** Waiting for unfinished jobs....
make: *** [uuid_md5.lo] Error 1
make: *** [uuid.lo] Error 1
make: *** [uuid_prng.lo] Error 1
READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting
Output (Try 2):
==> Installing dependencies for postgresql: ossp-uuid
==> Installing postgresql dependency: ossp-uuid
==> Downloading ftp://ftp.ossp.org/pkg/lib/uuid/uuid-1.6.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/ossp-uuid-1.6.2.tar.gz
==> ./configure --prefix=/usr/local/Cellar/ossp-uuid/1.6.2 --without-perl --without-php --without-pgsql
==> make
i686-apple-darwin10-gcc-4.2.1: vfork: Operation timed out
gcc-4.2: vfork: Operation timed out
make: *** [uuid_prng.lo] Error 1
make: *** [uuid_md5.lo] Error 1
make: *** [uuid.lo] Error 1
READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting
No idea what to do with this. The READ THIS link is useless. Anybody?
UPDATE: Tried brew doctor, which didn't give me anything useful AFAIK, just some warnings about where it was looking for Python:
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
/Library/Frameworks/Python.framework/Versions/2.7/bin/python-config
/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config
error message is not related to postgresql. Have you tried brew doctor?
try brew doctor and see this link (OS X 10.8 - error trying to exec '/usr/bin/i686-apple-darwin11-gcc-4.2.1' - installing json gem) I think you should focus on vfork operation timed out message

Error installing gnupg2 dependency libusb using homebrew

I'm installing gnupg2 using homebrew on mac osx and getting errors intstalling the dependency libusb.
brew install gpg2
....
==> Installing gnupg2 dependency: libusb
==> Downloading http://downloads.sourceforge.net/project/libusb/libusb-1.0/libusb-1.0.9/libusb-1.0.9.tar.bz2
Already downloaded: /Library/Caches/Homebrew/libusb-1.0.9.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/libusb/1.0.9
==> make install
os/darwin_usb.c:1749: error: old-style parameter declarations in prototyped function definition
os/darwin_usb.c:1749: error: expected '{' at end of input
make[1]: *** [libusb_1_0_la-darwin_usb.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [install-recursive] Error 1
Any ideas how to fix this?
Thanks
Had the same problem, fixed it by installing the XCode command line tools (previously was using gcc standalone package)

Resources