0

1) I need to download and install Data AcQuisition library (DAQ) from the Snort website. The code itself is well known and no issues there:

cd ~/snort_src

git clone https://github.com/snort3/libdaq.git

cd libdaq

./bootstrap

./configure

make

sudo make install

2) After installing that I should update shared libraries above:

sudo ldconfig

And here comes the problem...

3) What ever I try I just can't get pass this "ldconfig" command Here below is my terminal response:

ubuntu@ubuntu-server:~$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

ubuntu@ubuntu-server:~$ sudo ldconfig sudo: unable to resolve host ubuntu-server: Name or service not known

ubuntu@ubuntu-server:~$ ldconfig /sbin/ldconfig.real: Can't create temporary cache file /etc/ld.so.cache~: Permission denied

ubuntu@ubuntu-server:~$ su; ldconfig Password: root@ubuntu-server:/home/ubuntu# ldconfig root@ubuntu-server:/home/ubuntu# root@ubuntu-server:/home/ubuntu# exit exit /sbin/ldconfig.real: Can't create temporary cache file /etc/ld.so.cache~: Permission denied ubuntu@ubuntu-server:~$

ubuntu@ubuntu-server:~$ sudo /sbin/ldconfig sudo: unable to resolve host ubuntu-server: Name or service not known

4) As I'm very new to all of this (and I just want to install SNORT+GRAFANA) I got stuck at this point... Hope someone can help me...?

I have already checked some solutions (.bashrc,...) but nothing helped... and I can't run my SNORT installation, before libraries are OK...

ebaruk
  • 311

1 Answers1

0

Regarding the ldconfig issue, the solution was offered by Mr.steeldriver in the comments below:

AFAIK that's normal - if you want to "see" something, run it in verbose mode, like sudo ldconfig -v – steeldriver 1

THANK YOU VERY MUCH !

The change reqired as described below:

cat /etc/hostname              #You get your hostname here
sudo nano /etc/hosts           #You make changes here (save after CTRL X)

127.0.0.1 localhost #Original code 127.0.0.1 localhost localhost.localdomain ubuntu-server #Changed code with hostname

ebaruk
  • 311