Faild to install FreeSWITCH on Mac Lion with brew - macos

Mac OSX 10.7.4
Xcode 4.5
Homebrew 0.9.3
caojinhua:~ caojinhua$ brew install freeswitch
==> Cloning git://git.freeswitch.org/freeswitch.git
Updating /Library/Caches/Homebrew/freeswitch--git
==> Checking out tag v1.2.0
==> ./bootstrap.sh -j4
==> ./configure --enable-shared --enable-static --prefix=/usr/local/Cellar/freeswitch/1.2.0 --exec_prefix=/usr/local/Cellar
==> make
Creating mod_spandsp.la
brew: superenv removed: -O2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Error: freeswitch did not build
Logs: /Users/caojinhua/Library/Logs/Homebrew/freeswitch/
Help: https://github.com/mxcl/homebrew/wiki/troubleshooting
I have post detail logs on github gist: https://gist.github.com/3877904

i think it's related to http://fisheye.freeswitch.org/changelog/freeswitch.git/?cs=d5d107d
updating repo's tag to version 1.3.3 solved this issue. i manually edit the Library/Formula/freeswitch.rb to reflect the change:
ayik#tabakan:/usr/local$ diff Library/Formula/freeswitch-orig.rb Library/Formula/freeswitch.rb
5,6c5,6
< url 'git://git.freeswitch.org/freeswitch.git', :tag => 'v1.2.0'
< version '1.2.0'
---
> url 'git://git.freeswitch.org/freeswitch.git', :tag => 'v1.3.3'
> version '1.3.3'
submitted also on github homebrew issue #16014

Related

rbenv install 2.2.1 BUILD FAILED Ubuntu 16.04

Here is the error log
Downloading ruby-2.2.1.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.1.tar.bz2
Installing ruby-2.2.1...
WARNING: ruby-2.2.1 is past its end of life and is now unsupported.
It no longer receives bug fixes or critical security updates.
BUILD FAILED (Ubuntu 16.04 using ruby-build 20181019-2-gd49b8a1)
Inspect or clean up the working tree at /tmp/ruby-build.20181025114001.11061
Results logged to /tmp/ruby-build.20181025114001.11061.log
Last 10 log lines:
make[2]: Leaving directory '/tmp/ruby-build.20181025114001.11061/ruby-2.2.1/ext/objspace'
installing default date_core libraries
installing default nkf libraries
linking shared-object nkf.so
linking shared-object date_core.so
make[2]: Leaving directory '/tmp/ruby-build.20181025114001.11061/ruby-2.2.1/ext/nkf'
make[2]: Leaving directory '/tmp/ruby-build.20181025114001.11061/ruby-2.2.1/ext/date'
make[1]: Leaving directory '/tmp/ruby-build.20181025114001.11061/ruby-2.2.1'
uncommon.mk:189: recipe for target 'build-ext' failed
make: *** [build-ext] Error 2
I'm not sure what to do here. I am new to rbenv. I try to fix this issues searching on google but nothing work also I've try to install apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6 libreadline6-dev zlib1g zlib1g-dev
here is the complete log ruby-build.20181025125952.32167.log

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)

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