@INC

@INC

am 08.06.2007 18:45:22 von Andy Hammer

I don't understand what has happened.
I have not run any Perl scripts for a while.
Now I get the "Can't locate whatever.pm in @INC"
Also, the @INC variable now points to MKS Toolkit
instead of Perl\lib and Perl\site\lib.
Of course I can fix EVERY script with a
use lib 'C:Perl\lib';
but I would rather change the @INC so it could see
these libraries.

I have totally uninstalled and reinstalled AP 5.8.

Any ideas?



____________________________________________________________ ________________________
Need a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: @INC

am 08.06.2007 19:17:11 von Jan Dubois

On Fri, 08 Jun 2007, Andy Hammer wrote:
> I don't understand what has happened. I have not run any Perl scripts
> for a while. Now I get the "Can't locate whatever.pm in @INC" Also,
> the @INC variable now points to MKS Toolkit instead of Perl\lib and
> Perl\site\lib. Of course I can fix EVERY script with a use lib
> 'C:Perl\lib'; but I would rather change the @INC so it could see these
> libraries.

Check your PATH environment variable to see if you have the MKS directory
in front of ActivePerl. MKS contains a perl.exe too; maybe you are running
that one? Quick check:

perl -eprint$^X

If you are running the correct perl binary, then check if you got a PERL5LIB
or PERLLIB environment variable containing references to the MKS toolkit.

Cheers,
-Jan

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: @INC

am 11.06.2007 19:06:07 von Andy Hammer

After checking I see that DOS is running MKS perl and
CYGWIN is running Active Perl.
I don't understand how this is happening.
My System $PATH points to ActivePerl first.
User $PATH has no perl entries.
I also have $PERL5LIB pointing to ActivePerl.
Still MKS perl is the choice of the DOS prompt!

Face

--- Jan Dubois wrote:

> From: "Jan Dubois"
> To: "'Andy Hammer'" ,
>
> Subject: RE: @INC
> Date: Fri, 8 Jun 2007 10:17:11 -0700
>
> On Fri, 08 Jun 2007, Andy Hammer wrote:
> > I don't understand what has happened. I have not
> run any Perl scripts
> > for a while. Now I get the "Can't locate
> whatever.pm in @INC" Also,
> > the @INC variable now points to MKS Toolkit
> instead of Perl\lib and
> > Perl\site\lib. Of course I can fix EVERY script
> with a use lib
> > 'C:Perl\lib'; but I would rather change the @INC
> so it could see these
> > libraries.
>
> Check your PATH environment variable to see if you
> have the MKS directory
> in front of ActivePerl. MKS contains a perl.exe
> too; maybe you are running
> that one? Quick check:
>
> perl -eprint$^X
>
> If you are running the correct perl binary, then
> check if you got a PERL5LIB
> or PERLLIB environment variable containing
> references to the MKS toolkit.
>
> Cheers,
> -Jan
>
>



____________________________________________________________ ________________________
Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7


_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: @INC

am 11.06.2007 20:04:22 von Jan Dubois

On Mon, 11 Jun 2007, Andy Hammer wrote:
> After checking I see that DOS is running MKS perl and CYGWIN is
> running Active Perl. I don't understand how this is happening. My
> System $PATH points to ActivePerl first. User $PATH has no perl
> entries. I also have $PERL5LIB pointing to ActivePerl. Still MKS perl
> is the choice of the DOS prompt!

Please let us know which shell you are running, the value of PATH
inside that shell, and how you are invoking Perl. E.g. if you
are running the Perl script directly, then the Perl interpreter
may be selected by the #! line, or by shell associations in the
registry. If your shell has a 'which' command, check the output
of `which perl`.

Cheers,
-Jan

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: @INC

am 12.06.2007 21:22:05 von Andy Hammer

I run my scripts by typing 'perl script.pl'

>From DOS:
'which perl' = C:\Perl\bin/perl.exe (why is the last
slash a forward?)
'PATH' =
PATH=C:\Perl\site\bin;C:\Perl\bin;C:\PROGRA~1\MKSTOO~1\mksnt ;C:\PROGRA~1\MKSTOO~1\bin;C:\PROGRA~1\MKSTOO~1\bin\X11;C:\PR OGRA~1\MKSTOO~1\mksnt;C:\IBM\InformationServer\ASBNode\lib\c pp;C:\IBM\InformationServer\ASBNode\apps\proxy\cpp\vc60\MT_d ll\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wb em;C:\Program
Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program
Files\Microsoft SQL Server\90\Tools\binn\;C:\Program
Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program
Files\Microsoft SQL
Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program
Files\Microsoft Visual Studio
8\Common7\IDE\PrivateAssemblies\;X:\HCIApps\SYBASE\BIN;X:\HC IApps\SYBASE\DLL;C:\Program
Files\QuickTime\QTSystem\;C:\Program Files\SSH
Communications Security\SSH Secure Shell

>From cygwin:
'which perl' = /cygdrive/c/Perl/bin/perl
'echo $PATH' =
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/Perl /site/bin:/cygdrive/c/Perl/bin:/cygdrive/c/PROGRA~1/MKSTOO~1 /mksnt:/cygdrive/c/PROGRA~1/MKSTOO~1/bin:/cygdrive/c/PROGRA~ 1/MKSTOO~1/bin/X11:/cygdrive/c/PROGRA~1/MKSTOO~1/mksnt:/cygd rive/c/IBM/InformationServer/ASBNode/lib/cpp:/cygdrive/c/IBM /InformationServer/ASBNode/apps/proxy/cpp/vc60/MT_dll/bin:/c ygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/W INDOWS/System32/Wbem:/cygdrive/c/Program
Files/Microsoft SQL
Server/80/Tools/Binn/:/cygdrive/c/Program
Files/Microsoft SQL
Server/90/Tools/binn/:/cygdrive/c/Program
Files/Microsoft SQL
Server/90/DTS/Binn/:/cygdrive/c/Program
Files/Microsoft SQL
Server/90/Tools/Binn/VSShell/Common7/IDE/:/cygdrive/c/Progra m
Files/Microsoft Visual Studio
8/Common7/IDE/PrivateAssemblies/:/cygdrive/x/HCIApps/SYBASE/ BIN:/cygdrive/x/HCIApps/SYBASE/DLL:/cygdrive/c/Program
Files/QuickTime/QTSystem/:/cygdrive/c/Program
Files/SSH Communications Security/SSH Secure Shell


--- Jan Dubois wrote:

> On Mon, 11 Jun 2007, Andy Hammer wrote:
> > After checking I see that DOS is running MKS perl
> and CYGWIN is
> > running Active Perl. I don't understand how this
> is happening. My
> > System $PATH points to ActivePerl first. User
> $PATH has no perl
> > entries. I also have $PERL5LIB pointing to
> ActivePerl. Still MKS perl
> > is the choice of the DOS prompt!
>
> Please let us know which shell you are running, the
> value of PATH
> inside that shell, and how you are invoking Perl.
> E.g. if you
> are running the Perl script directly, then the Perl
> interpreter
> may be selected by the #! line, or by shell
> associations in the
> registry. If your shell has a 'which' command,
> check the output
> of `which perl`.
>
> Cheers,
> -Jan
>
>




____________________________________________________________ ________________________
Yahoo! oneSearch: Finally, mobile search
that gives answers, not web links.
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

perlxs community

am 12.06.2007 23:16:44 von Wayne Simmons

I've been tasked with learning how to call C functions from Perl. I've found
the XS interface and reviewed the perlxs and perlxstut documentation.
However, I still have some questions. Can anyone point me to an xs mailing
list or community or is this the best place to ask xs related questions?

-Wayne Simmons

--
Software Engineer
InterSystems USA, Inc.
303-858-1000



_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: perlxs community

am 12.06.2007 23:24:53 von Jan Dubois

On Tue, 12 Jun 2007, Wayne Simmons wrote:
> I've been tasked with learning how to call C functions from Perl. I've
> found the XS interface and reviewed the perlxs and perlxstut
> documentation. However, I still have some questions. Can anyone point
> me to an xs mailing list or community or is this the best place to ask
> xs related questions?

http://lists.cpan.org/showlist.cgi?name=perl-xs

Cheers,
-Jan

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs