Closed GoogleCodeExporter closed 9 years ago
This means that you need to install FreeTDS.
This is easily done on a Mac with:
* Homebrew -- `brew install freetds`
* MacPorts -- `port install freetds`
* Fink
etc.
You can also compile it from scratch if you don't use a package manager. Make
sure to run ./configure with --enable-msdblib so that you don't get dates that
are off by 1 month.
Original comment by msabr...@gmail.com
on 2 Sep 2013 at 7:05
Is there a different mirror I can use? I tried `brew install freetds` and get
an HTTP 400:
curl: (22) The requested URL returned error: 400
Error: Download failed:
http://mirrors.ibiblio.org/freetds/stable/freetds-0.91.tar.gz
Original comment by markaric...@gmail.com
on 2 Sep 2013 at 7:25
Downloading the source from
http://mirrors.ibiblio.org/freetds/stable/freetds-0.91.tar.gz and doing
`./configure --enable-msdblib` allowed `pip install pymssql` to build and
install successfully. Thank you!!
Original comment by markaric...@gmail.com
on 2 Sep 2013 at 7:30
Reopening, because I think that we could add code to setup.py to print some
useful info about how to install FreeTDS, kind of like I did with FreeBSD (see
https://code.google.com/p/pymssql/issues/detail?id=97#c12)
Original comment by msabr...@gmail.com
on 11 Sep 2013 at 5:18
Good call. Please let me know if I may be of assistance in testing this change.
Original comment by markaric...@gmail.com
on 11 Sep 2013 at 11:51
Committed this change to add some helpful tips for installing FreeTDS on OS X.
@markarichman, let me know what you think.
Original comment by msabr...@gmail.com
on 19 Sep 2013 at 5:44
I don't see the change. I'm looking here:
https://code.google.com/p/pymssql/source/list
Sorry, new to Google Code.
Original comment by markaric...@gmail.com
on 19 Sep 2013 at 12:53
@markarichman,
Oops, I forgot to post the link to the change. Note that we recently moved the
source code repo from Google Code (Mercurial) to GitHub.
https://github.com/pymssql/pymssql/commit/5fddb67623b3f5b64d7cf3804105656861754b
29
Let me know if that change would've made installing pymssql on OS X easier for
you.
Though I'm now starting to come back to the idea of bundling FreeTDS, since
FreeTDS by default builds without --enable-msdblib, which can lead to problems
with dates (see https://code.google.com/p/pymssql/wiki/FreeTDSAndDates)
Original comment by msabr...@gmail.com
on 19 Sep 2013 at 2:51
Ah yes! Sorry didn't know we switched to GitHub. Yes that message is perfect!
The "--enable-msdblib" was the missing magic I needed.
Original comment by markaric...@gmail.com
on 19 Sep 2013 at 3:19
Cool!
Original comment by msabr...@gmail.com
on 19 Sep 2013 at 3:51
Original issue reported on code.google.com by
markaric...@gmail.com
on 1 Sep 2013 at 11:05