Click here to get back home

Problems while installing win32::api

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Problems while installing win32::api jis 05-15-2007
Posted by jis on May 15, 2007, 4:34 pm
Please log in for more thread options


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 @INC (@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.


Posted by Sisyphus on May 15, 2007, 11:55 pm
Please log in for more thread options



> 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 @INC (@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


Posted by jis on May 16, 2007, 9:37 am
Please log in for more thread options


>
>
> > 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 @INC (@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


Posted by Sisyphus on May 16, 2007, 10:17 am
Please log in for more thread options



.
.
>
> 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-x86-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>
<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


Posted by jis on May 16, 2007, 12:12 pm
Please log in for more thread options


>
> .
> .
>
>
>
> > 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/MSWin32-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>
> <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


Similar ThreadsPosted
Problems installing Win32-Setupsup, Win32-CtrlGUI October 10, 2004, 12:31 am
problems installing XML::Parser::Expat November 3, 2004, 3:50 am
Problems installing DBD::Sybase on Mac OS X with SQLAnywhere9 May 4, 2005, 5:11 pm
Problems installing DBD::mysql on Solaris 10 November 2, 2005, 8:43 am
Problems Installing Image::Magick September 26, 2006, 3:35 pm
Problems when installing Template Toolkit on Activestate October 13, 2004, 11:06 pm
Problems building Javascript-1.00 on Win32 system November 11, 2006, 9:59 pm
Problem installing win32::OLE September 20, 2005, 12:52 pm
Installing IO::Socket::SSL on Win32? June 30, 2006, 11:11 am
Problem Installing Win32::OLE under cygwin May 15, 2005, 9:45 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap