cgrates installation from source in Ubuntu 22.04

421 views
Skip to first unread message

Mmmalik Mesbah

unread,
Mar 1, 2023, 2:36:44 PM3/1/23
to cgr...@googlegroups.com
Hi All,
            I am going to use cgrates for prepaid subscribers of asterisk pjsip accounts.
I checked the installation manual from Installation — CGRateS 0.11.0~dev documentation.

My OS is ubuntu 22.04 and my asterisk version is 18.
Below are the steps I  followed

1.sudo rm -rf /usr/local/go
cd /tmp
wget https://go.dev/dl/go1.20.1.linux-amd64.tar.gz
sudo tar -xvf go1.20.1.linux-amd64.tar.gz -C /usr/local/
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin

cd cgrates
./build.sh
cd data/storage/mysql
./setup_cgr_db.sh user pass
That created cgrates database at maridb

3. sudo apt-get install build-essential fakeroot dh-systemd
: Unable to locate package dh-systemd

4. cd .. 
 cd packages/debian/
make deb
but not getting any packages and also getting some warning warning: Compatibility levels before 10 are deprecated (level 7 in use)
can anyone guide to the right way to install cgrates from source ? 
I am also interested to develop a frontend for cgrates using django.

Regards
Mesbah


Arber Katellari

unread,
Mar 2, 2023, 5:12:48 AM3/2/23
to CGRateS
Hello Mesbah,

You have installed CGRateS on your step number 2. If you want to create your own packages or change them you have to use a Debian machine.

Best regards,
ArberK
Reply all
Reply to author
Forward
0 new messages