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...
ldconfig
specifically - see for example Error message “sudo: unable to resolve host (none)” – steeldriver Jun 24 '20 at 19:07127.0.0.1 localhost #Original code 127.0.0.1 localhost localhost.localdomain ubuntu-server #Changed code
But still not sure if command done anything.... After activating sudo ldconfig I didn't recieve any status, just new line jump.. is that expected ?
– ebaruk Jun 25 '20 at 12:46sudo ldconfig -v
– steeldriver Jun 25 '20 at 13:31