Git Product home page Git Product logo

Comments (14)

openlink avatar openlink commented on August 26, 2024 1

Ah, there was a config option for 10.11 missing from the mac/Makefile. Please pull the latest fix which should resolve your build problem.

from iodbc.

openlink avatar openlink commented on August 26, 2024

I fixed some problems when trying to compile iODBC using the latest XCode package on Mac OS X 10.8.

Please checkout the latest develop branch of iODBC.

note that you need to have autoconf/automake/libtool which are not shipped anymore with recent versions of Xcode. I suggest you install them using homebrew, fink or macports.

from iodbc.

sdrib avatar sdrib commented on August 26, 2024

Brilliant! thank you for the answer. Installing Homebrew now and trying again. I will get back to this thread with results.

from iodbc.

Spacetracker avatar Spacetracker commented on August 26, 2024

I can run on OSX 10.6 with the dmg build on the web site, pyodbc (sudo pip install http://river.styx.org/ww/2010/10/pyodbc-spasql/pyodbc-virtuoso-2.1.9-beta14.tar.gz), and the Virtuoso 0.12.6 plug-in (https://pypi.python.org/pypi/virtuoso) for Python.

When I run on 10.8, a simple pyodbc connect crashes in libiodbc.2.dylib SQLFreeStmt + 76. I removed iODBC from my previous dmg install, and I built iODBC according to the suggestion above. iodbctest still works, but the pyodbc connect crashes here, seemingly in the same spot:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 org.iodbc.core 0x00000001020f0f7c SQLFreeStmt + 76
1 pyodbc.so 0x0000000101de9806 GetConnectionInfo(object, Connection_) + 668

I have tried a newer version of pyodbc than the Virtuoso plug-in requires as well, but the same crash occurs.
PS: I would like to use the Virtuoso plug-in with a newer version of pyodbc anyway, if possible.

Addendum: Today I rebuilt pyodbc 3.07 and pointed to the proper iODBC include and lib. The notes in the setup.py says Apple is no longer maintaining iODBC in 10.8. Anyway, I traced a working and nonworking connect session and found that the SQLDriverConnectW entry does and does not print out the connect string, respectively. The python test code is the very same, and in OSX 10.8 pyodbc is not getting the connect string to iODBC. With iodbctest, it is normal. My next difficult step is to turn on debug in C++ and python. It doesn't make sense that what is working in 10.6 in a basic library is broken after upgrading to 10.8.

Solutions? Suggestions?

from iodbc.

aireydc avatar aireydc commented on August 26, 2024

Would you please update iODBC so that it will also install on OS X 10.9.1 without the same error as above, or comment on installation on Mavericks? Thank you. I got the errors below after brew installing the three packages mentioned.

aireydcmbp:mac aireydc$ make
sh framework-include.sh
Building on Mac OS X 10.9.1
Projbuild is []
cd iODBCinst; build
/bin/sh: build: command not found
make: *** [all] Error 127

from iodbc.

Spacetracker avatar Spacetracker commented on August 26, 2024

I wish I had a solution for you, but I gave up trying to build iODBC with OS X 10.8, and started using rdflib (with Python) with SPARQL endpoints from then on and now.

On Feb 1, 2014, at 4:50 PM, David Airey [email protected] wrote:

Would you please update iODBC so that it will also install on OS X 10.9.1 without the same error as above, or comment on installation on Mavericks? Thank you. I got the errors below after brew installing the three packages mentioned.

aireydcmbp:mac aireydc$ make
sh framework-include.sh
Building on Mac OS X 10.9.1
Projbuild is []
cd iODBCinst; build
/bin/sh: build: command not found
make: *** [all] Error 127


Reply to this email directly or view it on GitHub.

Richard Spencer
[email protected]

from iodbc.

aireydc avatar aireydc commented on August 26, 2024

3 months ago, one from the hosting company said it was alive and well in response to someone complaining about iODBC and R not working together. Perhaps iODBC is not well supported?

Thanks.

On Feb 1, 2014, at 5:58 PM, Spacetracker [email protected] wrote:

I wish I had a solution for you, but I gave up trying to build iODBC with OS X 10.8, and started using rdflib (with Python) with SPARQL endpoints from then on and now.

On Feb 1, 2014, at 4:50 PM, David Airey [email protected] wrote:

Would you please update iODBC so that it will also install on OS X 10.9.1 without the same error as above, or comment on installation on Mavericks? Thank you. I got the errors below after brew installing the three packages mentioned.

aireydcmbp:mac aireydc$ make
sh framework-include.sh
Building on Mac OS X 10.9.1
Projbuild is []
cd iODBCinst; build
/bin/sh: build: command not found
make: *** [all] Error 127


Reply to this email directly or view it on GitHub.

Richard Spencer
[email protected]

Reply to this email directly or view it on GitHub.

from iodbc.

aireydc avatar aireydc commented on August 26, 2024

Here is the scoop:

https://stat.ethz.ch/pipermail/r-sig-mac/2013-October/010435.html

-Dave

On Feb 1, 2014, at 5:58 PM, Spacetracker [email protected] wrote:

I wish I had a solution for you, but I gave up trying to build iODBC with OS X 10.8, and started using rdflib (with Python) with SPARQL endpoints from then on and now.

On Feb 1, 2014, at 4:50 PM, David Airey [email protected] wrote:

Would you please update iODBC so that it will also install on OS X 10.9.1 without the same error as above, or comment on installation on Mavericks? Thank you. I got the errors below after brew installing the three packages mentioned.

aireydcmbp:mac aireydc$ make
sh framework-include.sh
Building on Mac OS X 10.9.1
Projbuild is []
cd iODBCinst; build
/bin/sh: build: command not found
make: *** [all] Error 127


Reply to this email directly or view it on GitHub.

Richard Spencer
[email protected]

Reply to this email directly or view it on GitHub.

from iodbc.

pwagland avatar pwagland commented on August 26, 2024

Two years later, and the Mac directory doesn't build when following the directions https://github.com/openlink/iODBC/blob/develop/README.MACOSX.

Method 2, does seem to work, but does not build/install any of the applications.

from iodbc.

openlink avatar openlink commented on August 26, 2024

Thanks for reporting. I fixed the problem on the latest develop branch. Please try Method 1 again.

from iodbc.

pwagland avatar pwagland commented on August 26, 2024

Thanks for the quick response! Sadly, that doesn't work for me:

17:39 $ git clone https://github.com/openlink/iODBC.git
Cloning into 'iODBC'...
remote: Counting objects: 7798, done.
remote: Compressing objects: 100% (45/45), done.
remote: Total 7798 (delta 23), reused 0 (delta 0), pack-reused 7739
Receiving objects: 100% (7798/7798), 3.30 MiB | 1.03 MiB/s, done.
Resolving deltas: 100% (6183/6183), done.
Checking connectivity... done.
~/Downloads/iodbc
17:40 $ cd iODBC
~/Downloads/iodbc/iODBC [develop|]
17:40 $ cd mac/
~/Downloads/iodbc/iODBC/mac [develop|]
17:40 $ make
sh framework-include.sh
Building on Mac OS X 10.11
Projbuild is []
cd iODBCinst; build
/bin/sh: build: command not found
make: *** [all] Error 127
✘-2 ~/Downloads/iodbc/iODBC/mac [develop|]
17:40 $ git log -1
commit b8ede3c
Author: iODBC Maintainer [email protected]
Date: Thu Mar 10 15:44:41 2016 +0100

Fixed issue with Xcode on Mac OS X 10.10 Xcode 7.2.1

The Xcode tools are installed. I have Xcode 7.2.1, and the tools are installed.

17:41 $ xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
✘-1 ~/Downloads/iodbc/iODBC/mac [develop|]

from iodbc.

pwagland avatar pwagland commented on August 26, 2024

This now works, so I can build it! This issue can be closed :-)

from iodbc.

98B avatar 98B commented on August 26, 2024

For macOS sierra (10.12), a similar addition to mac/GNUMakefile appears to make it work (tested using the psqlODBC driver; PostgreSQL lets me interact with it remotely, via the iODBC demo app).

When running make, I have deliberately ignored the effect of FixupResourceForks seemingly gone in this edition of the OS.

make: /System/Library/CoreServices/FixupResourceForks: No such file or directory

GNUmakefile.diff.txt

from iodbc.

treadmillian avatar treadmillian commented on August 26, 2024

Thank you for the patch. Worked perfectly for macOS 10.12.6 with Xcode 9 beta 6 installed.

from iodbc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.