Skip to Content.
Sympa Menu

freetds - Re: [freetds] cannot build freetds-0.91RC2 with homebrew - any help would be greatly appreciated

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Ken Collins <ken AT metaskills.net>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] cannot build freetds-0.91RC2 with homebrew - any help would be greatly appreciated
  • Date: Wed, 11 May 2011 16:27:59 -0400


Tom,

1) TinyTDS is just fine with 0.82, you only need 0.91.dev/rc if you want to
avoid the freetds.conf file and/or use SQL Azure.

2) All the info below is FYI, but honestly you do not need it. The TinyTDS
project includes Luis' great Miniportile project and you should be able to
clone the git repo and do the following commands (from memory) and it will
build a native gem just for you by building FreeTDS within the scope of the
project and linking it all together for you. You can then gem install from
that gem in the pkg dir.

$ bundle install
$ rake compile
$ rake native gem

3) The Homebrew questions may be better off on their list. I myself use
MacPorts and my port file does the following. These should be applied in the
DSL of Homebrew in some way.

a) Use
http://www.ibiblio.org/pub/Linux/ALPHA/freetds/current/freetds-current.tgz

b) If you have to specific checksum, then be prepared to alter it
when that link above
is updated. I typically curl that url and pipe it to md5 before
installing to be sure.
Currently 877d8ca47a38775b95cb4e6b4b8bd4bf

c) My portfile specifies the following deps. libiconv, ncurses, and
readline. Tho I
really only know that libiconv is the most important. I also specify
a port variant that
puts OpenSSL as a dep in. Again, if your not using SQL Azure or need
SSL connections
to the db, do not worry about it.

d) I use the following configure args. I have found that tds ver 8 is
a run-time backward
compatibility with a conf file and is not a valid configure option
for 0.91.dev/rc. Again this
does not include "--with-openssl=${prefix}" if you pull in that
variant. Note too, that
"--enable-msdb" is moot, long story, you do not need it. TinyTDS does
what it should
in specifying what it needs from FreeTDS.

--mandir=${prefix}/share/man \
--includedir=${prefix}/include/${name} \
--sysconfdir=${prefix}/etc/${name} \
--with-libiconv-prefix=${prefix} \
--with-tdsver=7.1

e) Because my portfile uses the current nightly and always moving
version number, I have
to get detailed with my version "0.92.dev.20110509" and name of my
distfiles "freetds-current.tgz"
Be prepared to find some crazy details of Homebrew :)

f) If you want to see my portfile:

https://github.com/metaskills/macports/blob/master/databases/freetds/Portfile


- Ken


On May 11, 2011, at 2:45 PM, Tom Hoen wrote:

> I am trying to install the .91RC2 version of FreeTDS using Homebrew. I
> currently have the .82 version installed and working well, but I understand
> that tiny_tds works better with .91 so wanted to give it a whirl.
>
>
>
> I modified my freetds homebrew formula to point to the .91RC2 tarball.
>
>
>
> Here are the messages that are returned after running 'brew install freetds'
>
>
>
> ==> Downloading
> http://www.ibiblio.org/pub/Linux/ALPHA/freetds/stable/release_candidates/f
>
> File already downloaded and cached to /Users/user/Library/Caches/Homebrew
>
> ==> ./configure --prefix=/usr/local/Cellar/freetds/0.91RC2 --with-tdsver=8.0
> --enable-msdb
>
> ==> make
>
> ==> make install
>
> Making install in include
>
> make[2]: Nothing to be done for `install-exec-am'.
>
> test -z "/usr/local/Cellar/freetds/0.91RC2/include" || .././install-sh -c -d
> "/usr/local/Cellar/freetds/0.91RC2/include"
>
> test -z "/usr/local/Cellar/freetds/0.91RC2/include" || .././install-sh -c -d
> "/usr/local/Cellar/freetds/0.91RC2/include"
>
> mkdir: /usr/local/Cellar/freetds/0.91RC2/include: File exists
>
> make[2]: *** [install-includeHEADERS] Error 1
>
> make[2]: *** Waiting for unfinished jobs....
>
> /usr/bin/install -c -m 644 tds_sysdep_public.h
> '/usr/local/Cellar/freetds/0.91RC2/include'
>
> make[1]: *** [install-am] Error 2
>
> make: *** [install-recursive] Error 1
>
> ==> Exit Status: 2
>
> http://github.com/mxcl/homebrew/blob/master/Library/Formula/freetds.rb#L11
>
> ==> Environment
>
> HOMEBREW_VERSION: 0.8
>
> HEAD: 7caf1024645061b18363c65b45ebc076e4a5c697
>
> HOMEBREW_PREFIX: /usr/local
>
> HOMEBREW_CELLAR: /usr/local/Cellar
>
> HOMEBREW_REPOSITORY: /usr/local
>
> HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew
>
> Hardware: quad-core 64-bit arrandale
>
> OS X: 10.6.7
>
> Kernel Architecture: i386
>
> Ruby: 1.8.7-174
>
> /usr/bin/ruby =>
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
>
> Xcode: 3.2.3
>
> GCC-4.0: build 5494
>
> GCC-4.2: build 5664
>
> LLVM: build 2326
>
> MacPorts or Fink? false
>
> X11 installed? true
>
> ==> Build Flags
>
> 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
>
>
>
> Error: Failed executing: make install
>
> Please report this bug: https://github.com/mxcl/homebrew/wiki/new-issue
>
>
>
> Also try:
>
> `brew doctor` to check your setup for common problems.
>
> `brew missing` to check installed packages for missing deps.
>
>
>
> I have since reinstalled the .82 version without issue.
>
>
>
> I would be grateful for some advice as to why make is failing.
>
>
>
> Best,
>
> Tom
>
>
>
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds





Archive powered by MHonArc 2.6.24.

Top of Page