Compiling via command line CentOS

Associate
Joined
18 Nov 2008
Posts
2,430
Location
Liverpool
Hey guys, I'm having a problem and don't have enough Linux knowledge to do this myself so thought I'd see if any of you know.

I've never compiled anything under Linux before, I've heard about the use of makefile and things but I don't know anything about it, and as my server has static usage (Always does the same thing, never gets new programs installed etc) I've never had to do this before.

There is an incompatibility between my installations glib or something along those lines and a plugin I wish to add to a program that's running. So to make it compatible I need to compile it on my server.

The source is linked to as being here: https://github.com/Zeex/crashdetect

But I have no idea where to go from here, I've had a look round the net but the instructions are always based on specific programs and so when I follow them I end up getting lost.

Any help would be hugely appreciated, I just need to know how to compile the source on my command line CentOS installation based on the files linked to above.

Thanks!
 
I'm guessing a bit here; it seems to depend on some 32-bit libraries and I'm not running a multi-lib system, however this should work. Download the source and extract it, or clone it with Git. Once you're in the root directory:

Code:
cmake src
make --prefix=/usr
make install

That should, in theory, be all you need to do. Obviously, you may need to install cmake from the CentOS repositories, but I think that would do it. If I had a machine with the relevant libraries installed I could go through the whole process, but sadly I'm not able to at the moment.
 
<Removed>

Had to install a whole lots of devels, libs and all sorts to get CMake 2.8 to work on my CentOS (Packages are normally for 2.6) but now it works, has compiled and is now running on my server. Don't know how well it will work till my server crashes but will post back then.

Thank you HUGELY for your help :)
 
Last edited:
Just wanted to post back and say it works PERFECTLY. It has already showed me 1 vulnerability in my script and it's only been a few hours, thanks again for helping!
 
Back
Top Bottom