Problems while installing win32::api

Eventhough I have installed win32::api.when i say
use Win32::API in my code.i l always get an error

"Can't locate Win32/API.pm in [at] INC ( [at] INC contains: C:/Perl/site/lib C:/
Perl/lib .)"
I did ccehck the perl folders.The API.pm sits at the right place.

Any idea why this happens.
jis [ Di, 15 Mai 2007 22:34 ] [ ID #1712823 ]

Re: Problems while installing win32::api

"jis" <jismagic [at] gmail.com> wrote in message
news:1179261274.362280.264340 [at] u30g2000hsc.googlegroups.com.. .
> Eventhough I have installed win32::api.when i say
> use Win32::API in my code.i l always get an error
>
> "Can't locate Win32/API.pm in [at] INC ( [at] INC contains: C:/Perl/site/lib C:/
> Perl/lib .)"
> I did ccehck the perl folders.The API.pm sits at the right place.
>
> Any idea why this happens.

How did you install Win32::API ? (Running 'ppm install Win32-API' while
connected to the internet usually does the job fine.)

If API.pm "sits at the right place" (namely C:/Perl/site/lib/Win32/API.pm)
there is no way that you will get that error message unless perl itself is
severely broken in some weird, unimaginable way.

When I see that error message I immediately think that Win32::API has simply
not been installed properly (if at all).

Cheers,
Rob
Sisyphus [ Mi, 16 Mai 2007 05:55 ] [ ID #1713712 ]

Re: Problems while installing win32::api

On May 15, 10:55 pm, "Sisyphus" <sisyph... [at] nomail.afraid.org> wrote:
> "jis" <jisma... [at] gmail.com> wrote in message
>
> news:1179261274.362280.264340 [at] u30g2000hsc.googlegroups.com.. .
>
> > Eventhough I have installed win32::api.when i say
> > use Win32::API in my code.i l always get an error
>
> > "Can't locate Win32/API.pm in [at] INC ( [at] INC contains: C:/Perl/site/lib C:/
> > Perl/lib .)"
> > I did ccehck the perl folders.The API.pm sits at the right place.
>
> > Any idea why this happens.
>
> How did you install Win32::API ? (Running 'ppm install Win32-API' while
> connected to the internet usually does the job fine.)
>
> If API.pm "sits at the right place" (namely C:/Perl/site/lib/Win32/API.pm)
> there is no way that you will get that error message unless perl itself is
> severely broken in some weird, unimaginable way.
>
> When I see that error message I immediately think that Win32::API has simply
> not been installed properly (if at all).
>
> Cheers,
> Rob

For some unknown reason I could not install win32::api by using the
command ppm install in my desktop system as it comes up with an error
"could not connect" .I could go to the internet address through
Internet explorer. Therefore, I put API.pm manually to the folder
WIn32. For some reason this never works.

regards,
jis
jis [ Mi, 16 Mai 2007 15:37 ] [ ID #1713718 ]

Re: Problems while installing win32::api

"jis" <jismagic [at] gmail.com> wrote in message
news:1179322660.007356.149680 [at] u30g2000hsc.googlegroups.com.. .
..
..
>
> For some unknown reason I could not install win32::api by using the
> command ppm install in my desktop system as it comes up with an error
> "could not connect" .I could go to the internet address through
> Internet explorer. Therefore, I put API.pm manually to the folder
> WIn32. For some reason this never works.
>

There's much more to Win32::API than just API.pm. Best if you can sort out
the problem you've got with ppm and get it working properly.
See your perl\html\faq\ActivePerl-faq2.html for some help wrt that. (Perhaps
the section that deals with proxy servers is pertinent ?) Also ActiveState
host a ppm mailing list for additional help if you need it:
http://listserv.ActiveState.com/mailman/mysubs .

As a quick(?) fix, download
http://ppm.activestate.com/PPMPackages/5.8-windows/MSWin32-x 86-multi-thread-5.8/Win32-API-0.46.tar.gz
to some (any) folder - preferably a folder that doesn't contain any
significant files - ie don't put it in a system folder or somewhere within
your perl installation. Maybe create a separate folder "C:\my_ppms" and put
it in there. In the same folder, create a file called Win32-API.ppd that
contains the following:

<?xml version="1.0" encoding="UTF-8"?>
<SOFTPKG NAME="Win32-API" VERSION="0,46,0,0">
<ABSTRACT>Perl Win32 API Import Facility</ABSTRACT>
<AUTHOR>Cosimo Streppone (cosimo [at] cpan.org)</AUTHOR>
<IMPLEMENTATION>
<ARCHITECTURE NAME="MSWin32-x86-multi-thread-5.8" />
<CODEBASE HREF="Win32-API-0.46.tar.gz" />
<OS NAME="MSWin32" />
<PROVIDE NAME="Win32::API" VERSION="0.46" />
<PROVIDE NAME="Win32::API::Callback" VERSION="0.46" />
<PROVIDE NAME="Win32::API::Struct" VERSION="0.45" />
<PROVIDE NAME="Win32::API::Test" VERSION="undef" />
<PROVIDE NAME="Win32::API::Type" VERSION="0.45" />
<PROVIDE NAME="Win32::kernel32" VERSION="0.20" />
</IMPLEMENTATION>
<TITLE>Win32-API</TITLE>
</SOFTPKG>

Then cd to that folder and run:

ppm install Win32-API.ppd

If I've got it right (and I *think* I have) that will properly install
Win32-API-0.46 for you.
If it fails to install, or still won't function properly, then let us know.

Cheers,
Rob
Sisyphus [ Mi, 16 Mai 2007 16:17 ] [ ID #1713719 ]

Re: Problems while installing win32::api

On May 16, 9:17 am, "Sisyphus" <sisyph... [at] nomail.afraid.org> wrote:
> "jis" <jisma... [at] gmail.com> wrote in message
>
> news:1179322660.007356.149680 [at] u30g2000hsc.googlegroups.com.. .
> .
> .
>
>
>
> > For some unknown reason I could not install win32::api by using the
> > command ppm install in my desktop system as it comes up with an error
> > "could not connect" .I could go to the internet address through
> > Internet explorer. Therefore, I put API.pm manually to the folder
> > WIn32. For some reason this never works.
>
> There's much more to Win32::API than just API.pm. Best if you can sort out
> the problem you've got with ppm and get it working properly.
> See your perl\html\faq\ActivePerl-faq2.html for some help wrt that. (Perhaps
> the section that deals with proxy servers is pertinent ?) Also ActiveState
> host a ppm mailing list for additional help if you need it:http://listserv.ActiveState.com/mailman/mysubs.
>
> As a quick(?) fix, downloadhttp://ppm.activestate.com/PPMPackages/5.8-windows/M SWin32-x86-multi-...
> to some (any) folder - preferably a folder that doesn't contain any
> significant files - ie don't put it in a system folder or somewhere within
> your perl installation. Maybe create a separate folder "C:\my_ppms" and put
> it in there. In the same folder, create a file called Win32-API.ppd that
> contains the following:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <SOFTPKG NAME="Win32-API" VERSION="0,46,0,0">
> <ABSTRACT>Perl Win32 API Import Facility</ABSTRACT>
> <AUTHOR>Cosimo Streppone (cos... [at] cpan.org)</AUTHOR>
> <IMPLEMENTATION>
> <ARCHITECTURE NAME="MSWin32-x86-multi-thread-5.8" />
> <CODEBASE HREF="Win32-API-0.46.tar.gz" />
> <OS NAME="MSWin32" />
> <PROVIDE NAME="Win32::API" VERSION="0.46" />
> <PROVIDE NAME="Win32::API::Callback" VERSION="0.46" />
> <PROVIDE NAME="Win32::API::Struct" VERSION="0.45" />
> <PROVIDE NAME="Win32::API::Test" VERSION="undef" />
> <PROVIDE NAME="Win32::API::Type" VERSION="0.45" />
> <PROVIDE NAME="Win32::kernel32" VERSION="0.20" />
> </IMPLEMENTATION>
> <TITLE>Win32-API</TITLE>
> </SOFTPKG>
>
> Then cd to that folder and run:
>
> ppm install Win32-API.ppd
>
> If I've got it right (and I *think* I have) that will properly install
> Win32-API-0.46 for you.
> If it fails to install, or still won't function properly, then let us know.
>
> Cheers,
> Rob

Thats so nice of you.It worked perfect.Thanks a lot.
Why dont you reply for the question I posted for win32::ctrlgui
issue.
regards,
jis
jis [ Mi, 16 Mai 2007 18:12 ] [ ID #1713721 ]

Re: Problems while installing win32::api

jis schreef:

> Eventhough I have installed win32::api.

I guess you mean Win32::API. Casing matters.

--
Affijn, Ruud

"Gewoon is een tijger."
rvtol+news [ Do, 17 Mai 2007 01:46 ] [ ID #1714462 ]

Re: Problems while installing win32::api

"jis" <jismagic [at] gmail.com> wrote in message
news:1179331949.080603.45940 [at] w5g2000hsg.googlegroups.com...
..
..
> Thats so nice of you.It worked perfect.Thanks a lot.

You're welcome.

> Why dont you reply for the question I posted for win32::ctrlgui
> issue.

I don't use either Win32::OLE or Win32::ctrlGUI - and that question sounds
difficult.

However, it may fall within the domain of general Win32 GUI issues - for
which there is a mailing list.

From the Win32::GUI source distro's Readme:

"For further support join the users mailing
list("perl-win32-gui-users [at] lists.sourceforge.net") from the website at
http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-u sers .
There is a searchable list archive at
http://sourceforge.net/mail/?group_id=16572 ."

Cheers,
Rob
Sisyphus [ Do, 17 Mai 2007 02:09 ] [ ID #1714463 ]
Perl » comp.lang.perl.modules » Problems while installing win32::api

Vorheriges Thema: Simple Regular Expression Help
Nächstes Thema: New to Perl Help and bmail