DEV Community

Mukit, Ataul
Mukit, Ataul

Posted on

Install Quarks in Ubuntu 20.04 and above

Installing and Running Quarks Database on Ubuntu

Quarks is a lightweight, high-performance database designed for specific workloads. This tutorial will guide you through installing and running Quarks on an Ubuntu system.

Prerequisites

Before installing Quarks, ensure that your system is up to date. Run the following command:

sudo apt-get update -y

Step 1: Install Required Dependencies

Quarks requires several essential dependencies to be installed before proceeding with the build.

sudo apt install cmake  
sudo apt-get install build-essential  
sudo apt-get install ninja-build  
Enter fullscreen mode Exit fullscreen mode

These packages include essential build tools like CMake, Ninja, and build-essential.

Step 2: Install Boost 1.69

Quarks depends on Boost libraries, so we need to install Boost 1.69 manually.

Download Boost 1.69

Navigate to /usr/local/src and download the Boost 1.69 source code using wget:

cd /usr/local/src  
sudo wget -O boost_1_69_0.tar.gz https://archives.boost.io/release/1.69.0/source/boost_1_69_0.tar.gz  
Enter fullscreen mode Exit fullscreen mode

Extract the Archive

Unpack the downloaded archive:

sudo tar -xvzf boost_1_69_0.tar.gz  
cd boost_1_69_0  
Enter fullscreen mode Exit fullscreen mode

Build and Install Boost

Run the following commands to bootstrap and install Boost:

sudo ./bootstrap.sh --prefix=/usr/local  
sudo ./b2 install  
Enter fullscreen mode Exit fullscreen mode

This process will compile and install Boost in /usr/local.

Step 3: Install Additional Dependencies

Install other required dependencies:

sudo apt-get install libv8-dev  # (Optional: Only needed if using the V8 engine)  
sudo apt-get install librocksdb-dev  
sudo apt-get install libzmq3-dev  
Enter fullscreen mode Exit fullscreen mode

These libraries are required for Quarks' functionality.

Step 4: Clone and Build Quarks

Clone the Repository

Retrieve the Quarks source code from GitHub:

git clone https://github.com/lucpattyn/quarks.git  
cd quarks  
Enter fullscreen mode Exit fullscreen mode

Build Quarks

Create a build directory and use CMake with Ninja to compile Quarks:

mkdir build  
cd build  
cmake .. -G Ninja  
ninja  
Enter fullscreen mode Exit fullscreen mode

Step 5: Run Quarks

Once the build is complete, you can run Quarks using the following command:

./ocv_microservice_crow  
Enter fullscreen mode Exit fullscreen mode

This will start the Quarks microservice.

Conclusion

By following this guide, you have successfully installed and run Quarks on your Ubuntu system. If you encounter any issues, ensure that all dependencies are correctly installed and try re-running the build steps.

Heroku

Deploy with ease. Manage efficiently. Scale faster.

Leave the infrastructure headaches to us, while you focus on pushing boundaries, realizing your vision, and making a lasting impression on your users.

Get Started

Top comments (0)

Playwright CLI Flags Tutorial

5 Playwright CLI Flags That Will Transform Your Testing Workflow

  • 0:56 --last-failed: Zero in on just the tests that failed in your previous run
  • 2:34 --only-changed: Test only the spec files you've modified in git
  • 4:27 --repeat-each: Run tests multiple times to catch flaky behavior before it reaches production
  • 5:15 --forbid-only: Prevent accidental test.only commits from breaking your CI pipeline
  • 5:51 --ui --headed --workers 1: Debug visually with browser windows and sequential test execution

Learn how these powerful command-line options can save you time, strengthen your test suite, and streamline your Playwright testing experience. Click on any timestamp above to jump directly to that section in the tutorial!

Watch Full Video 📹️

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay