RE: Make install problem under Solaris 2.9

"Florent Gilain" <[email protected]> Thu, 30 Oct 2003 11:27:53 +0100
Newsgroups gmane.mail.vqadmin
Message-ID <[email protected]>
I think i found the problem, all seems to install corectly by modifying the
MakeFile file of the source dir :


Replaced the line
chgrp `id -g root` /opt/apache/cgi-bin/vqadmin/vqadmin.cgi

by
chown root:root         /opt/apache/cgi-bin/vqadmin/vqadmin.cgi

Maybe a correction to do for next release...

Now, my problem is that I can't access it, i get an Apache error message :

Forbidden
You don't have permission to access /cgi-bin/vqadmin/ on this server.


----------------------------------------------------------------------------
----

Apache/1.3.28 Server at dmmail Port 80

I added into my httpd.conf file the directory section as described in
INSTALL file of vqadmin, then i restarted Apache.

I'm not sure i understood the way to use the ACL file...

any help please ?

Florent
  -----Message d'origine-----
  De : Florent Gilain [mailto:[email protected]]
  Envoyé : jeudi 30 octobre 2003 11:04
  À : [email protected]
  Objet : [vqadmin] Make install problem under Solaris 2.9


  Hi all,

  Here is what happens when i try to install vqadmin on my Solaris 2.9 Box :

  bash-2.05# ./configure --enable-cgibindir=/opt/apache/cgi-bin
  loading cache ./config.cache
  checking for a BSD compatible install... ./install-sh -c
  checking whether build environment is sane... yes
  checking whether make sets ${MAKE}... yes
  checking for working aclocal... found
  checking for working autoconf... found
  checking for working automake... found
  checking for working autoheader... found
  checking for working makeinfo... found
  checking host system type... sparc-sun-solaris2.9
  checking for gcc... gcc
  checking whether the C compiler (gcc  ) works... yes
  checking whether the C compiler (gcc  ) is a cross-compiler... no
  checking whether we are using GNU C... yes
  checking whether gcc accepts -g... yes
  checking for ranlib... ranlib
  checking for strerror in -lcposix... no
  checking how to run the C preprocessor... gcc -E
  checking for AIX... no
  yes
  checking for dirent.h that defines DIR... yes
  checking for opendir in -ldir... no
  checking for ANSI C header files... yes
  checking for unistd.h... yes
  checking for working const... yes
  checking for size_t... yes
  checking whether struct tm is in sys/time.h or time.h... time.h
  checking for crypt in -lcrypt... yes
  checking for floor in -lm... yes
  checking for compress in -lz... yes
  updating cache ./config.cache
  creating ./config.status
  creating Makefile
  creating config.h

              Current settings
  ---------------------------------------
  vpopmail directory = /export/home/vpopmail
                 uid = 89
                 gid = 89
         cgi-bin dir = /opt/apache/cgi-bin
         vqadmin dir = /opt/apache/cgi-bin/vqadmin
  bash-2.05# make
  make  all-recursive
  make[1]: Entering directory `/dm/backups/sources/vqadmin-2.3.2'
  make[2]: Entering directory `/dm/backups/sources/vqadmin-2.3.2'
  gcc -I. -I/export/home/vpopmail/include     -g -O2 -Wall -c vqadmin.c
  gcc -I. -I/export/home/vpopmail/include     -g -O2 -Wall -c cgi.c
  gcc -I. -I/export/home/vpopmail/include     -g -O2 -Wall -c template.c
  gcc -I. -I/export/home/vpopmail/include     -g -O2 -Wall -c global.c
  gcc -I. -I/export/home/vpopmail/include     -g -O2 -Wall -c acl.c
  gcc -I. -I/export/home/vpopmail/include     -g -O2 -Wall -c misc.c
  gcc -I. -I/export/home/vpopmail/include     -g -O2 -Wall -c domain.c
  gcc -I. -I/export/home/vpopmail/include     -g -O2 -Wall -c lang.c
  gcc -I. -I/export/home/vpopmail/include     -g -O2 -Wall -c user.c
  user.c: In function `show_users':
  user.c:440: warning: subscript has type `char'
  gcc  -g -O2 -Wall  -o vqadmin  vqadmin.o cgi.o template.o global.o acl.o
misc.o domain.o lang.o
ser.o -L/export/home/vpopmail/lib -lvpopmail  -lsocket -lnsl -lcrypt   -lz -
lm -lcrypt
  make[2]: Leaving directory `/dm/backups/sources/vqadmin-2.3.2'
  make[1]: Leaving directory `/dm/backups/sources/vqadmin-2.3.2'
  bash-2.05# make install-strip
  make  AM_INSTALL_PROGRAM_FLAGS=-s install
  make[1]: Entering directory `/dm/backups/sources/vqadmin-2.3.2'
  make[2]: Entering directory `/dm/backups/sources/vqadmin-2.3.2'
  make[3]: Entering directory `/dm/backups/sources/vqadmin-2.3.2'
  /bin/sh ./mkinstalldirs /usr/local/bin
    ./install-sh -c -s vqadmin /usr/local/bin/vqadmin
  /bin/sh ./mkinstalldirs  /opt/apache/cgi-bin
  /bin/sh ./mkinstalldirs  /opt/apache/cgi-bin/vqadmin
  mkdir /opt/apache/cgi-bin/vqadmin
  /bin/sh ./mkinstalldirs  /opt/apache/cgi-bin/vqadmin/html
  mkdir /opt/apache/cgi-bin/vqadmin/html
  cp vqadmin         /opt/apache/cgi-bin/vqadmin/vqadmin.cgi
  strip              /opt/apache/cgi-bin/vqadmin/vqadmin.cgi
  cp -R html/*       /opt/apache/cgi-bin/vqadmin/html
  cp -R html/en      /opt/apache/cgi-bin/vqadmin/html/en-us
  if test -f /opt/apache/cgi-bin/vqadmin/vqadmin.acl ; then \
          echo "vqadmin.acl file already in place" ; \
  else \
          cp vqadmin.acl     /opt/apache/cgi-bin/vqadmin ; \
  fi
  chown              vpopmail /opt/apache/cgi-bin/vqadmin
  chgrp              vchkpw /opt/apache/cgi-bin/vqadmin
  chown -R           vpopmail /opt/apache/cgi-bin/vqadmin/*
  chgrp -R           vchkpw /opt/apache/cgi-bin/vqadmin/*
  chown root         /opt/apache/cgi-bin/vqadmin/vqadmin.cgi
  chgrp `id -g root` /opt/apache/cgi-bin/vqadmin/vqadmin.cgi
  id : option non admise : g
  Syntaxe : id [-ap] [utilisateur]
  syntaxe : chgrp [-fhR] groupe fichier ...
  make[3]: *** [install-data-local] Error 2
  make[3]: Leaving directory `/dm/backups/sources/vqadmin-2.3.2'
  make[2]: *** [install-am] Error 2
  make[2]: Leaving directory `/dm/backups/sources/vqadmin-2.3.2'
  make[1]: *** [install-recursive] Error 1
  make[1]: Leaving directory `/dm/backups/sources/vqadmin-2.3.2'
  make: *** [install-strip] Error 2


  I'm so bad at Unix, that i'm unable to know how to correct this...

  Thanks for your help.

  Florent G. from France