in reply to .htaccess for Locating Locally Installed Perl

Check the environment with an eye on variables that influence dynamic loading.

Print the environment (printenv) from the CGI script and interactively and find the differences. Quite a few differences will have nothing to do with your problem, but some may.

Anno

Replies are listed 'Best First'.
Re^2: .htaccess for Locating Locally Installed Perl
by monkfan (Curate) on Mar 28, 2007 at 09:07 UTC
    Hi Anno,
    Running printenv give me this.
    $ printenv PWD=/home/rsch/bioinfo TZ=Singapore bashrc_already_invoked=true SCREENDIR=/home/rsch/bioinfo/.screen LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/usr/local/openwin/lib:/usr/op +enwin/lib:/usr/X11/lib://opt/sfw/gcc-3/lib:/opt/sfw/lib:/opt/parasoft +/lib.solaris:/opt/SUNWmotif/lib:/usr/dt/lib:/usr/ccs/lib PARASOFT=/opt/parasoft PERL5LIB=/home/rsch/bioinfo/lib/perl5/site_perl/5.8.7/sun4-solaris:/ho +me/rsch/bioinfo/lib/perl5/site_perl/5.8.7 OPENWINHOME=/usr/openwin TERMINFO=/usr/local/share/terminfo MANPATH=/opt/SUNWspro/man:/usr/dt/man:/usr/local/.5.8/man:/usr/local/m +an:/usr/local/teTeX/man:/usr/local/tex/man:/usr/man:/usr/local/interv +iews/man:/usr/local/openwin/man:/usr/openwin/share/man:/usr/local/X11 +/lman:/usr/X11/man:/opt/sfw/gcc-3/man:/opt/sfw/man H_SPELL=/tmp/spellhist.bioinfo USER=bioinfo AB_CARDCATALOG=/usr/local/lib/ab_cardcatalog OLDPWD=/ MAIL=/var/spool/mail/bioinfo/bioinfo EDITOR=vim SSH_CLIENT=137.132.80.55 1517 22 LOGNAME=bioinfo SHLVL=1 SSH_CONNECTION=137.132.80.55 1517 137.132.90.55 22 SHELL=/bin/bash CPU=SUN4 HOME=/home/rsch/bioinfo TERM=vt100 PATH=/home/rsch/bioinfo/.perl/bin:/home/rsch/bioinfo/bin:/opt/SUNWspro +/bin:/home/rsch/bioinfo/bin/SUN4:/local/bin:/usr/local/.5.8/bin:/usr/ +local/bin:/usr/bin:/usr/ucb:/usr/local/java/jdk/bin:/usr/local/teTeX/ +bin:/usr/local/teTeX/bin/sparc-sun-solaris2.8:/usr/local/tex/bin:/usr +/local/interviews/bin/SUN4:/usr/local/openwin/bin:/usr/openwin/bin:/u +sr/local/X11/bin:/usr/X11/bin:/opt/sfw/gcc-3/bin:/opt/sfw/bin:/usr/lo +cal/share/oracle:/usr/dt/bin:/opt/SUNWmfwm/bin:/usr/ccs/bin:. XAPPLRESDIR=/usr/local/X11/lib/X11/app-defaults SSH_TTY=/dev/pts/41 _=/usr/ucb/printenv
    It seems that my .htaccess entry already accordance with it.

    Update: all the complete variables included, following Anno's suggestion.
    Regards,
    Edward
      There is little to be said looking at only one set of environment variables. Is that your normal interactive environment or what your CGI scripts see? With only three variables set, it looks unusually meager.

      Anno