When installing the R package RODBC in RStudio on OS X Yosemite, I get the following error:
configure: error: "ODBC headers sql.h and sqlext.h not found"
This is a common error and indicates that ODBC drivers haven't been installed (iODBC headers aren't included in OS 10.9 hence the separate install required). So, I install unixODBC and confirm that the header files are present in the PATH.
Sys.getenv("PATH")
gives me the correct path including where the two files are found.
However, when I try install.packages("RODBC",type = "source")
again, the same error persists. Have tested this with iODBC as well as unixODBC.
Are there any other tests I can perform to help diagnose the issue?
/usr/include
. There is nolibiodbc.a
file in the iODBC source, but I'm thinking one step at a time here. :) Have tried with both iODBC and unixODBC with the same error. – Beutler/usr/lib/libiodbc.dylib
present already though. Do you know of any way to get more verbose debugging from R when it's building a package like this? – Beutlerbrew update && brew install unixODBC && wget "http://cran.r-project.org/src/contrib/RODBC_1.3-10.tar.gz" && R CMD INSTALL RODBC_1.3-10.tar.gz
from the terminal worked on all our Yosemite systems (R3.1.2, latest Yosemite, latest Xcode/Xcode cmd line tools). I realize that requires Homebrew, but it required no tweaking. – Kraken