Skip to main content

Installation

wget -O ldb.zip https://github.com/scanoss/ldb/archive/master.zip
unzip ldb.zip
cd ldb-master
make
make lib
sudo make install

Directory Setup

In production environments, the Knowledge Base is typically stored on a dedicated disk. Create your KB directory:
sudo mkdir -p /data/ldb/oss  # 'oss' is the KB name
sudo chown -R user:user /data/ldb  # Replace 'user' with your username
sudo chmod -R 755 /data/ldb
Create a symbolic link from the standard location to your actual KB directory:
sudo ln -s /data/ldb /var/lib/ldb
The subdirectories (purl, url, file, wfp) are automatically created during the KB importation process, so you don’t need to create them manually.

Verify Installation

ldb
You should see:
Welcome to LDB 2.02
Use help for a command list and quit for leaving this session
Exit with:
ldb> quit