Posts Tagged ‘gcc’

compiling clam-av 0.96.3 in an old linux system

Wednesday, September 22nd, 2010

If for some reason You are trying to compile clamav-0.96.3 in an old linux system (e.g. a Debian sarge with a 3.3.5 gcc version) You will get a “compiler too old” error.
I know it is a kludge, but it’s possible to ent the compilation process in two steps.
first, opet the ./clamav-0.96.3/libclamav/c++/configure file and disable the line

as_fn_error “C++ compiler too old (${gxx_version})” “$LINENO” 5

e.g. writing [02].*) instead of [023].*) in the previous line.
second, run the main ./configure script disabling llvm.

./configure –disable-llvm

Then run make and make install as usual.