[lug] @INC problems

John Starkey jstarkey at advancecreations.com
Tue Oct 31 00:00:47 MST 2000


> it's a little odd to use @INC to indicate config files, i must say.

This was from the default install. I really know nothing about Perl.

I just re-installed. Using all the defaults from the set-up script and
following INSTALL to the tee. Same results (below).

> 1. an exact copy (cut&paste, no line end munging if possible) of the
>    FULL error.

Software error: Can't locate neomail.conf in @INC (@INC contains: 
/usr/local/lib/perl5/5.6.0/i586-linux /usr/local/lib/perl5/5.6.0 
/usr/local/lib/perl5/site_perl/5.6.0/i586-linux 
/usr/local/lib/perl5/site_perl/5.6.0 /usr/local/lib/perl5/site_perl 
/var/neomail) at /home/html/advancecreations/cgi-bin/neomail.pl line 31.

> 2. the output of "perl -V".

Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
  Platform:
    osname=linux, osvers=2.2.14-5.0, archname=i586-linux
    uname='linux advancecreations 2.2.14-5.0 #1 tue mar 7 20:53:41 est 2000 i586 unknown '
    config_args='-de'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define 
    use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
  Compiler:
    cc='cc', optimize='-O2', gccversion=egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
    cppflags='-fno-strict-aliasing'
    ccflags ='-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt
    libc=/lib/libc-2.1.3.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Compile-time options: USE_LARGE_FILES
  Built under linux
  Compiled at Oct 29 2000 02:10:32
  @INC:
    /usr/local/lib/perl5/5.6.0/i586-linux
    /usr/local/lib/perl5/5.6.0
    /usr/local/lib/perl5/site_perl/5.6.0/i586-linux
    /usr/local/lib/perl5/site_perl/5.6.0
    /usr/local/lib/perl5/site_perl
    .

> 3. whatever bits of your apache config are relevant.  in particular,
>    we need to know which user the CGIs are running as.

I'm pretty sure their run as nobody
AddHandler cgi-script cgi
ExecCGI is enabled in the dir
ScriptAlias is pointing to the /cgi-bin/ of choice.
 
> 4. all the files installed by neomail ("ls -lg" format!)

/cgi-bin/:
drwxr-xr-x   10 nobody   nobody       4096 Oct 30 23:29 .
drwxrwxr-x    9 jstarkey advance      4096 Oct 30 00:57 ..
drwxr-xr-x    2 root     root         4096 Oct 30 02:10 images
drwxr-xr-x    2 root     root         4096 Oct 30 02:10 includes
-rwxr-sr-x    1 root     mail        43632 Oct 30 23:29 neomail-prefs.pl
-rwxr-sr-x    1 root     mail       104480 Oct 30 23:29 neomail.pl
drwxr-xr-x    2 root     root         4096 Oct 30 02:10 queries
drwxr-xr-x    2 root     root         4096 Oct 30 02:10 stylesheets
drwxr-xr-x    2 root     root         4096 Oct 30 02:10 text
drwxr-xr-x    2 root     root         4096 Oct 30 02:10 wallpapers
ls -al /var/mail
drwxrwx---    6 root     mail         4096 Oct 30 23:29 .
drwxr-xr-x   21 root     root         4096 Oct 30 23:29 ..
-rwsr-xr-x    1 root     root          690 Oct 30 23:29 checklogin.pl
drwxr-x---    2 root     mail         4096 Oct 30 23:29 lang
-rwxr-x---    1 root     mail         6930 Oct 30 23:29 neomail.conf
-rw-rw----    1 root     mail            0 Oct 30 23:29 neomail.log
drwxr-x---    2 root     mail         4096 Oct 30 23:29 styles
drwxr-x---   17 root     mail         4096 Oct 30 23:29 templates
drwxrwx---    2 root     mail         4096 Oct 30 23:29 users






More information about the LUG mailing list