Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^8: Problem with wxperl/constructors.pm

by bedohave9 (Acolyte)
on Sep 11, 2012 at 17:57 UTC ( [id://993029]=note: print w/replies, xml ) Need Help??


in reply to Re^7: Problem with wxperl/constructors.pm
in thread Problem with wxperl/constructors.pm

I have had a check in the "\\HKLM\Software\Perl" and found the below line items. Do I need these to be removed from the "\\HKLM\Software\Perl"?

Name Type Data

(Default) REG_SZ C:\Perl64

BinDir REG_SZ C:\Perl64\bin\perl.exe

  • Comment on Re^8: Problem with wxperl/constructors.pm

Replies are listed 'Best First'.
Re^9: Problem with wxperl/constructors.pm
by bulk88 (Priest) on Sep 11, 2012 at 22:08 UTC
    Yes. Delete the Perl key. All Win32 Perls questionable (IMHO) check their registry key for what normally are shell enviromental variables. Your Strawberry Perl is trying to load parts of ActivePerl into itself and vice versa. Do a "perl -V" at console and check what is for @INC at the bottom of the console message. The folders must be only refer to only 1 install/version of Perl.

        I also have added the http_proxy to the environment variables trying to resolve this. The http_proxy restricted me to install Wx module and other related modules into my system. I have removed it then. Just also wanted to include this point.

      After removing the registry entries and doing the perl -V

      C:\Users\spn>perl -V Set up gcc environment - gcc.exe (gcc-4.6.3 release with patches [buil +d 20120411 by perlmi Summary of my perl5 (revision 5 version 14 subversion 2) configuration +: Platform: osname=MSWin32, osvers=5.2, archname=MSWin32-x64-multi-thread uname='' config_args='undef' hint=recommended, useposix=true, d_sigaction=undef useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=und +ef use64bitint=define, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='C:/STRAWB~1/c/bin/gcc.exe', ccflags ='-DNDEBUG -DWIN32 -D_CONS +OLE -DNO_STRICT -DWI ZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DHASATTRI +BUTE -fno-strict-ali optimize='-O2', cppflags='-DWIN32' ccversion='', gccversion='gcc.exe (gcc-4.6.3 release with patches +[build 20120411 by p intsize=4, longsize=4, ptrsize=8, doublesize=8, byteorder=12345678 d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=8 ivtype='__int64', ivsize=8, nvtype='double', nvsize=8, Off_t='__in +t64', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='C:\STRAWB~1\c\bin\g++.exe', ldflags ='-L"C:\Perl64\lib\CORE"' libpth=\lib libs=-lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 +-lshell32 -lole32 -l -lodbc32 -lodbccp32 -lcomctl32 -lbufferoverflowU -lmsvcrt perllibs=-lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvap +i32 -lshell32 -lole3 ion -lodbc32 -lodbccp32 -lcomctl32 -lbufferoverflowU -lmsvcrt libc=msvcrt.lib, so=dll, useshrplib=true, libperl=perl514.lib gnulibc_version='' Dynamic Linking: dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-mdll -L"C:\Perl64\lib\CORE"' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS PERL_MALLOC_WRAP PERL_PRESERVE_IVUV PL_OP_SLAB +_ALLOC USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF USE_SITECUSTOMIZE Locally applied patches: ActivePerl Build 1402 [295342] Built under MSWin32 Compiled at Oct 7 2011 15:19:36 %ENV: PERL_JSON_BACKEND="JSON::XS" PERL_YAML_BACKEND="YAML" @INC: C:/Perl64/site/lib C:/Perl64/lib .
        Can you start a new thread and either link to this, or copy this post into the new thread and also link or copy Re^10: Problem with wxperl/constructors.pm into that thread. I, myself, don't understand this -V at all. You downloaded ActivePerl's source code and compiled ActivePerl yourself under GCC? Or did you install one of those "I dont own a MS C compiler, so I want to use free Mingw GCC to compile XS modules for my MS C Perl" modules from CPAN? I dont know. Of course you need to compile and install Wx now that you have the right CPAN shell loading the right Perl (or you still don't based on that -V).

        Here is the link for the new post.

         http://www.perlmonks.org/?node_id=993254

      I just tried executing after removing the hotkeys and environment variables etc and executed the script. Now, I am getting the below error.

      C:\Documents and Settings\xyz\Desktop\Perl>simpleapp.pl Can't locate Wx.pm in @INC (@INC contains: C:/strawberry/perl/site/lib C:/strawberry/perl/vendor/lib C:/strawberry/perl/lib .) at C:\Documents and Settings\xyz\Desktop\Perl\simpleapp.pl line 11. BEGIN failed--compilation aborted at C:\Documents and Settings\xyz\Des +ktop\Perl\simpleapp.pl line 11.

      I have the below script on top of the code :

      # add directory to start of @INC at compile-time BEGIN { shift @INC, 'C:/strawberry/perl/site/lib' }

      Here is the error thrown on the console. There is a slight variance when I have added this script on top of the code. Earlier, the console used to show the path "C:/strawberry/perl/site/lib", but now it is showing the vendor/lib and perl/lib in the error message, but when I added all the three paths to the script, it still throws the same error as below. Please do see the previous one and this one.

      C:\Documents and Settings\spullabhotla\Desktop\Perl>simpleapp.pl Can't locate Wx.pm in @INC (@INC contains: C:/strawberry/perl/vendor/lib C:/strawberry/perl/lib .) at C:\Documents and Settings\spullabhotla\Desktop\Perl\simpleapp.pl line +11. BEGIN failed--compilation aborted at C:\Documents and Settings\spullab +hotla\Desktop\Perl\simpleapp.pl line 11.

        So did you install Wx?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://993029]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-04-25 10:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found