Xymon Mailing List Archive search

4.2.0: make install error

4 messages in this thread

list Hermann-Josef Beckers · Wed, 16 Aug 2006 16:07:25 +0200 ·

During "make install"    chgrp fails with "invalid groupname" (Ungültiger Gruppenname); see line 8).
Obviously line 7) is missing the "id -g hobbit" as in line 6). Whre do I add it?

Yours
hjb

...
1) Loading md5-data ... OK
2) touch /home/hobbit/server/etc/hobbit-nkview.cfg /home/hobbit/server/etc/hobbit-nkview.cfg.bak
3) chmod g+w /home/hobbit/server/etc/hobbit-nkview.cfg /home/hobbit/server/etc/hobbit-nkview.cfg.bak
4) mkdir -p /var/log/hobbit
5) chown hobbit /var/log/hobbit /home/hobbit/server /home/hobbit/server/* /home/hobbit/server/bin/* /home/hobbit/server/etc/*
/home/hobbit/server/ext/* /home/hobbit/server/web/* /home/hobbit/server/www/gifs /home/hobbit/server/www/gifs/* /home/hobbit/server/www/menu
/home/hobbit/server/www/menu/* /home/hobbit/server/www/help /home/hobbit/server/www/notes /home/hobbit/server/www/html /home/hobbit/server/www/wml
/home/hobbit/data /home/hobbit/data/*
6) chgrp `id -g hobbit` /var/log/hobbit /home/hobbit/server /home/hobbit/server/* /home/hobbit/server/bin/* /home/hobbit/server/etc/*
/home/hobbit/server/ext/* /home/hobbit/server/web/* /home/hobbit/server/www/gifs /home/hobbit/server/www/gifs/* /home/hobbit/server/www/menu
/home/hobbit/server/www/menu/* /home/hobbit/server/www/help /home/hobbit/server/www/notes /home/hobbit/server/www/html /home/hobbit/server/www/wml
/home/hobbit/data /home/hobbit/data/*
7) chgrp  /home/hobbit/server/etc/hobbit-nkview.cfg /home/hobbit/server/etc/hobbit-nkview.cfg.bak
8) --->>>     chgrp: Ungültiger Gruppenname ,,/home/hobbit/server/etc/hobbit-nkview.cfg"
make[1]: *** [install-cfg] Fehler 1
make[1]: Leaving directory `/home/beckers/hobbit-4.2.0/hobbitd'
make: *** [install-hobbitd] Fehler 2


Diese E-Mail wurde geprüft von Symantec Antivirus
list Andy France · Thu, 17 Aug 2006 09:55:56 +1200 ·

Hermann-Josef Beckers wrote on 17/08/2006 02:07:25 a.m.:
quoted from Hermann-Josef Beckers

During "make install"    chgrp fails with "invalid groupname"
(Ungültiger Gruppenname); see line 8).
Obviously line 7) is missing the "id -g hobbit" as in line 6). Whre
do I add it?

Yours
hjb

...
1) Loading md5-data ... OK
2) touch /home/hobbit/server/etc/hobbit-nkview.cfg
/home/hobbit/server/etc/hobbit-nkview.cfg.bak
3) chmod g+w /home/hobbit/server/etc/hobbit-nkview.cfg
/home/hobbit/server/etc/hobbit-nkview.cfg.bak
4) mkdir -p /var/log/hobbit
5) chown hobbit /var/log/hobbit /home/hobbit/server
/home/hobbit/server/* /home/hobbit/server/bin/* /home/hobbit/server/etc/*
/home/hobbit/server/ext/* /home/hobbit/server/web/*
/home/hobbit/server/www/gifs /home/hobbit/server/www/gifs/*
/home/hobbit/server/www/menu
/home/hobbit/server/www/menu/* /home/hobbit/server/www/help
/home/hobbit/server/www/notes /home/hobbit/server/www/html
/home/hobbit/server/www/wml
/home/hobbit/data /home/hobbit/data/*
6) chgrp `id -g hobbit` /var/log/hobbit /home/hobbit/server
/home/hobbit/server/* /home/hobbit/server/bin/* /home/hobbit/server/etc/*
/home/hobbit/server/ext/* /home/hobbit/server/web/*
/home/hobbit/server/www/gifs /home/hobbit/server/www/gifs/*
/home/hobbit/server/www/menu
/home/hobbit/server/www/menu/* /home/hobbit/server/www/help
/home/hobbit/server/www/notes /home/hobbit/server/www/html
/home/hobbit/server/www/wml
/home/hobbit/data /home/hobbit/data/*
7) chgrp  /home/hobbit/server/etc/hobbit-nkview.cfg
/home/hobbit/server/etc/hobbit-nkview.cfg.bak
8) --->>>     chgrp: Ungültiger Gruppenname ,,
/home/hobbit/server/etc/hobbit-nkview.cfg"
make[1]: *** [install-cfg] Fehler 1
make[1]: Leaving directory `/home/beckers/hobbit-4.2.0/hobbitd'
make: *** [install-hobbitd] Fehler 2
I had the same issue.  The definition of HTTPDGID= seems to be missing from
the root Makefile (top source directory) after configure, so the chgrp on
line 160 of hobbitd/Makefile fails.

The workaround I used was to edit hobbitd/Makefile and change ${HTTPDGID}
to nobody (the group for my Apache user).  I guess I could have also set
the variable in the root Makefile!

My guess is that this is caused by pressing Enter to accept the default web
user during configure, but I'll leave it up to Henrik to confirm and
propose a more robust solution ;-)

HTH,
Andy.

#####################################################################################

This email is intended for the person to whom it is addressed
only. If you are not the intended recipient, do not read, copy
or use the contents in any way. The opinions expressed may not
necessarily reflect those of ZESPRI Group of Companies ('ZESPRI').

While every effort has been made to verify the information
contained herein, ZESPRI does not make any representations 
as to the accuracy of the information or to the performance
of any data, information or the products mentioned herein.
ZESPRI will not accept liability for any losses, damage or
consequence, however, resulting directly or indirectly from
the use of this e-mail/attachments.
#####################################################################################
list Hermann-Josef Beckers · Thu, 17 Aug 2006 09:06:28 +0200 ·
Hi Andy,

thanks for pointing to the right Makefile. I substituted {HTTPDGID} with
the
"id -g hobbit" from the line above in the hobbitd/Makefile. Now hobbit
installs
cleanly.

Yours
hjb


Diese E-Mail wurde geprüft von Symantec Antivirus
list Henrik Størner · Thu, 17 Aug 2006 09:49:35 +0200 ·
quoted from Andy France
On Thu, Aug 17, 2006 at 09:55:56AM +1200, Andy France wrote:
Hermann-Josef Beckers wrote on 17/08/2006 02:07:25 a.m.:

During "make install"    chgrp fails with "invalid groupname"
(Ungültiger Gruppenname); see line 8).
Obviously line 7) is missing the "id -g hobbit" as in line 6). Whre
do I add it?
I had the same issue.  The definition of HTTPDGID= seems to be missing from
the root Makefile (top source directory) after configure, so the chgrp on
line 160 of hobbitd/Makefile fails.
OK, I hadn't thought of this. So I've changed the configuration script
so that the HTTPDGID setting defaults to "nobody".


Regards,
Henrik