Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to install Dans Guardian on a virtual machine. The instructions ask me to run the ./configure script and then execute the command make install. The configure script runs fine but the make install throws errors.

Making all in src
make[2]: Entering directory `/webmin/dansguardian-2.10/src'
g++ -DHAVE_CONFIG_H -I. -I..  -D__CONFFILE='"/usr/local/etc/dansguardian/dansguardian.conf"' -D__LOGLOCATION='"/usr/local/var/log/dansguardian/"' -D__PIDDIR='"/usr/local/var/run"' -D__PROXYUSER='"nobody"' -D__PROXYGROUP='"nobody"' -D__CONFDIR='"/usr/local/etc/dansguardian"'      -g -O2  -MT dansguardian-fancy.o -MD -MP -MF .deps/dansguardian-fancy.Tpo -c -o dansguardian-fancy.o `test -f 'downloadmanagers/fancy.cpp' || echo './'`downloadmanagers/fancy.cpp
downloadmanagers/fancy.cpp: In member function âstd::string fancydm::timestring(int)â:
downloadmanagers/fancy.cpp:507:72: error: âsnprintfâ was not declared in this scope
make[2]: *** [dansguardian-fancy.o] Error 1
make[2]: Leaving directory `/webmin/dansguardian-2.10/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/webmin/dansguardian-2.10'
make: *** [all] Error 2

I'm running 12.04 LTS server x64

share|improve this question
up vote 2 down vote accepted

Dan's Guardian 2.10 (the version you're trying to compile) is available in the official 12.04 repositories.

Simply run:

sudo apt-get install dansguardian
share|improve this answer

Have you tried running "sudo make install" instead? If you don't have permissions to modify the installation directories the installation may fail.

share|improve this answer
    
Yep I get the same errors. – Matt Jul 6 '12 at 14:23

Add in the file downloadmanagers/fancy.cpp this line:

include <cstdio>

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.