Tags:
create new tag
, view all tags

Question

For some reason, the ChartPlugin is unable to find the GD.pm module, even though; as best I can tell, it's there.

Taking this back a step, testenv doesn't see it either. I modified testenv to add GD to the optional modules list. When I run testenv via twiki, GD is not found.

I then grabbed a simple script to use the GD module and create a png file. Using the same #! line as in testenv, and running the script as an executable, it works fine. I made sure that the perl in question is the same one.

The @INC path in testenv output is OK; GD.pm is in /usr/lib/perl5/site_perl/5.8/cygwin, which is listed as being in @INC. For grins I tried adding this path to bin/setlib.cfg, with no change in behavior. I've thought of puttind GD in my home dir and adding that to setlib.cfg; but that seems wrong.

The only thing I can think of is that when I run my test program, I'm running it as myself. When testenv runs, it's running as the apache user. Would that make a difference?

Test the environment for TWiki
Please read the TWikiInstallationNotes for more information on TWiki installation.
Environment variables:
COMSPEC   C:\WINDOWS\system32\cmd.exe
DOCUMENT_ROOT   c:/twiki
GATEWAY_INTERFACE   CGI/1.1
HOME   /twiki
HTTP_ACCEPT   text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_CHARSET   ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING   gzip,deflate
HTTP_ACCEPT_LANGUAGE   en-us,en;q=0.5
HTTP_CONNECTION   keep-alive
HTTP_COOKIE   JSESSIONID=CkTkyL69PymvMCcSfC5JGxD2DTdfFKr2xKlpwdHc3tzqJQqxvhjG!-516167975
HTTP_HOST   pdnts
HTTP_KEEP_ALIVE   300
HTTP_USER_AGENT   Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050223 Firefox/1.0.1
LOGNAME   system
PATH   /c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/Program Files/Dell/OpenManage/oma/bin:/c/Program Files/Dell/OpenManage/LU/bin:/c/Program Files/Dell/OpenManage/oldiags/bin:/c/Program Files/Dell/OpenManage/Array Manager:/c/Program Files/cvsnt:/c/Program Files/Microsoft SQL Server/80/Tools/BINN
QUERY_STRING   
RCSINIT   -x,v/
REMOTE_ADDR   10.20.10.23
REMOTE_PORT   2184
REQUEST_METHOD   GET
REQUEST_URI   /bin/testenv
SCRIPT_FILENAME   c:/twiki/bin/testenv
SCRIPT_NAME   /bin/testenv
SERVER_ADDR   10.20.10.74
SERVER_ADMIN   steve.anthony@jenzabar.net
SERVER_NAME   pdnts.jenzabar.net
SERVER_PORT   80
SERVER_PROTOCOL   HTTP/1.1
SERVER_SIGNATURE   
Apache/1.3.33 Server at pdnts.jenzabar.net Port 80
SERVER_SOFTWARE   Apache/1.3.33 (Win32)
SYSTEMROOT   C:\WINDOWS
TEMP   /c/temp
TERM   cygwin
TMP   /c/temp
TZ   EST5EDT
WINDIR   C:\WINDOWS
CGI Setup:
Operating system:   Windows (cygwin)
Perl version:   5.8.6-4 (Cygwin)
@INC library path:   ../lib
/usr/lib/perl5/5.8/cygwin
/usr/lib/perl5/5.8
/usr/lib/perl5/site_perl/5.8/cygwin
/usr/lib/perl5/site_perl/5.8
/usr/lib/perl5/site_perl/5.8
/usr/lib/perl5/vendor_perl/5.8/cygwin
/usr/lib/perl5/vendor_perl/5.8
/usr/lib/perl5/vendor_perl/5.8
.
   Note: This is the Perl library path, used to load TWiki modules, third-party modules used by some plugins, and Perl built-in modules.
TWiki module in @INC path:   
   OK, TWiki.pm found (TWiki version: 02 Sep 2004 $Rev: 1742 $)
Required Perl modules:   
   CGI (3.05)
   CGI::Carp (1.28)
   File::Copy (2.08)
   File::Spec (3.01)
   FileHandle (2.01)
   Digest::SHA1 (2.10)
   MIME::Base64 (3.05)
   Net::SMTP (2.29)
Optional Perl modules:   
   Algorithm::Diff (1.02)
   MIME::Base64 (3.05)
   POSIX (1.08)
   Encode (2.08)
   Note: Optional module 'Unicode::MapUTF8' not installed - check TWiki documentation to see if your configuration needs this module.
   Note: Optional module 'Unicode::Map' not installed - check TWiki documentation to see if your configuration needs this module.
   Note: Optional module 'Unicode::Map8' not installed - check TWiki documentation to see if your configuration needs this module.
   Note: Optional module 'Jcode' not installed - check TWiki documentation to see if your configuration needs this module.
   Digest::MD5 (2.33)
   Note: Optional module 'GD' not installed - check TWiki documentation to see if your configuration needs this module.
PATH_INFO:   
   Note: For a URL such as http://pdnts/bin/testenv/foo/bar, the correct PATH_INFO is /foo/bar, without any prefixed path components. Test this now - particularly if you are using mod_perl, Apache or IIS, or are using a web hosting provider. The page resulting from the test link should have a PATH_INFO of /foo/bar.
mod_perl:   Not used for this script (mod_perl not loaded into Apache)
User:   system
   Note: Your CGI scripts are executing as this user.
   Warning: Since your CGI script is not running as user nobody, you need to change the locks in the *,v RCS files of the TWiki distribution from nobody to system. Otherwise, changes to topics will not be logged by RCS.
   Fix: If needed, relock all the rcs files to user system
Group(s):   administrators administrators root
Test of TWiki.cfg Configuration:
$defaultUrlHost:   http://pdnts
   Note: This must match the protocol and host part (with optional port number) of the TWiki URL.
$scriptUrlPath:   /bin
   Note: This must match the 'cgi-bin' part of the URL used to access the TWiki cgi-bin directory.
$pubUrlPath:   /pub
   Note: This must be the URL of the public directory.This is not set correctly if the /pub/wikiHome.gif image below is broken:
$pubDir:   /twiki/pub
   Note: This is the public directory, as seen from the file system. It must correspond to $pubUrlPath.
$templateDir:   /twiki/templates
   Note: This is the TWiki template directory, as seen from the file system.
   Warning: Security issue: This directory should not be writable by the system user.
$dataDir:   /twiki/data
   Note: This is the data directory where TWiki stores all topics.
$mailProgram:   /usr/sbin/sendmail -t -oi -oeq
   Note: This is not typically used on Windows - the Perl Net::SMTP module is used instead.
$rcsDir:   c:/cygwin/bin
   Note: This is the directory where RCS is located.
RCS Version:   5.7  (Cygwin package rcs-5.7-3)
   Note: This is the version of RCS which will be used.
$lsCmd:   /bin/ls
   Note: This is the file list program TWiki uses to list topics.
$egrepCmd:   /bin/egrep -E
   Note: This is a program TWiki uses for search.
$fgrepCmd:   /bin/grep -F
   Note: This is a program TWiki uses for search.
$safeEnvPath:   /bin
   Note: This is used to initialise the PATH variable, and is used to run the 'diff' program used by RCS, as well as to run shell programs such as cmd.exe or Cygwin's 'bash'.

Since you are using Cygwin Perl, 'bash' will be used without any special setup.
Path and Shell Environment
Original PATH:   /c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/Program Files/Dell/OpenManage/oma/bin:/c/Program Files/Dell/OpenManage/LU/bin:/c/Program Files/Dell/OpenManage/oldiags/bin:/c/Program Files/Dell/OpenManage/Array Manager:/c/Program Files/cvsnt:/c/Program Files/Microsoft SQL Server/80/Tools/BINN
   Note: This is the PATH value passed in from the web server to this script - it is reset by TWiki scripts to the PATH below, and is provided here for comparison purposes only.
Current PATH:   /bin
   Note: This is the actual PATH setting that will be used by Perl to run programs. It is normally identical to $safeEnvPath, unless that variable is empty.
diff:   GNU diff was found on the PATH - this is the recommended diff tool.
   Note: The 'diff' command is used by RCS to compare files.
User Authentication
htpasswd Format Family:   htpasswd
htpasswd Encoding:   sha1
htpasswd Filename:   /twiki/data/.htpasswd
   Note: only some combinations of Format, Encoding and Filename are valid, and fewer are tested

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, SpreadSheetPlugin, SlashFilenamePlugin, ChartPlugin, CommentPlugin, EditTablePlugin, InterwikiPlugin, RenderListPlugin, SlideShowPlugin, SmiliesPlugin, TablePlugin
Server OS: Win2003 Server
Web server: Apache 1.3.33
Perl version: 5.8.6-4
Client OS:  
Web Browser: Firefox 1.0.1
Categories: Plugins

-- SteveAnthony - 01 Mar 2005

Answer

It would make a difference if the permissions didn't allow the apache user to read one or mode of the files in the GD module, yes.

-- CrawfordCurrie - 22 Apr 2005

 
Topic revision: r5 - 2005-06-07 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.