1# Installation 2 3## Packages 4 5Pre-built packages are available for CentOS 6/7/8, Ubuntu 14.04/16.04/18.04 and 6Windows 7 SP1 and above. 7 8### CentOS 9 10<table class="table table-striped table-hover table-condensed"> 11 <thead> 12 <tr> 13 <th>Version</th> 14 <th>URL</th> 15 </tr> 16 </thead> 17 18 <tbody> 19 <tr> 20 <td>CentOS 6</td> 21 <td>http://downloads.datastax.com/cpp-driver/centos/6/cassandra</td> 22 </tr> 23 <tr> 24 <td>CentOS 7</td> 25 <td>http://downloads.datastax.com/cpp-driver/centos/7/cassandra</td> 26 </tr> 27 <tr> 28 <td>CentOS 8</td> 29 <td>http://downloads.datastax.com/cpp-driver/centos/8/cassandra</td> 30 </tr> 31 </tbody> 32</table> 33 34#### Dependencies 35 36CentOS doesn't have up-to-date versions of libuv so we provide current packages. 37 38<table class="table table-striped table-hover table-condensed"> 39 <thead> 40 <tr> 41 <th>Version</th> 42 <th>URL</th> 43 </tr> 44 </thead> 45 46 <tbody> 47 <tr> 48 <td>CentOS 6</td> 49 <td>http://downloads.datastax.com/cpp-driver/centos/6/dependencies</td> 50 </tr> 51 <tr> 52 <td>CentOS 7</td> 53 <td>http://downloads.datastax.com/cpp-driver/centos/7/dependencies</td> 54 </tr> 55 <tr> 56 <td>CentOS 8</td> 57 <td>http://downloads.datastax.com/cpp-driver/centos/8/dependencies</td> 58 </tr> 59 </tbody> 60</table> 61 62#### To Install 63 64Install dependencies: 65 66```bash 67yum install openssl krb5 zlib 68rpm -Uvh libuv-<version>.rpm 69``` 70 71Note: Replace `<version>` with the release version of the package. 72 73Install the runtime library: 74 75```bash 76rpm -Uvh cassandra-cpp-driver-<version>.rpm 77``` 78 79When developing against the driver you'll also want to install the development 80package and the debug symbols. 81 82```bash 83rpm -Uvh cassandra-cpp-driver-devel-<version>.rpm 84rpm -Uvh cassandra-cpp-driver-debuginfo-<version>.rpm 85``` 86 87### Ubuntu 88 89<table class="table table-striped table-hover table-condensed"> 90 <thead> 91 <tr> 92 <th>Version</th> 93 <th>URL</th> 94 </tr> 95 </thead> 96 97 <tbody> 98 <tr> 99 <td>Ubuntu 14.04</td> 100 <td>http://downloads.datastax.com/cpp-driver/ubuntu/14.04/cassandra</td> 101 </tr> 102 <tr> 103 <td>Ubuntu 16.04</td> 104 <td>http://downloads.datastax.com/cpp-driver/ubuntu/16.04/cassandra</td> 105 </tr> 106 <tr> 107 <td>Ubuntu 18.04</td> 108 <td>http://downloads.datastax.com/cpp-driver/ubuntu/18.04/cassandra</td> 109 </tr> 110 </tbody> 111</table> 112 113#### Dependencies 114 115Ubuntu doesn't have up-to-date versions of libuv so we provide current packages. 116 117<table class="table table-striped table-hover table-condensed"> 118 <thead> 119 <tr> 120 <th>Version</th> 121 <th>URL</th> 122 </tr> 123 </thead> 124 125 <tbody> 126 <tr> 127 <td>Ubuntu 14.04</td> 128 <td>http://downloads.datastax.com/cpp-driver/ubuntu/14.04/dependencies</td> 129 </tr> 130 <tr> 131 <td>Ubuntu 16.04</td> 132 <td>http://downloads.datastax.com/cpp-driver/ubuntu/16.04/dependencies</td> 133 </tr> 134 <tr> 135 <td>Ubuntu 18.04</td> 136 <td>http://downloads.datastax.com/cpp-driver/ubuntu/18.04/dependencies</td> 137 </tr> 138 </tbody> 139</table> 140 141#### To Install 142 143Install dependencies: 144 145```bash 146apt-get install libssl libkrb5 zlib1g 147dpkg -i libuv_<version>.deb 148``` 149 150Note: Replace `<version>` with the release version of the package. 151 152Install the runtime library: 153 154```bash 155dpkg -i cassandra-cpp-driver_<version>.deb 156``` 157 158When developing against the driver you'll also want to install the development 159package and the debug symbols. 160 161```bash 162dpkg -i cassandra-cpp-driver-dev_<version>.deb 163dpkg -i cassandra-cpp-driver-dbg_<version>.deb 164``` 165 166### Windows 167 168<table class="table table-striped table-hover table-condensed"> 169 <thead> 170 <tr> 171 <th>Version</th> 172 <th>URL</th> 173 </tr> 174 </thead> 175 176 <tbody> 177 <tr> 178 <td>Windows</td> 179 <td>http://downloads.datastax.com/cpp-driver/windows/cassandra</td> 180 </tr> 181 </tbody> 182</table> 183 184#### Dependencies 185 186We provide packages (`.zip` files) for all the dependencies (except for 187Kerberos) on Windows because they can be difficult to install/build. 188 189<table class="table table-striped table-hover table-condensed"> 190 <thead> 191 <tr> 192 <th>Version</th> 193 <th>URL</th> 194 </tr> 195 </thead> 196 197 <tbody> 198 <tr> 199 <td>Windows</td> 200 <td>http://downloads.datastax.com/cpp-driver/windows/dependencies</td> 201 </tr> 202 </tbody> 203</table> 204 205#### To Install 206 207First, you will need to download and install [Kerberos] for Windows. 208 209Unzip the packages (from http://downloads.datastax.com) and add the include and 210library directories to your project's `Additional Include Directories` and 211`Additional Dependencies` configuration properties. 212 213## Building 214 215If pre-built packages are not available for your platform or architecture you 216will need to build the driver from source. Directions for building and 217installing the DataStax C/C++ Driver for Apache Cassandra and DataStax Products 218can be found [here](/topics/building/). 219 220[Kerberos]: https://web.mit.edu/kerberos 221