After a fairly extensive search, I noticed that a number of people are having a hard time finding a start-to-finish guide that answers this question. (At least one question notes that a solution exists, but the proposed solution does not get around the fact that, by default, RODBC attempts to compile against iODBC, which is not included with Yosemite.) I just went through this process, so I thought I would document it here in the hope that it will benefit others. I am connecting to a SQL Server database.
相关问题
- Xcode debugger displays incorrect values for varia
- Is there a way to report errors in Apple documenta
- Advice for supporting both Mac and Windows Desktop
- Avoid cmake to add the flags -search_paths_first a
- installing packages for python 3
相关文章
- 现在使用swift开发ios应用好还是swift?
- Visual Studio Code, MAC OS X, OmniSharp server is
- xcode 4 garbage collection removed?
- IntelliJ IDEA can't open projects or add SDK o
- Automator: How do I use the Choose from List actio
- ImportError: No module named twisted.persisted.sty
- How can I vertically align my status bar item text
- git command-line on Mac OS error “dyld: Symbol not
Using Homebrew as my OS X package manager, I can install
RODBC
with the following steps (assuming I have already installed R).Install
unixodbc
:Install
freetds
(replacing/usr/local/Cellar/unixodbc/2.3.2_1
with yourunixodbc
directory, if necessary):Configure your
freetds
installation (the following is a minimal configuration file):freetds.conf
Test the
freetds
config:Configure your
unixodbc
installation (the following is a minimal configuration file):odbcinst.ini
(and another minimal installation file):
odbc.ini
Test the new configuration with
isql
:Create a symbolic link to the files in your home directory:
Find and modify your
RProfile
file by appending the following line(s) of code to the file (replacing/usr/local/include
with the include directory that contains yoursql.h
andsqlext.h
files; the second line may be unnecessary if the directory does not exist):Now download the
RODBC
package source (which you an download here) to your Downloads folder.Open a new R console session and install the package (replacing
RODBC_1.3-12.tar.gz
with the name of your package source):The package should now work:
Thanks to Jared Folkins and Gabi Huiber for help with figuring out what directories R looks in by default for the requisite files for RODBC.