Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^9: Problem with wxperl/

by bulk88 (Priest)
on Sep 11, 2012 at 22:08 UTC ( #993075=note: print w/replies, xml ) Need Help??

in reply to Re^8: Problem with wxperl/
in thread Problem with wxperl/

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.
  • Comment on Re^9: Problem with wxperl/

Replies are listed 'Best First'.
Re^10: Problem with wxperl/
by Anonymous Monk on Sep 11, 2012 at 22:51 UTC

      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.

Re^10: Problem with wxperl/
by bedohave9 (Acolyte) on Sep 11, 2012 at 23:33 UTC

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

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

        If he is using ActivePerl, just use ppm install Wx and be finished already

      Here is the link for the new post.
Re^10: Problem with wxperl/
by bedohave9 (Acolyte) on Sep 12, 2012 at 00:27 UTC

    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> Can't locate 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\ line 11. BEGIN failed--compilation aborted at C:\Documents and Settings\xyz\Des +ktop\Perl\ line 11.
Re^10: Problem with wxperl/
by bedohave9 (Acolyte) on Sep 12, 2012 at 00:50 UTC

    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> Can't locate in @INC (@INC contains: C:/strawberry/perl/vendor/lib C:/strawberry/perl/lib .) at C:\Documents and Settings\spullabhotla\Desktop\Perl\ line +11. BEGIN failed--compilation aborted at C:\Documents and Settings\spullab +hotla\Desktop\Perl\ line 11.

      So did you install Wx?

        I ran into some issues executing the scripts and that error described that the http_proxy needs to be corrected. Then I have removed it from the Env Variables again. I again ran the same scripts to see if that helps in executing the scripts. That did not help me much either. Initially, these scripts used to run whatever related to Wx except for when I have used wxPerl::Constructors. After copying the Alien-wxWidgets, Wx and wxPerl::Constructors into the C:\strawberry\perl\lib in order to resolve the @INC for wxPerl::Constructors as one of the trial and error method, the console throwing the error which I have mentioned in the previous posts. So I reinstalled the Wx going to the cpan from strawberry. That is how I ended up redoing the Wx.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://993075]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2018-05-27 22:42 GMT
Find Nodes?
    Voting Booth?