idmeflib installation
Added by Alaa Kanaieh over 6 years ago
Hello,
I want to work only with the 'idmeflib', I tried to install it but it seems that there is something missing. We have faced the following problems:
1- There is no 'configure' script to install, only 'configure.in' and I have got the following error when running it :
./configure.in: line 1: syntax error near unexpected token `[libidmef_major_version],'
./configure.in: line 1: `m4_define([libidmef_major_version], [3])'
2- There is no makefile to build and I have got an error when executing the make command :
make: *** No targets specified and no makefile found. Stop.
Can you please provide me with the instructions or a guide on how we can install the IDMEF library (libidmef) and any further details that could be helpful.
Thank you
Replies (3)
RE: idmeflib installation - Added by Thomas ANDREJAK over 6 years ago
Hello,
You have to run autogen.sh before all actions. It will generate configure and Makefile files.
Then you can run ./configure and make install
Regards
RE: idmeflib installation - Added by Alaa Kanaieh over 6 years ago
Hey,
Thank you Thomas ANDREJAK for the reply.
I am using Python 2.7.12 and I ran successfully the autogen.sh as well as configure and make as below:
sudo ./configure --with-python2=/usr/bin/python
but it is still not working. I couldn't figure out the reason behind this since it gave me no errors while installation.
Python 2.7.12 (default, Dec 4 2017, 14:50:18)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import idmef
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named idmef
any hint or missing step?
Thank you
Regards,
Alaa
RE: idmeflib installation - Added by Thomas ANDREJAK over 6 years ago
Hello,
I think that you have installed libidmef into /usr/local but not in /usr
You have to recall your configure with
--prefix=/usr --sysconfdir=/etc --localstatedir=/var
then make && make install