Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
It may be due to mmap (running 'aide -v'|grep MMAP;' should show) but it could also be a corrupt database. It's suggested elsewhere to rename your database, make 'aide -i' build a new one and then check that first.
Quote:
Originally Posted by jyunker
One website on the internet said to configure AIDE without mmaping - except it did not say how to do that or why one should do that?
Set the configure flag on recompiling AIDE. May look something like "--without-mmap".
Yes ,the corrupt database is a possibility. but it seems to happen everytime I run the system command:
aide --init.
everytime. The data base is created and is named aide.db.new.gz and I then move or rename it aide.db.gxz, but keep it in the same folder -var/lib/aide.
Is this what they are referrring to as the corrupt database - aide.db.new.gx or aide.db.new.gz?
I do rename it. If it is corrupt then what do with it?
This problem is addressed in other version of Linux, such as Ubuntu. I am using Centos 6.5, 64 bit. It seems to not have been addressed in Centos - at least not yet. the recommendations to handle this issue in Ubuntu simply do not apply to Centos.
Is this what they are referrring to as the corrupt database - aide.db.new.gx or aide.db.new.gz?
No.
Quote:
Originally Posted by jyunker
I do rename it. If it is corrupt then what do with it?
Unless a process would be (unable to finish) writing to a "database" while you move it and you would kill the application in the process then yes, that could lead to corruption. (Not in the case of AIDE, IIRC it's just a compressed plain text file.) Moving, renaming itself does not and generally speaking should not be a cause for corruption.
Quote:
Originally Posted by jyunker
This problem is addressed in other version of Linux, such as Ubuntu. (..) the recommendations to handle this issue in Ubuntu simply do not apply to Centos.
Where does it state this has been addressed?
Quote:
Originally Posted by jyunker
Do you know if there is an AIDe form?
"Form"? what kind of "form" do you mean?
Quote:
Originally Posted by jyunker
I installed AIDE by sudo yum install aide. I did not compile it.
OK, so you did not compile it but you might have to.
Sorry for my confusing writting. I of course do not need to know where an AIDE form is, but an AIDE Forum. Where is that?
I did try to compile AIDE using the *tar.gz version. When I tried to configure, it said that I did not have zlib installed properly.
I checked, I did have zlib installed, but I did uninstall and reinstall it, but still it did not like the way I had zlib installed when I typed ./configure again. .
I tried to configure without zlib and got other errors. The zlib install is fine for the *.rpm install, but not for the tar.gz install - interesting.
I would just like to install AIDE, whatever way works and then use it. What does it mean during ./configure when it says zlib not installed properly. It seems to pass zlib testing during the configure step, yet it still gives this error.
I looked on the internet and found no satisfying answer to this issue.
When I say thaa this issue has been addressed in other linux forums, I mean that it
has, but that the recommendations to fix it require running some command particular to
that flavor of linux. This solution simply would not apply in Centos 6.5, 64 bit. This
command is not available in Centos.
Sorry for my confusing writting. I of course do not need to know where an AIDE form is, but an AIDE Forum. Where is that?
None, there is a mamiling list though: see the documentation.
Quote:
Originally Posted by jyunker
I did try to compile AIDE using the *tar.gz version. When I tried to configure, it said that I did not have zlib installed properly.
I checked, I did have zlib installed, but I did uninstall and reinstall it, but still it did not like the way I had zlib installed when I typed ./configure again. .
I tried to configure without zlib and got other errors. The zlib install is fine for the *.rpm install, but not for the tar.gz install - interesting. I would just like to install AIDE, whatever way works and then use it. What does it mean during ./configure when it says zlib not installed properly. It seems to pass zlib testing during the configure step, yet it still gives this error. I looked on the internet and found no satisfying answer to this issue.
Try
Code:
yum install zlib-devel
before compiling.
Quote:
Originally Posted by jyunker
When I say thaa this issue has been addressed in other linux forums, I mean that it has, but that the recommendations to fix it require running some command particular to that flavor of linux. This solution simply would not apply in Centos 6.5, 64 bit. This command is not available in Centos.
Post that command in full, or better, where you've read about it?
that zlib was not installed properly. It was installed, so just to be safe I then reinstalled it.
It still said zlib not installed properly.
Code:
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for deflate in -lz... no
configure: error: You don't have zlib properly installed. Install it or try --without-zlib.
Above is the output of the screen when I run the configure command with no options, just
./configure
I could try and configure without zlib, but it just gives another error. I am not sure what it means when it says zlib not installed properly.
It seems to have no problem with zlib when I run ./configure,
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.