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/cassandra
CentOS 7 http://downloads.datastax.com/cpp-driver/centos/7/cassandra
CentOS 8 http://downloads.datastax.com/cpp-driver/centos/8/cassandra

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 zlib
rpm -Uvh libuv-<version>.rpm

Note: Replace <version> with the release version of the package.

Install the runtime library:

rpm -Uvh cassandra-cpp-driver-<version>.rpm

When developing against the driver you’ll also want to install the development package and the debug symbols.

rpm -Uvh cassandra-cpp-driver-devel-<version>.rpm
rpm -Uvh cassandra-cpp-driver-debuginfo-<version>.rpm

Ubuntu

Version URL
Ubuntu 14.04 http://downloads.datastax.com/cpp-driver/ubuntu/14.04/cassandra
Ubuntu 16.04 http://downloads.datastax.com/cpp-driver/ubuntu/16.04/cassandra
Ubuntu 18.04 http://downloads.datastax.com/cpp-driver/ubuntu/18.04/cassandra

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 zlib1g
dpkg -i libuv_<version>.deb

Note: Replace <version> with the release version of the package.

Install the runtime library:

dpkg -i cassandra-cpp-driver_<version>.deb

When developing against the driver you’ll also want to install the development package and the debug symbols.

dpkg -i cassandra-cpp-driver-dev_<version>.deb
dpkg -i cassandra-cpp-driver-dbg_<version>.deb

Windows

Version URL
Windows http://downloads.datastax.com/cpp-driver/windows/cassandra

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 pre-built packages are not available for your platform or architecture you will need to build the driver from source. Directions for building and installing the DataStax C/C++ Driver for Apache Cassandra and DataStax Products can be found here.