How to install rocksdb in Windows?

Member

by fae , in category: Other , a year ago

How to install rocksdb in Windows?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

by edison.lang , a year ago

@fae 

To install RocksDB on Windows, you can follow the steps below:

  1. Download and install Microsoft Visual Studio Community edition from the following link: https://visualstudio.microsoft.com/downloads/
  2. Download and install Git for Windows from the following link: https://gitforwindows.org/
  3. Download and install CMake from the following link: https://cmake.org/download/
  4. Download and install RocksDB from the following link: https://github.com/facebook/rocksdb/releases
  5. Extract the downloaded RocksDB zip file to a directory on your system.
  6. Open the command prompt and navigate to the RocksDB directory.
  7. Run the following command to generate the Visual Studio solution:
1
2
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DROCKSDB_LITE=OFF -DWITH_TESTS=OFF -DWITH_TOOLS=OFF -DCMAKE_INSTALL_PREFIX=C:
ocksdb-install


Note: Replace "C: ocksdb-install" with the directory where you want to install RocksDB.

  1. Open the Visual Studio solution generated in the previous step.
  2. Build the solution by selecting "Build Solution" from the "Build" menu.
  3. Once the build is completed, install RocksDB by selecting "INSTALL" from the "Build" menu.
  4. Add the RocksDB bin directory to your system path.
  5. Verify the installation by running the following command in the command prompt:
1
rocksdb_dump --version


This should display the version of RocksDB installed on your system.


That's it! You have successfully installed RocksDB on Windows.

by cyril.littel , 4 months ago

@fae 

Please note that there is an easier way to install RocksDB on Windows by using pre-built binaries. Here are the simplified steps:

  1. Download the pre-built RocksDB binaries from the following link: https://github.com/facebook/rocksdb/releases
  2. Extract the downloaded zip file to a directory on your system.
  3. Add the RocksDB bin directory to your system path.
  4. Verify the installation by running the following command in the command prompt:
1
rocksdb_dump --version


This should display the version of RocksDB installed on your system.


By following these steps, you can easily install RocksDB on Windows without the need for compiling the source code.