Closed senderic closed 4 years ago
The PCAP development library should be available in your standard Linux OS packages. yum install libpcap-devel, apt-get install libpcap-dev, etc. Then re-run the make line and that error should disappear.
Excellent! The make
process completes, although when I try to run mgen
, bash can't find the command. Also when I search the machine for mgen, nothing comes up..
The executable has been built, but not installed into your system/anywhere in your PATH. The 'mgen' executable is in the 'makefiles' directory where you ran the make command. You have various options: 1) You can run it from that directory as ./mgen, 2) You can run it from anywhere as /path/to/mgen (whatever that path is to the mgen executable in your makefiles directory 3) You can copy or symlink the mgen executable to somewhere that's in your PATH (/usr/local/bin usually works) 4) You can add the MGEN 'makefiles' directory to your PATH (method differs depending on OS, shell, etc.)
Thank you!
I am following the instructions in the read me to build mgen and coming up with the following error:
It seems like an expect pcap.h file is not there. I tried manually searching for it and came up dry, except for
ezx-pcap.h
in unrelated directories:Now, I suspect since git is just taking the master branch that the instructions may want us pointing to a release version or some previous version. I tried a variety of them such as 5.02, 5.02c and protolib 3.0b1, etc. No combination worked (though the errors were a bit different each time).
My set up is Centos 7 and I'm experimenting doing this with Docker. That said, I tried the executable in the release .tgz file however that had no effect.
I attached my docker files and the command I use to build:
docker build --rm -t local/c7-systemd . -f Dockerfile-centos-systemd
docker build -f Dockerfile-centos . -t rmbn-test-centos
(Remove the .txt extension from the files, I needed to add to upload)Dockerfile-centos-systemd.txt Dockerfile-centos.txt
It'd be great if we can review the make process? And maybe, if possible, instead of manually making this, it could be added to the mgen release assets?