ODBC drivers >

JDBC drivers >

Bridges, gateways >

Other >

All products

Connect JDBC to any ODBC driver

Connect JDBC to Microsoft Access

Cross-platform or cross-architecture access to any ODBC driver

ODBC access to any JDBC driver

Connect dbExpress applications to any ODBC driver

Connect XML applications to any ODBC driver

Access mutiple ODBC data sources from one SQL statement

Create custom ODBC drivers

Bespoke data access requirements

In the pipeline

Support

Resources

Quick start

Licensing

Knowledge Base

User Guides

Company

About Us

Careers & Partners

Using RStudio with a non-system version of the unixODBC Driver Manager

Are you evaluating

an ODBC driver?

Yes I am!

By default, RStudio's r-dbi/odbc interface expects to find the unixODBC Driver Manager libraries and include files in a standard location on your system. For example, /usr/lib and /usr/include. If you obtained these libraries and include files by installing a system package, for example, unixodbc and unixodbc-dev, they will be installed in these standard locations.

If you want to use RStudio with a version of unixODBC that's installed in a non-standard location, you need to set and export PKG_CFLAGS and PKG_LIBS prior to running RStudio. For example, we used these commands to build RStudio's ODBC interface against the unixODBC Driver Manager included with the Easysoft SQL Server ODBC driver distribution. Doing this ensured that both the ODBC driver and ODBC application (r-dbi/odbc) were built against the same version of the Driver Manager:

$ export PKG_CFLAGS="-I/usr/local/easysoft/unixODBC/include"
$ export PKG_LIBS="-lodbc -L/usr/local/easysoft/unixODBC/lib"
$ rstudio &
> Sys.getenv()
_ /usr/bin/rstudio
.
.
.
PKG_CFLAGS -I/usr/local/easysoft/unixODBC/include
PKG_LIBS -lodbc -L/usr/local/easysoft/unixODBC/lib
> install.packages("odbc")
Share:

AltStyle によって変換されたページ (->オリジナル) /