Closed russoisraeli closed 9 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 directory
plugins/plugins-available/shinken_features'
cp: cannot overwrite non-directory /usr/local/monitoring/Thruk/plugins/plugins-available/reports2' with directory
plugins/plugins-available/reports2'
cp: cannot overwrite non-directory /usr/local/monitoring/Thruk/plugins/plugins-available/mobile' with directory
plugins/plugins-available/mobile'
cp: cannot overwrite non-directory /usr/local/monitoring/Thruk/plugins/plugins-available/minemap' with directory
plugins/plugins-available/minemap'
cp: cannot overwrite non-directory /usr/local/monitoring/Thruk/plugins/plugins-available/dashboard' with directory
plugins/plugins-available/dashboard'
cp: cannot overwrite non-directory /usr/local/monitoring/Thruk/plugins/plugins-available/conf' with directory
plugins/plugins-available/conf'
cp: cannot overwrite non-directory /usr/local/monitoring/Thruk/plugins/plugins-available/wml' with directory
plugins/plugins-available/wml'
cp: cannot overwrite non-directory /usr/local/monitoring/Thruk/plugins/plugins-available/panorama' with directory
plugins/plugins-available/panorama'
cp: cannot overwrite non-directory /usr/local/monitoring/Thruk/plugins/plugins-available/business_process' with directory
plugins/plugins-available/business_process'
cp: cannot overwrite non-directory /usr/local/monitoring/Thruk/plugins/plugins-available/statusmap' with directory
plugins/plugins-available/statusmap'
make: *\ [local_install] Error 1
The latter I managed to fix by setting the offending "cp" to "rsync -auvz" .
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.
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 =