sni / Thruk

Thruk is a multibackend monitoring webinterface for Naemon, Nagios, Icinga and Shinken using the Livestatus API.
http://www.thruk.org
Other
409 stars 149 forks source link

Problem installing from source #391

Closed russoisraeli closed 9 years ago

russoisraeli commented 10 years ago

When doing a standard install from source, "make install" fails, because DESTDIR is not getting set to a reasonable default:

perl Makefile.PL ... ... * To install dependencies type 'make installdeps' or 'make installdeps_notest'. (You may need to do that as the 'root' user.) * Module::AutoInstall configuration finished. Warning: prerequisite Test::JavaScript 0 not found. Generating a Unix-style Makefile Writing Makefile for Thruk Writing MYMETA.yml and MYMETA.json patched Makefile no update necessary created cached js/css files finished

make ... ... Manifying blib/man3/Thruk::Utils::Log.3pm Manifying blib/man3/Thruk::Utils::Menu.3pm Manifying blib/man3/Thruk::Utils::RecurringDowntimes.3pm Manifying blib/man3/Thruk::Utils::Scripts.3pm Manifying blib/man3/Thruk::Utils::SelfCheck.3pm Manifying blib/man3/Thruk::Utils::Status.3pm Manifying blib/man3/Thruk::Utils::Trends.3pm Manifying blib/man3/Thruk::View::Excel.3pm Manifying blib/man3/Thruk::View::GD.3pm Manifying blib/man3/Thruk::View::JSON.3pm Manifying blib/man3/Thruk::View::TT.3pm

[nagios@ims205 (1 jobs) ~/Thruk-1.84-5 ]$ LANG=enUS.utf8 make install mkdir -p blib/replace cp -rp support/.patch blib/replace cp -rp support/thruk_cookie_auth_vhost.conf blib/replace cp -rp support/thruk_cookieauth.include blib/replace sed -i blib/replace/ -e 's+@SYSCONFDIR@++g' sed -i blib/replace/* -e 's+@DATADIR@++g' sed -i blib/replace/* -e 's+@LOGDIR@++g' sed -i blib/replace/* -e 's+@TMPDIR@++g' sed -i blib/replace/* -e 's+@LOCALSTATEDIR@++g' sed -i blib/replace/* -e 's+@BINDIR@++g' sed -i blib/replace/* -e 's+@INITDIR@++g' sed -i blib/replace/* -e 's+@LIBDIR@++g' sed -i blib/replace/* -e 's+@CHECKRESULTDIR@++g' sed -i blib/replace/* -e 's+@THRUKLIBS@++g' sed -i blib/replace/* -e 's+@THRUKUSER@++g' sed -i blib/replace/* -e 's+@THRUKGROUP@++g' sed -i blib/replace/* -e 's+@HTMLURL@++g' sed -i blib/replace/* -e 's+@HTTPDCONF@++g' sed -i blib/replace/* -e 's+log4perl.conf.example+log4perl.conf+g'

breaks naemon travis tests

@if [ "x" = "x" ]; then echo "* no DESTDIR set *"; exit 1; fi

mkdir -p mkdir: missing operand Try `mkdir --help' for more information. make: *\ [local_install] Error 1

[nagios@ims205 (1 jobs) ~/Thruk-1.84-5 ]$ grep "^DESTDIR" Makefile DESTDIR =

russoisraeli commented 10 years ago

When DESTDIR is set manually, as in "perl Makefile.PL DESTDIR=/usr/local/monitoring", "make install" fails in the end:

.... .... mkdir -p /usr/local/monitoring/Thruk mkdir -p /usr/local/monitoring/Thruk/plugins mkdir -p /usr/local/monitoring/Thruk/themes mkdir -p /usr/local/monitoring/Thruk/script cp -rp lib root templates /usr/local/monitoring/Thruk/ rm -f /usr/local/monitoring/Thruk/root/thruk/themes mkdir -p /usr/local/monitoring/Thruk/usercontent/ rm -rf /usr/local/monitoring/Thruk/root/thruk/usercontent ln -fs /usercontent /usr/local/monitoring/Thruk/root/thruk/ cp -rp root/thruk/usercontent/* /usr/local/monitoring/Thruk/usercontent/ cp -rp support/fcgid_env.sh /usr/local/monitoring/Thruk/ chmod 755 /usr/local/monitoring/Thruk/fcgid_env.sh cp -rp menu.conf /usr/local/monitoring/Thruk/ cp -rp plugins/plugins-available /usr/local/monitoring/Thruk/plugins/ cp: cannot overwrite non-directory /usr/local/monitoring/Thruk/plugins/plugins-available/shinken_features' with directoryplugins/plugins-available/shinken_features' cp: cannot overwrite non-directory /usr/local/monitoring/Thruk/plugins/plugins-available/reports2' with directoryplugins/plugins-available/reports2' cp: cannot overwrite non-directory /usr/local/monitoring/Thruk/plugins/plugins-available/mobile' with directoryplugins/plugins-available/mobile' cp: cannot overwrite non-directory /usr/local/monitoring/Thruk/plugins/plugins-available/minemap' with directoryplugins/plugins-available/minemap' cp: cannot overwrite non-directory /usr/local/monitoring/Thruk/plugins/plugins-available/dashboard' with directoryplugins/plugins-available/dashboard' cp: cannot overwrite non-directory /usr/local/monitoring/Thruk/plugins/plugins-available/conf' with directoryplugins/plugins-available/conf' cp: cannot overwrite non-directory /usr/local/monitoring/Thruk/plugins/plugins-available/wml' with directoryplugins/plugins-available/wml' cp: cannot overwrite non-directory /usr/local/monitoring/Thruk/plugins/plugins-available/panorama' with directoryplugins/plugins-available/panorama' cp: cannot overwrite non-directory /usr/local/monitoring/Thruk/plugins/plugins-available/business_process' with directoryplugins/plugins-available/business_process' cp: cannot overwrite non-directory /usr/local/monitoring/Thruk/plugins/plugins-available/statusmap' with directoryplugins/plugins-available/statusmap' make: *\ [local_install] Error 1

russoisraeli commented 10 years ago

The latter I managed to fix by setting the offending "cp" to "rsync -auvz" .

sni commented 9 years ago

Please use the packages or the source installation guide from http://thruk.org/documentation/install_from_source.html Thruk is not meant to be installed by configure/make/... Maybe in the future, but not yet.