Homebrew / legacy-homebrew

💀 The former home of Homebrew/homebrew (deprecated)
https://brew.sh
26.96k stars 11.35k forks source link

brew install irssi fails #4823

Closed q closed 13 years ago

q commented 13 years ago

Every time i try to install irssi, i get the following: Error: Failed executing: ./configure --prefix=/usr/local/Cellar/irssi/0.8.15 --with-perl=yes --with-perl-lib=site --with-bot --with-proxy --enable-ssl --enable-ipv6

I've attached my brew doctor and brew install output in this gist: https://gist.github.com/882365

This is a week old machine, homebrew was the first thing i installed on it. Since then i've also installed git, the official python 2.7 install, virtualbox, and mercurial. (I think this is it but tbh I might be missing a few external apps i installed).

adamv commented 13 years ago

"Hardware: 8-core 64-bit dunno"

What CPU are you running?

adamv commented 13 years ago

also: you need to put "/usr/local/bin" head of "/usr/bin" in your $PATH, so the proper (Homebrew's) pkg-config gets picked up, so this brew can find glib's .pc file.

q commented 13 years ago

It's a brand new macbook pro, 64bit 10.6.7, 4gb ram, 2.3ghz quad core i7.

As far as putting /usr/local/bin adhead of /usr/bin in my path, why isn't this done by the brew installer if its needed? Also: whats the best practice to do this?

adamv commented 13 years ago

The best way to do this is to put a ".bashrc" file in your home directory with this line: https://github.com/adamv/dotfiles/blob/master/bashrc#L16

Homebrew doesn't do this as it doesn't touch your dot-files.

Looks like we ought to update our CPU detection. Sweet new laptop.

q commented 13 years ago

awesome, this worked! coming from linux where package managers rule all, brew has been a lifesaver in the switch. ty for the quick help on this.

adamv commented 13 years ago

You're welcome!

kezabelle commented 13 years ago

I'm seeing this issue too, doing brew install -v irssi gets me Error: Failed executing: ./configure --prefix=/usr/local/Cellar/irssi/0.8.15 --with-perl=yes --with-perl-lib=site --with-bot --with-proxy --enable-ssl --enable-ipv6 because configure: error: GLIB is required to build irssi.

things of note: Hardware: quad-core 64-bit dunno CC: /usr/bin/cc => /usr/bin/gcc-4.2 CXX: /usr/bin/c++ => /usr/bin/c++-4.2 LD: /usr/bin/cc => /usr/bin/gcc-4.2 CFLAGS: -O3 -w -pipe CXXFLAGS: -O3 -w -pipe MAKEFLAGS: -j4 GCC-4.0: build 5494 GCC-4.2: build 5664 OS X: 10.6.4 HOMEBREW_VERSION: 0.8 HEAD: 6a6067668b1452c4d78ce92eba51fb929886782c

brew missing returns nothing. brew doctor (handy tool!) returns no problems.