Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't built on OSX #1

Closed
sdrib opened this issue Jan 3, 2013 · 14 comments
Closed

Can't built on OSX #1

sdrib opened this issue Jan 3, 2013 · 14 comments

Comments

@sdrib
Copy link

sdrib commented Jan 3, 2013

I am on OSX 10.8.2. I get this error when I try Method 1, as described in the Mac Readme file:
/bin/sh: build: command not found

When I try Method 2: , I get:
sh: bootstrap.sh: No such file or directory

What am I missing? I have the latest Developer Packages.

@openlink
Copy link
Owner

openlink commented Jan 8, 2013

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.

@sdrib
Copy link
Author

sdrib commented Jan 10, 2013

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

@Spacetracker
Copy link

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?

@aireydc
Copy link

aireydc commented Feb 1, 2014

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

@Spacetracker
Copy link

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 notifications@github.com 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
spencer4@bellsouth.net

@aireydc
Copy link

aireydc commented Feb 2, 2014

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 notifications@github.com 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 notifications@github.com 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
spencer4@bellsouth.net

Reply to this email directly or view it on GitHub.

@aireydc
Copy link

aireydc commented Feb 2, 2014

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 notifications@github.com 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 notifications@github.com 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
spencer4@bellsouth.net

Reply to this email directly or view it on GitHub.

@pwagland
Copy link

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.

@openlink
Copy link
Owner

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

@pwagland
Copy link

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 iodbc@openlinksw.com
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|✔]

@openlink
Copy link
Owner

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.

@pwagland
Copy link

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

@98B
Copy link

98B commented May 28, 2017

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

@treadmillian
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants