-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ODBC-171 Adding BUILD.md file with build instructions
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Building the Connector/ODBC | ||
|
||
Following are build instructions for various operating systems. | ||
|
||
## Windows | ||
|
||
Prior to start building on Windows you need to have following tools installed: | ||
- Microsoft Visual Studio https://visualstudio.microsoft.com/downloads/ | ||
- Git https://git-scm.com/download/win | ||
- cmake https://cmake.org/download/ | ||
|
||
``` | ||
git clone https://github.com/MariaDB/mariadb-connector-odbc.git | ||
cd mariadb-connector-odbc | ||
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCONC_WITH_UNIT_TESTS=Off -DCONC_WITH_MSI=OFF . | ||
cmake --build . --config RelWithDebInfo | ||
msiexec.exe /i wininstall\mariadb-connector-odbc-3.0.6-win32.msi | ||
``` | ||
|
||
## CentOS | ||
|
||
``` | ||
sudo yum -y install git cmake make gcc openssl-devel unixODBC unixODBC-devel | ||
git clone https://github.com/MariaDB/mariadb-connector-odbc.git | ||
mkdir build && cd build | ||
cmake ../mariadb-connector-odbc/ -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCONC_WITH_UNIT_TESTS=Off -DCMAKE_INSTALL_PREFIX=/usr/local | ||
cmake --build . --config RelWithDebInfo | ||
sudo make install | ||
``` | ||
|
||
## Debian & Ubuntu | ||
|
||
``` | ||
sudo apt-get update | ||
sudo sh apt-get install -y git cmake make gcc libssl-dev unixodbc-dev | ||
git clone https://github.com/MariaDB/mariadb-connector-odbc.git | ||
mkdir build && cd build | ||
cmake ../mariadb-connector-odbc/ -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCONC_WITH_UNIT_TESTS=Off -DCMAKE_INSTALL_PREFIX=/usr/local | ||
cmake --build . --config RelWithDebInfo | ||
sudo make install | ||
``` |