Package Overview

The N-Squared Service Daemon software is package into a single package called n2svcd. This package is designed to be installed on Linux based systems such as RedHat Linux and Debian. Installation is performed using standard package management tools - yum and rpm on RedHat based systems, apt and dpkg on debian based systems.

The n2svcd package provides core functionality such as common codecs, the message-passing framework, application base classes, and several “Helper” applications.

The primary service logic applications are provided separately in additional packages such as n2sip, n2dsg, n2acd, n2qd etc.

OS Support

The Service Daemon is supported on the following systems:

RedHat based systems:

Debian based systems:

RedHat Installation: n2svcd

Required Package Installation via yum

The n2svcd package has a number of pre-requisites. If installing onto a server with access to the standard package repositories via the Internet, use the following commands to retrieve and install them.

Install core packages:

yum install epel-release lua lksctp-tools rsyslog nano rsync rsyslog-snmp net-snmp-libs policycoreutils-python

Note the usage of epel-release; this core package acts as yum repository extension package that allows access to additional Perl packages that would otherwise require manual installation.

Install core Perl packages:

yum install \
    perl-DBI \
    perl-JSON \
    perl-Time-HiRes \
    perl-Test-Differences \
    perl-Module-Load \
    perl-List-MoreUtils \
    perl-Object-MultiType \
    perl-ExtUtils-MakeMaker \
    perl-Error \
    perl-XML-Smart \
    perl-Carp-Always \
    perl-TimeDate \
    perl-HTTP-Message \
    perl-TermReadKey \
    perl-Sys-Syslog \
    perl-Digest-SHA \
    perl-Crypt-Eksblowfish \
    perl-IO-Socket-SSL \
    perl-Exporter-Tiny \
    perl-CGI \
    perl-CGI-Session \
    perl-HTTP-Cookies \
    perl-MIME-Types \
    perl-LDAP \
    perl-Text-CSV \
    perl-XML-LibXML \
    perl-LWP-Protocol-https \
    perl-String-Random \
    perl-URI-Encode \
    perl-DateTime \

N-Squared provides an RPM repository that is used to provide a number of dependencies that otherwise are not available through normal means on RedHat based distributions. In order to use this repository, create a record for it in the file:


Add the following content to the file with access credentials that are provided by N-Squared:

name=N-Squared Software Releases

Clean all the existing repositories to add the N-Squared repository to the list of available repositories:

yum clean all

Update the available repositories to refresh the available package list:

yum update

Install the N-Squared provided packages:

yum install \
    n2lua \
    perl-Sub-Quote-2.005000-1.of.el7.noarch \
    perl-IO-Socket-IP-0.38-1.of.el7.noarch \
    perl-IO-Socket-INET6-2.72-1.of.el7.noarch \
    perl-Type-Tiny-XS-0.012-1.of.el7.x86_64 \
    perl-Module-Runtime-0.014-1.of.el7.noarch \
    perl-Role-Tiny-2.000006-1.of.el7.noarch \
    perl-strictures-2.000001-1.of.el7.noarch \
    perl-Moo-2.003004-1.of.el7.noarch \
    perl-PBKDF2-Tiny-0.005-1.of.el7.noarch \
    perl-String-Compare-ConstantTime-0.311-1.of.el7.x86_64 \
    perl-Unicode-Stringprep-1.104-1.of.el7.noarch \
    perl-Authen-SASL-SASLprep-1.011-1.of.el7.noarch \
    perl-Type-Tiny-1.000005-1.of.el7.noarch \
    perl-Authen-SCRAM-0.005-1.of.el7.noarch \
    perl-boolean-0.45-1.of.el7.noarch \
    perl-BSON-1.4.0-1.of.el7.noarch \

Required Package Installation via rpm

If yum is unable to access the standard package repositories, retrieve the packages listed below (N-Squared can provide these) and install via rpm.

This list is a combination of the above packages and the pre-requisites required for installing these specifical packages into a clean install of RedHat (or CentOS) 6.4.

If installing into a RedHat 6.4 (rather than CentOS) system, install these packages first:

To install, use the following command, updating as appropriate:

rpm -Uvh package-list

Where package-list is the complete list of packages separated by spaces. Note that it is important to install all listed packages at once to ensure that all dependencies are met.

For both RedHat and CentOS 6.4 systems, install the following packages:

As with previously, install with the command:

rpm -Uvh package-list

Additional Packages Required

A number of standard packages are unavailable via yum. These must be installed from rpm and are available from N-Squared:

As with previously, install with the command:

rpm -Uvh package-list

Oracle Installation

The N2SVCD Service Dameon has dependencies on the Oracle Instant Client. To install the client, download the Linux instant client packages from this URL:

The packages required are:

Once downloaded, install via RPM:

rpm -Uvh oracle-instantclient12.1-basic- \
         oracle-instantclient12.1-sqlplus- \

Oracle Perl DB Driver

The Oracle DB driver must be built for the platform. To install, as root, retrieve the Perl DBD::Oracle driver v1.74 from the URL:

… and build and install on the target platform:

cp DBD-Oracle-1.74.tar.gz /tmp/
cd /tmp/
tar zvfx DBD-Oracle-1.74.tar.gz
cd DBD-Oracle-1.74
perl Makefile.PL
make install

Package Installation

Once all pre-requisites are installed as described above, the n2svd package is to be installed. The package will be named with the version included in the file name - for example n2svcd-6.0.10-1.noarch.rpm, where 6.0.10 is the version number.

rpm -Uvh n2svcd-1.0.14-1.noarch.rpm


After installing the n2lua package Dynaloader will need to be updated in order to utilize the installed package.

Create a new Dynaloader link:

nano /etc/



Update the Dynaloader index:


Post-Installation Checks

To confirm that the n2svcd package has installed successfully, check that the n2svcd process is executing:

ps -ef | grep n2sv[d]

Depending on configuration, this is expected to display one or more n2svcd processes running:

root     13016     1  0 Aug13 ?        00:00:00 /bin/sh -e -c bash /usr/share/n2svcd/bin/ /bin/sh
root     13017 13016  0 Aug13 ?        00:29:25 /usr/bin/perl /usr/share/n2svcd/bin/n2svcd --config=/etc/n2svcd/n2svcd.xml
root     13027 13017  0 Aug13 ?        00:00:55 /usr/bin/perl /usr/share/n2svcd/bin/n2svcd --config=/etc/n2svcd/n2svcd.xml

Confirm that the correct version of the n2svcd package is installed:

rpm -q n2svcd

This will respond with the package name, including the version number.