Installation
Packages
Pre-built packages are available for CentOS 6/7/8, Ubuntu 14.04/16.04/18.04 and Windows 7 SP1 and above.
CentOS
Version | URL |
---|---|
CentOS 6 | http://downloads.datastax.com/cpp-driver/centos/6/dse |
CentOS 7 | http://downloads.datastax.com/cpp-driver/centos/7/dse |
CentOS 8 | http://downloads.datastax.com/cpp-driver/centos/8/dse |
Dependencies
CentOS doesn’t have up-to-date versions of libuv so we provide current packages.
Version | URL |
---|---|
CentOS 6 | http://downloads.datastax.com/cpp-driver/centos/6/dependencies |
CentOS 7 | http://downloads.datastax.com/cpp-driver/centos/7/dependencies |
CentOS 8 | http://downloads.datastax.com/cpp-driver/centos/8/dependencies |
To Install
Install dependencies:
yum install openssl krb5
rpm -Uvh libuv-<version>.rpm
Note: Replace <version>
with the release version of the package.
Install the runtime library:
rpm -Uvh dse-cpp-driver-<version>.rpm
When developing against the driver you’ll also want to install the development package and the debug symbols.
rpm -Uvh dse-cpp-driver-devel-<version>.rpm
rpm -Uvh dse-cpp-driver-debuginfo-<version>.rpm
Ubuntu
Version | URL |
---|---|
Ubuntu 14.04 | http://downloads.datastax.com/cpp-driver/ubuntu/14.04/dse |
Ubuntu 16.04 | http://downloads.datastax.com/cpp-driver/ubuntu/16.04/dse |
Ubuntu 18.04 | http://downloads.datastax.com/cpp-driver/ubuntu/18.04/dse |
Dependencies
Ubuntu doesn’t have up-to-date versions of libuv so we provide current packages.
Version | URL |
---|---|
Ubuntu 14.04 | http://downloads.datastax.com/cpp-driver/ubuntu/14.04/dependencies |
Ubuntu 16.04 | http://downloads.datastax.com/cpp-driver/ubuntu/16.04/dependencies |
Ubuntu 18.04 | http://downloads.datastax.com/cpp-driver/ubuntu/18.04/dependencies |
To Install
Install dependencies:
apt-get install libssl libkrb5
dpkg -i libuv_<version>.deb
Note: Replace <version>
with the release version of the package.
Install the runtime library:
dpkg -i dse-cpp-driver_<version>.deb
When developing against the driver you’ll also want to install the development package and the debug symbols.
dpkg -i dse-cpp-driver-dev_<version>.deb
dpkg -i dse-cpp-driver-dbg_<version>.deb
Windows
Version | URL |
---|---|
Windows | http://downloads.datastax.com/cpp-driver/windows/dse |
Dependencies
We provide packages (.zip
files) for all the dependencies (except for
Kerberos) on Windows because they can be difficult to install/build.
Version | URL |
---|---|
Windows | http://downloads.datastax.com/cpp-driver/windows/dependencies |
To Install
First, you will need to download and install Kerberos for Windows.
Unzip the packages (from http://downloads.datastax.com) and add the include and
library directories to your project’s Additional Include Directories
and
Additional Dependencies
configuration properties.
Building
If prebuilt packages are not available for your platform or architecture you will need to build the driver from source. Building and installing the C/C++ DataStax Enterprise Driver is similar to the core C/C++ driver. Directions for building and installing the core driver can be found here. In addition to the core driver’s dependencies the DSE driver also requires Kerberos:
- Ubuntu requires the package
libkrb5-dev
- RHEL (CentOS) requires the package
krb5-devel
- Windows requires Kerberos for Windows to be installed