Error Sql.h Not Found
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings sql.h not found mac and policies of this site About Us Learn more about Stack fatal error: 'sql.h' file not found Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs
Configure Error Sql.h Not Found Freetds
Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them;
Pyodbc Fatal Error Sql.h No Such File Or Directory
it only takes a minute: Sign up “ERROR: sql.h not found” when installing ruby-odbc gem on Ubuntu up vote 13 down vote favorite 2 Attempting to install ruby-odbc gem on Debian/Ubuntu results in the following error; "ERROR: sql.h not found" ruby gem share|improve this question edited Feb 21 '15 at 13:51 asked Jun 12 '13 at 14:51 tombeynon 774517 add sql.h c++ a comment| 2 Answers 2 active oldest votes up vote 22 down vote This happens on OSX too so brew to the rescue: brew install unixodbc share|improve this answer answered Mar 13 '14 at 14:44 eirc 1,157911 1 To get this to work, I had to run gem install ruby-odbc -- --with-odbc-dir=/usr/local/Cellar/unixodbc/2.3.2_1 (or whatever your path to ODBC dir as installed by Brew) –dmichael Nov 5 '14 at 14:58 I also had to use the approach listed in the comment above by @dmichael to get it working. I'm on Yosemite. –Terry Ray Jul 14 '15 at 0:40 same, here's the gem install command without weird formatting: gem install ruby-odbc -- --with-odbc-dir=/usr/local/Cellar/unixodbc/2.3.4 –manroe Aug 25 at 21:32 add a comment| up vote 18 down vote accepted Install the unixodbc-dev package, then try the gem install again sudo apt-get install unixodbc-dev gem install ruby-odbc share|improve this answer answered Jun 12 '13 at 14:51 tombeynon 774517 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Goo
[ thread ] [ subject ] [ author ] Hi, How are you using ./configure for FreeTDS? Are you not specifying the library in which unixODBC is pre-installed? For
Unixodbc-dev
example, I normally use, ./configure --with-tdsver=8.0 --with-unixODBC=/usr/local Also, Make sure that you have ruby odbc example below file present /usr/local/include/sql.h. The sql.h comes from unixODBC package. I installed unixODBC inside /usr/local and hence sql.h is in unixodbc mac include path as /usr/local/include. Sql.h file location would depend on where have you installed unixODBC. Please make sure that sql.h is present under
Sign in Pricing Blog Support Search GitHub This repository Watch 46 Star 382 Fork 147 mkleehammer/pyodbc http://www.freetds.org/userguide/config.htm Code Issues 53 Pull requests 11 Projects 0 Wiki Pulse Graphs New issue Installation fails on OSX 10.11.2 not found #101 Closed rafales opened this Issue Jan 28, 2016 · 7 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 4 participants rafales commented Jan 28, 2016 sql.h not found Hi, I've been trying to install pyodbc on OSX 10.11.2. It's python 3.5 in virtualenv. Here's the output: ➜ ~ pip install pyodbc Collecting pyodbc Using cached pyodbc-3.0.10.tar.gz Building wheels for collected packages: pyodbc Running setup.py bdist_wheel for pyodbc ... error Complete output from command /Users/rafal/.virtualenvs/safari/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/pt/t2v9lzls6xl_27skkvwcvsvh0000gn/T/pip-build-5k1e4xxe/pyodbc/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /var/folders/pt/t2v9lzls6xl_27skkvwcvsvh0000gn/T/tmplqchxhagpip-wheel- --python-tag cp35: running bdist_wheel running build running build_ext building 'pyodbc' extension creating build creating build/temp.macosx-10.10-x86_64-3.5 creating build/temp.macosx-10.10-x86_64-3.5/private creating build/temp.macosx-10.10-x86_64-3.5/private/var creating build/temp.macosx-10.10-x86_64-3.5/private/var/folders creating build/temp.macosx-10.10-x86_64-3.5/private/var/folders/pt creating build/temp.macosx-10.10-x86_64-3.5/private/var/folders/pt/t2v9lzls6xl_27skkvwcvsvh0000gn creating build/temp.macosx-10.10-x86_64-3.5/private/var/folders/pt/t2v9lzls6xl_27skkvwcvsvh0000gn/T creating build/temp.macosx-10.10-x86_64-3.5/private/var/folders/pt/t2v9lzls6xl_27skkvwcvsvh0000gn/T/pip-build-5k1e4xxe creating build/temp.macosx-10.10-x86_64-3.5/private/var/folders/pt/t2v9lzls6xl_27skkvwcvsvh0000gn/T/pip-build-5k1e4xxe/pyodbc creating build/temp.macosx-10.10-x86_64-3.5/private/var/folders/pt/t2v9lzls6xl_27skkvwcvsvh0000gn/T/pip-build-5k1e4xxe/pyodbc/src clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall
you've built other GNU projects, building FreeTDS is a fairly straightforward process. We have a terse and verbose description.
FreeTDS is known to build with GNU and BSD make. If you encounter a large number of build errors, and your operating system's make is not GNU make (as is the case on most non-GNU/Linux systems), you may wish to install GNU make from ftp.gnu.org.