Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libprotoident.h: No such file or directory #65

Closed
goish135 opened this issue Dec 8, 2020 · 1 comment
Closed

libprotoident.h: No such file or directory #65

goish135 opened this issue Dec 8, 2020 · 1 comment

Comments

@goish135
Copy link

goish135 commented Dec 8, 2020

I follow https://github.com/mushorg/go-dpi/wiki/Installation-guide

Step1 :
sudo apt-get install golang
#check version

go version go1.10.4 linux/amd64

Step2:
sudo apt-get install liblinear3 liblinear-dev

#check installation : liblinear3

  • py@py:~$ apt list liblinear3
  • Listing... Done
  • liblinear3/bionic 2.1.0+dfsg-2 amd64

#check installation: liblinear-dev

  • py@py:~$ apt list liblinear-dev
  • Listing... Done
  • liblinear-dev/bionic 2.1.0+dfsg-2 amd64

[Optional Part]

py@py:~$ echo "deb http://packages.wand.net.nz trusty main" | sudo tee -a /etc/apt/sources.list
[sudo] password for py: 
deb http://packages.wand.net.nz trusty main
py@py:~$ sudo apt-get update
Hit:1 http://tw.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://tw.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:3 http://tw.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] 
Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]    
Get:5 http://tw.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [294 kB]
Get:6 http://tw.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [288 kB]
Get:7 http://tw.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2468 B]
Get:8 http://tw.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [9292 B]
Get:9 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [48.9 kB]
Get:10 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [59.5 kB]
Get:11 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2460 B]
Get:12 http://packages.wand.net.nz trusty InRelease [3545 B]                   
Err:12 http://packages.wand.net.nz trusty InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 69A507877C4B94E8
Reading package lists... Done
W: GPG error: http://packages.wand.net.nz trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 69A507877C4B94E8
E: The repository 'http://packages.wand.net.nz trusty InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

apt-get : Err

py@py:~$ sudo apt-get -y --force-yes install git gcc autoconf automake libtool libpcap-dev libtrace4 libtrace4-dev libprotoident libprotoident-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
W: --force-yes is deprecated, use one of the options starting with --allow instead.
E: Unable to locate package libtrace4
E: Unable to locate package libtrace4-dev
E: Unable to locate package libprotoident
E: Unable to locate package libprotoident-dev

Unable to locate package...
another :
sudo apt-get install autoconf

py@py:~$ git clone --branch 3.2-stable https://github.com/ntop/nDPI/ /tmp/nDPI
Cloning into '/tmp/nDPI'...
remote: Enumerating objects: 111, done.
remote: Counting objects: 100% (111/111), done.
remote: Compressing objects: 100% (100/100), done.
remote: Total 22437 (delta 38), reused 30 (delta 10), pack-reused 22326
Receiving objects: 100% (22437/22437), 110.44 MiB | 213.00 KiB/s, done.
Resolving deltas: 100% (15624/15624), done.
Checking out files: 100% (527/527), done.
py@py:~$ cd /tmp/nDPI/
py@py:/tmp/nDPI$ ls
autogen.sh    configure.seed   COPYING  example  INSTALL        m4           packages  README.md    README.protocols  tests  wireshark
CHANGELOG.md  CONTRIBUTING.md  doc      fuzz     libndpi.pc.in  Makefile.am  python    README.nDPI  src               utils
py@py:/tmp/nDPI$ ./autogen.sh && ./configure && make && sudo make install && cd -
libtool and libtoolize is missing: please install it and try again
bash: ./configure: No such file or directory
py@py:/tmp/nDPI$ ls
autogen.sh    configure.seed   COPYING  example  INSTALL        m4           packages  README.md    README.protocols  tests  wireshark
CHANGELOG.md  CONTRIBUTING.md  doc      fuzz     libndpi.pc.in  Makefile.am  python    README.nDPI  src               utils

no configure file
and i don't know what cd - means ?


root@py:/tmp/nDPI# go get github.com/mushorg/go-dpi
# github.com/mushorg/go-dpi/modules/ml
/root/go/src/github.com/mushorg/go-dpi/modules/ml/linearsvc.go:17:11: fatal error: linear.h: No such file or directory
 // #include <linear.h>
           ^~~~~~~~~~
compilation terminated.
# github.com/mushorg/go-dpi/modules/wrappers
In file included from /root/go/src/github.com/mushorg/go-dpi/modules/wrappers/nDPI_wrapper.go:6:0:
./nDPI_wrapper_impl.h:3:10: fatal error: ndpi/ndpi_main.h: No such file or directory
 #include <ndpi/ndpi_main.h>
          ^~~~~~~~~~~~~~~~~~
compilation terminated.

#github.com/mushorg/go-dpi/modules/wrappers
LPI_wrapper_impl.cpp:8:10: fatal error: libprotoident.h: No such file or directory
#include <libprotoident.h>
^~~~~~~~~~~~~~~~~
compilation terminated.


@glaslos
Copy link
Member

glaslos commented Dec 8, 2020

You error is here: libtool and libtoolize is missing: please install it and try again
Try installing sudo apt install build-essential
Or individually: sudo apt-get install libtool

@goish135 goish135 closed this as completed May 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants