You can use a generic ODBC manager library to connect to c-treeRTG, similar to how it is done in Windows.
One of the most common is the unixODBC library.
This software may not be installed on your system. Use a command like this to install it:
sudo apt install unixodbcHere's how to configure the c-tree ODBC driver and create and test a DSN on Linux.
[ctreeDriver]
Driver=/path/to/libctodbc.so
Description=ODBC for c-treeRTG
FileUsage=1
Note - The libctodbc.so library is installed along with c-tree in the "drivers/ctree.drivers/lib" subfolder.
Driver=ctreeDriver
Host=localhost
Database=ctreeSQL
Service=6597
Description=ctreeSQL data source
odbcinst -i -d -f /etc/odbcinst.ini
odbcinst -i -s -l -f /etc/odbc.ini
You can test if your DSN is installed by executing:
odbcinst -s -q
Expected result: [ctreeDSN]
export ODBCINI=/etc/odbc.ini
isql -v ctreeDSN admin ADMIN
Article ID: 305
Created: August 8, 2019
Last Updated: March 17, 2023
Author: Support KB Author
Online URL: https://support.veryant.com/phpkb/article.php?id=305