make failure installing monit on linux ec2

Thank you very much, you were right, the problem was I didn't have pam and ssl headers installed So what I did that solved the problem :

sudo -s
sudo yum install pam-devel
sudo yum install openssl-devel
sudo yum update (probably not necessary but to be on the sife side)

then, I had problems with the monitrc file so i copied it to ~ and

chmod 0700 ~/.monitrc

I ended up to this question trying to figure out the same issue on Debian. So here is what I needed to do to get it working on Debian.

#Install dependencies and required tools
sudo apt-get install libssl-dev libpam0g-dev gcc make 

# CHECK LATEST MONIT VERSION http://mmonit.com/monit/dist/
wget http://mmonit.com/monit/dist/monit-5.12.2.tar.gz
tar xzvf monit-5.12.2.tar.gz
cd monit-5.12.2/
sudo ./configure --prefix=/usr/sbin --bindir=/usr/sbin --sysconfdir=/etc/monit/
sudo make
sudo make install

I needed to install libssl-dev and libpam0g-dev to make it work. I also added some options to configure to make it match the usual locations.


Make sure that you have installed all of the required dependencies needed to build Monit. After some research I couldn't turn up what they are, but they are probably in the documentation. Of course, after you get that figured out, re-extract the tar archive to refresh the contents of the directory.

Tags:

Linux

Monit