import the package for perl
kelly
- perl
0 Eternius0 kelly0 Philipp Hasenfratz
when i install the xml-dom.ppd with PPM, it comes these messages:
PPM> install xml-dom.ppd
Install package 'xml-dom.ppd?' (y/N): y
Installing package 'xml-dom.ppd'...
Bytes transferred: 74265
Writing D:\Programme\Perl\site\lib\auto\XML\DOM.packlist
is it that i install it successfully?
but when i write
use XML::DOM;
it still cannot find the package....could anybody tell me why?
Hi there,
PPM> install xml-dom.ppd
Install package 'xml-dom.ppd?' (y/N): y
Installing package 'xml-dom.ppd'...
Bytes transferred: 74265
Writing D:\Programme\Perl\site\lib\auto\XML\DOM.packlist
any further information?
is it that i install it successfully?
you can verify that with (I think) with the info [package] command in the ppm shell
but when i write
use XML::DOM;
have you checked that the DOM.pm exists in the perl installdir?
cheers
ja...i deleted the DOM.pm and install the package again....n comes the messages below:
PPM> install xml-dom.ppd
Install package 'xml-dom.ppd?' (y/N): y
Installing package 'xml-dom.ppd'...
Bytes transferred: 74265
Installing D:\Programme\Perl\site\lib\XML\DOM.pm
Writing D:\Programme\Perl\site\lib\auto\XML\DOM.packlist
and DOM.pm r in that directory....the generate date is in 2003, but not today ...strange....
so when i write
XML::DOM;
it still doesn't work....
Hi there,
PPM> install xml-dom.ppd
Install package 'xml-dom.ppd?' (y/N): y
Installing package 'xml-dom.ppd'...
Bytes transferred: 74265
Writing D:\Programme\Perl\site\lib\auto\XML\DOM.packlist
any further information?
is it that i install it successfully?
you can verify that with (I think) with the info [package] command in the ppm shell
but when i write
use XML::DOM;
have you checked that the DOM.pm exists in the perl installdir?cheers
Halihallo kelly
PPM> install xml-dom.ppd
Just try it with (if you want to install something else in the
future)
PPM> install XML-DOM
You don't have to download .ppd ressources, this can automatically
be done by PPM (of course the package must be held in the currenly
used active repositories).
and DOM.pm r in that directory....the generate date is in 2003, but not today ...strange....
Does your system-clock show the correct date? - Otherwise it would
really be strange (unless you've forgotten that you actually haven't
deleted the file as said...)
XML::DOM;
it still doesn't work....
Of course not, you must 'use' the package :-)
And "still doesn't work" is not a useful comment but warnings or
errors generated by perl were. So, could you be more specific?
What says
print "@INC"; # ?
Is 'D:\Programme\Perl\site\lib' in the list shown by executing the
perl-code above?
Viele Grüsse
Philipp
ja, hallo...i checked the path
D:\Inetpub\CHEN\backup>perl -e "print qq(@INC)"
D:/Programme/Perl/lib D:/Programme/Perl/site/lib .
n i used remove [package] command to remove the xml-dom package...n then installed it again.
PPM> install xml-dom
Install package 'xml-dom?' (y/N): y
Installing package 'xml-dom'...
Bytes transferred: 53571
Installing D:\Programme\Perl\html\site\lib\XML\DOM.html
Installing D:\Programme\Perl\site\lib\XML\DOM.pm
Writing D:\Programme\Perl\site\lib\auto\XML\DOM.packlist
the package that i download is from this website
http://cpan.uwinnipeg.ca/module/XML::DOM (Distribution download)
n when i
use XML::DOM;
it still cannot be found....shall i set path or set classpath to it like i work with java? if yes, how to set it?
Halihallo kelly
PPM> install xml-dom.ppd
Just try it with (if you want to install something else in the
future)PPM> install XML-DOM
You don't have to download .ppd ressources, this can automatically
be done by PPM (of course the package must be held in the currenly
used active repositories).and DOM.pm r in that directory....the generate date is in 2003, but not today ...strange....
Does your system-clock show the correct date? - Otherwise it would
really be strange (unless you've forgotten that you actually haven't
deleted the file as said...)XML::DOM;
it still doesn't work....Of course not, you must 'use' the package :-)
And "still doesn't work" is not a useful comment but warnings or
errors generated by perl were. So, could you be more specific?What says
print "@INC"; # ?
Is 'D:\Programme\Perl\site\lib' in the list shown by executing the
perl-code above?Viele Grüsse
Philipp
Halihallo kelly
D:\Inetpub\CHEN\backup>perl -e "print qq(@INC)"
D:/Programme/Perl/lib D:/Programme/Perl/site/lib .
seems reasonable and correct.
n i used remove [package] command to remove the xml-dom package...n then installed it again.
the installation seems to be successful, too.
n when i
use XML::DOM;
it still cannot be found....shall i set path or set classpath to it like i work with java? if yes, how to set it?
No, @INC (in which elements|directories perl looks for the module)
is automatically read in and doesn't need to be set in any
environment variables.
So, everything looks good...
Have you ever tried to run your script on the command-line, can you
reproduce the same error-message there, too?
You still haven't shown us the exact error message (what you can do
by copying the whole output of the script to us; or by giving us the
message of the IIS error-log). Does IIS not find the script or does
perl not find the module (well, I suppose that you mean the module,
but I cannot be sure without any "core-error-message")?
Does any other script work on IIS? - Even by using modules (perhaps
you have a permission problem on some @INC directories)?
Have you restarted your computer, this solves many M$ problems ;-)
Viele Grüsse
Philipp
ja, everything seems going well....permissin problem maybe....n i am trying to find the log file....and it leads me to think of something about the problem....
becoz i am not responsible for the server(IIS), I only program on my local pc, and copy it to the server, inetpub folder, and run it on the server....so is it that i should install that package on the server but not on my local pc?
i can see my folder in inetpub folder only, and cannot see other folders about the server on my pc.....so where directory on the server that i should install the packages to?
here is the log file
#Software: Microsoft Internet Information Services 6.0
#Version: 1.0
#Date: 2004-05-19 07:09:01
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status
2004-05-19 07:09:01 10.2.1.101 GET /readFile.pl - 80 - 10.2.122.24 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322) 502 2 0
ja, everything seems going well....permissin problem maybe....n i am trying to find the log file....and it leads me to think of something about the problem....
becoz i am not responsible for the server(IIS), I only program on my local pc, and copy it to the server, inetpub folder, and run it on the server....so is it that i should install that package on the server but not on my local pc?
i can see my folder in inetpub folder only, and cannot see other folders about the server on my pc.....so where directory on the server that i should install the packages to?
Halihallo kelly
becoz i am not responsible for the server(IIS), I only program on my local pc, and copy it to the server, inetpub folder, and run it on the server....so is it that i should install that package on the server but not on my local pc?
You *must* install the packages you use exactly on *all* computers
where the script should work. Therefore you have to install XML::DOM
on the server (which is running IIS), too. Why should the server
know about XML::DOM if you just installed it on your client-computer?
Perl runs on the serverside and does only see files on the server-
side.
So, it seems that XML::DOM is not installed on the server,
therefore - if you cannot do it - ask your admin to install it.
i can see my folder in inetpub folder only, and cannot see other folders about the server on my pc.....so where directory on the server that i should install the packages to?
Huh... Don't even try this, it results in a horrible mess.
Ask the server's administrator to install the packages you need, this
is the proper way to do it.
read:
perldoc lib
you can use your own module-directory, but it works only with
pure-perl modules. XML::DOM is in pure-perl, but it's in dependency
to XML::Parser::Expat which uses C-Extensions. Well, these
extensions and the overlying XML::Parser::Expat Interface comes along
with most perl-distributions, so it's up to you to try. Still, the
proper way is to ask your admin.
Viele Grüsse
Philipp
ja, hallo...i checked the path
D:\Inetpub\CHEN\backup>perl -e "print qq(@INC)"
D:/Programme/Perl/lib D:/Programme/Perl/site/lib .
n i used remove [package] command to remove the xml-dom package...n then installed it again.
PPM> install xml-dom
Install package 'xml-dom?' (y/N): y
Installing package 'xml-dom'...
Bytes transferred: 53571
Installing D:\Programme\Perl\html\site\lib\XML\DOM.html
Installing D:\Programme\Perl\site\lib\XML\DOM.pm
Writing D:\Programme\Perl\site\lib\auto\XML\DOM.packlist
the package that i download is from this website
http://cpan.uwinnipeg.ca/module/XML::DOM (Distribution download)
n when i
use XML::DOM;
it still cannot be found....shall i set path or set classpath to it like i work with java? if yes, how to set it?