Can't brew install postgresql on Mac Snow Leopard - macos

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

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.

Unable to link node to brewdoctor

I have been trying to link node to brewdoctor and it says it is not symlinked properly due to node/ares.h
I ran it in terminal and got this:
brew install node
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/node
0.10.32.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring node-0.10.32.mavericks.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink include/node/ares.h
/usr/local/include/node is not writable.
You can try again using:
brew link node
==> make install
scripts/doc-build.sh doc/api/npm-bin.md man/man3/npm-bin.3
node cli.js install ronn --no-global
bash: node: command not found
make[1]: *** [node_modules/.bin/ronn] Error 127
make: *** [man/man3/npm-bin.3] Error 2
Warning: The post-install step did not complete successfully
You can try again using `brew postinstall node`
==> Summary
/usr/local/Cellar/node/0.10.32: 1678 files, 19M
Then I ran brew postinstall node and got this:
brew postinstall node
==> make install
scripts/doc-build.sh doc/api/npm-bin.md man/man3/npm-bin.3
node cli.js install ronn --no-global
bash: node: command not found
make[1]: *** [node_modules/.bin/ronn] Error 127
make: *** [man/man3/npm-bin.3] Error 2
Any way to fix this? Thanks!

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.

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)

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

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!

Resources