The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> Perl Programming
|
Getting wxPerl::Constructors error.
Discuss Getting wxPerl::Constructors error. in the Perl Programming forum on Dev Shed. Getting wxPerl::Constructors error. Perl Programming forum discussing coding in Perl, utilizing Perl modules, and other Perl-related topics. Perl, the Practical Extraction and Reporting Language, is the choice for many for parsing textual information.
|
|
 |
|
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

September 7th, 2012, 12:52 PM
|
|
Contributing User
|
|
Join Date: Apr 2012
Posts: 37
Time spent in forums: 11 h 40 m 21 sec
Reputation Power: 2
|
|
|
Getting wxPerl::Constructors error.
Hi All,
I am getting an error while running the Perl program on the windows. I have done the IPC::Run for this and the log is good with the successful installation of the module. Please help.
Please see below.
C:\Documents and Settings\xyz\Desktop\Perl>winframe.pl
Can't locate wxPerl/Constructors.pm in @INC (@INC contains: C:\Users\xyz~1\perl5\lib\perl5\MSWin32-x64-multi-thread C:\Users\xyz~1\perl5\lib\per
l5/MSWin32-x64-multi-thread C:\Users\xyz~1\perl5\lib\perl5 C:/strawberry/perl/site/lib C:/strawberry/perl/vendor/lib C:/strawberry/perl/lib .) at C
:\Documents and Settings\xyz\Desktop\Perl\winframe.pl line 7.
BEGIN failed--compilation aborted at C:\Documents and Settings\xyz\Desktop\Perl\winframe.pl line 7.
|

September 8th, 2012, 08:59 AM
|
|
|
The error message is telling you that it can't find the wxPerl::Constructors module. So, either it isn't installed or it wasn't installed correctly.
What do you mean by this:
Quote: | I have done the IPC::Run for this and the log is good with the successful installation of the module. |
How did you install the module?
|

September 10th, 2012, 05:28 PM
|
|
Contributing User
|
|
Join Date: Apr 2012
Posts: 37
Time spent in forums: 11 h 40 m 21 sec
Reputation Power: 2
|
|
Correct. I could not able to install it properly. This is basically on windows. Initially, I had the problem with installing the Wx into my system by getting an error 'wxbase28u_gcc_custom.dll Error'. But then found out that I have missed the Alien to be installed, which is the Wx is dependent on. Then the problem is solved. Later on, I have installed wxPerl::Constructors into my system and executed a sample program to see if it works. The console throwing an error as described before. I have installed the module from CPAN.
Just now, I tried to install wxPerl::Constructors::argmap, please see the error below.
cpan> install wxPerl::Constructors::argmap
Creating database file ...
Proxy must be specified as absolute URI; 'http_proxy=http://username  assword@proxy.10.155.10.129' is not at C:\strawberry\perl\vendor\lib/LWP/Simple.pm line 31.
Compilation failed in require at
C:\strawberry\perl\vendor\lib/CPAN/SQLite/Index.pm line 13.
BEGIN failed--compilation aborted at
C:\strawberry\perl\vendor\lib/CPAN/SQLite/Index.pm line 13.
Compilation failed in require at
C:/strawberry/perl/vendor/lib/CPAN/SQLite.pm line 62.
Catching error: "system C:\\strawberry\\perl\\bin\\perl.exe -MCPAN::SQLite::META=setup,update -e setup failed: 65280 at C:\\strawberry\\perl\\vendor\\
lib/CPAN/SQLite/META.pm line 332, <IN> line 3.\cJ" at C:/strawberry/perl/lib/CPAN.pm line 392, <IN> line 3.
CPAN::shell() called at -e line 1
Creating database file ...
Proxy must be specified as absolute URI; 'http_proxy=http://username  assword@proxy.10.155.10.129' is not at C:\strawberry\perl\vendor\lib/LWP/Simple.
pm line 31.
Compilation failed in require at C:\strawberry\perl\vendor\lib/CPAN/SQLite/Index.pm line 13.
BEGIN failed--compilation aborted at C:\strawberry\perl\vendor\lib/CPAN/SQLite/Index.pm line 13.
Compilation failed in require at C:/strawberry/perl/vendor/lib/CPAN/SQLite.pm line 62.
Lockfile removed.
system C:\strawberry\perl\bin\perl.exe -MCPAN::SQLite::META=setup,update -e setup failed: 65280 at C:\strawberry\perl\vendor\lib/CPAN/SQLite/META.pm l
ine 332, <IN> line 3.
Quote: | Originally Posted by FishMonger The error message is telling you that it can't find the wxPerl::Constructors module. So, either it isn't installed or it wasn't installed correctly.
What do you mean by this:
How did you install the module? |
|

September 11th, 2012, 10:53 AM
|
|
|
|
It looks like you have 2 different installations of perl on your system. That is not a problem on *nix systems, but is a problem on Windows systems.
Windows systems can be configured to utilize multiple perl installations by using perlbrew or a VM. However, if you're new to perl, I wouldn't recommend going that route because that adds another layer of complexity.
Personally, I'd remove both/all perl installations and then reinstall a single instance of perl. I normally use Activestate, but others would recommend Strawberry perl.
|

September 11th, 2012, 11:22 AM
|
|
Contributing User
|
|
Join Date: Apr 2012
Posts: 37
Time spent in forums: 11 h 40 m 21 sec
Reputation Power: 2
|
|
You are absolutely right. I have two different installations. The ActivePerl that I have initially installed and was successfully running in my system, but due some blogs and googled information I have installed Strawberry Perl on my system, which led to this confusion. Just a little clarification, if I remove and reinstall a newer Perl, should I keep my old scripts as they are. I think I also need to reinstall all the modules, which I have installed previously. I do not know what would be outcome of uninstalling the Perls from my system. Anyway, I will remove all the Perl installations from the Control Panel and install a new Active Perl.
Quote: | Originally Posted by FishMonger It looks like you have 2 different installations of perl on your system. That is not a problem on *nix systems, but is a problem on Windows systems.
Windows systems can be configured to utilize multiple perl installations by using perlbrew or a VM. However, if you're new to perl, I wouldn't recommend going that route because that adds another layer of complexity.
Personally, I'd remove both/all perl installations and then reinstall a single instance of perl. I normally use Activestate, but others would recommend Strawberry perl. |
|

September 11th, 2012, 11:31 AM
|
|
|
|
After uninstalling via Add/Remove Programs, there still will be some left over files/directories that you'll need to manually delete before reinstalling perl.
You will , of course, want to be sure not to delete your scripts and you will need to reinstall all modules that are not core and are not included as part of Activestate.
|

September 11th, 2012, 11:39 AM
|
|
|
One thing to keep in mind about Activestate when deciding on which perl disto to install is that a lot of modules which are not included in Activestate's repository can be difficult to install. Strawberry perl is much better at installing a wider range of cpan modules.
You'll also want to read this article.
http://wxwidgets.blogspot.com/2011/...-wxwidgets.html
Last edited by FishMonger : September 11th, 2012 at 11:45 AM.
|

September 11th, 2012, 11:47 AM
|
|
Contributing User
|
|
Join Date: Apr 2012
Posts: 37
Time spent in forums: 11 h 40 m 21 sec
Reputation Power: 2
|
|
True, I was just going to ask the same.
Do you think DWIM or Citrus Perl would be a better idea to install? I am asking this just in case, if they might be of good use for the GUI on windows that I am working with right now. So far, I have read and heard that the StrawberryPerl is good for Windows and ActivePerl is rather a bit complex on windows and more than that they wanted to push the Devkit for selling (don't know if it is real or not.)
Quote: | Originally Posted by FishMonger One thing to keep in mind about Activestate when deciding on which perl disto to install is that a lot of modules which are not included in Activestate's repository can be difficult to install. Strawberry perl is much better at installing a wider range of cpan modules. |
|

September 11th, 2012, 11:57 AM
|
|
|
|
I've never worked with DWIM or Citrus Perl, so I can't answer that part of your question.
I just checked my Win7 32 bit system here at work using Activestate perl 5.14 and it only has about 5 Wx related modules and the ones you're trying to install are not in that list.
For your purposes, it might be best to use Strawberry perl instead of Activestate.
|

September 12th, 2012, 01:54 PM
|
|
Contributing User
|
|
Join Date: Apr 2012
Posts: 37
Time spent in forums: 11 h 40 m 21 sec
Reputation Power: 2
|
|
I have just tried to remove both the perls and re-install the strawberry, but just in case I asked one of my co-worker of what he is using on his machine for windows and he told me that he is using Active Perl. But then I have tried installing the Wx and wxPerl::Constructors on my machine again, which I have already tried it earlier and the console threw the error message as below.
Please look into this.
C:\Perl64>cpan
It looks like you don't have a C compiler and make utility installed.
+ Trying
to install dmake and the MinGW gcc compiler using the Perl Package Man
+ager.
This may take a a few minutes...
Unrecognized proxy setting "http_proxy=http://username  assword@proxy.
+10.155.10.129" ignor
The http_proxy environment variable should be of the form "http://prox
+y.example.com".
Downloading ActiveState Package Repository packlist...done
Updating ActiveState Package Repository database...done
Syncing site PPM database with .packlists...done
Syncing perl PPM database with .packlists...done
ppm.bat install failed: Can't find any package that provides MinGW
It looks like the installation of dmake and MinGW has failed. You wil
+l not be
able to run Makefile commands or compile C extension code. Please che
+ck your
internet connection and your proxy settings!
cpan shell -- CPAN exploration and modules installation (v1.9800)
Enter 'h' for help.
|

September 12th, 2012, 03:24 PM
|
|
|
So, did you install Strawberry perl or Activestate perl as the error message appears to indicate?
If you installed Activestate, then use its ppm utility.
Quote: C:\Users\RKB>ppm install Wx
Downloading Wx-0.9904...done
Downloading Alien-wxWidgets-0.60...done
Downloading ExtUtils-XSpp-0.1602...done
Unpacking Wx-0.9904...done
Unpacking Alien-wxWidgets-0.60...done
Unpacking ExtUtils-XSpp-0.1602...done
Generating HTML for Wx-0.9904...done
Generating HTML for Alien-wxWidgets-0.60...done
Generating HTML for ExtUtils-XSpp-0.1602...done
Updating files in site area...done
1015 files installed |
Then install MinGW
Quote: C:\Users\RKB>ppm install MinGW
Downloading MinGW-5.1.4.1...done
Unpacking MinGW-5.1.4.1...done
Generating HTML for MinGW-5.1.4.1...done
Updating files in site area...done
940 files installed |
Then use cpan to install wxPerl::Constructors
Quote: C:\Users\RKB>perl -MCPAN -e shell
Set up gcc environment - 3.4.5 (mingw-vista special r3)
cpan shell -- CPAN exploration and modules installation (v1.960001)
Enter 'h' for help.
cpan> install wxPerl::Constructors
Going to read 'C:\Perl\cpan\Metadata'
Database was generated on Wed, 22 Aug 2012 11:07:03 GMT
Fetching with LWP:
http://ppm.activestate.com/CPAN/authors/01mailrc.txt.gz
Going to read 'C:\Perl\cpan\sources\authors\01mailrc.txt.gz'
............................................................................DONE
Fetching with LWP:
http://ppm.activestate.com/CPAN/modules/02packages.details.txt.gz
Going to read 'C:\Perl\cpan\sources\modules\02packages.details.txt.gz'
Database was generated on Wed, 12 Sep 2012 11:07:03 GMT
..............
New CPAN.pm version (v1.9800) available.
[Currently running version is v1.960001]
You might want to try
install CPAN
reload cpan
to both upgrade CPAN.pm and run the new version without leaving
the current session.
..............................................................DONE
Fetching with LWP:
http://ppm.activestate.com/CPAN/modules/03modlist.data.gz
Going to read 'C:\Perl\cpan\sources\modules\03modlist.data.gz'
............................................................................DONE
Going to write C:\Perl\cpan\Metadata
Running install for module 'wxPerl::Constructors'
Running make for E/EW/EWILHELM/wxPerl-Constructors-v0.0.4.tar.gz
Fetching with LWP:
http://ppm.activestate.com/CPAN/authors/id/E/EW/EWILHELM/wxPerl-Constructors-v0.0.4.tar.gz
Fetching with LWP:
http://ppm.activestate.com/CPAN/authors/id/E/EW/EWILHELM/CHECKSUMS
Checksum for C:\Perl\cpan\sources\authors\id\E\EW\EWILHELM\wxPerl-Constructors-v0.0.4.tar.gz ok
Scanning cache C:\Perl/cpan/build for sizes
............................................................................DONE
wxPerl-Constructors-v0.0.4/
wxPerl-Constructors-v0.0.4/examples/
wxPerl-Constructors-v0.0.4/examples/wxconstruct.pl
wxPerl-Constructors-v0.0.4/lib/
wxPerl-Constructors-v0.0.4/lib/wxPerl/
wxPerl-Constructors-v0.0.4/lib/wxPerl/Constructors/
wxPerl-Constructors-v0.0.4/lib/wxPerl/Constructors/argmap.pod
wxPerl-Constructors-v0.0.4/lib/wxPerl/Constructors/argmap.pm
wxPerl-Constructors-v0.0.4/lib/wxPerl/Constructors/doc.pod
wxPerl-Constructors-v0.0.4/lib/wxPerl/Constructors.pm
wxPerl-Constructors-v0.0.4/META.yml
wxPerl-Constructors-v0.0.4/Changes
wxPerl-Constructors-v0.0.4/t/
wxPerl-Constructors-v0.0.4/t/00-load.t
wxPerl-Constructors-v0.0.4/t/01-frame.t
wxPerl-Constructors-v0.0.4/MANIFEST
wxPerl-Constructors-v0.0.4/notes/
wxPerl-Constructors-v0.0.4/notes/proto_notes.txt
wxPerl-Constructors-v0.0.4/MANIFEST.SKIP
wxPerl-Constructors-v0.0.4/tools/
wxPerl-Constructors-v0.0.4/tools/xs_proto_map
wxPerl-Constructors-v0.0.4/README
wxPerl-Constructors-v0.0.4/Build.PL
CPAN.pm: Going to build E/EW/EWILHELM/wxPerl-Constructors-v0.0.4.tar.gz
Set up gcc environment - 3.4.5 (mingw-vista special r3)
Set up gcc environment - 3.4.5 (mingw-vista special r3)
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'wxPerl-Constructors' version 'v0.0.4'
Set up gcc environment - 3.4.5 (mingw-vista special r3)
Set up gcc environment - 3.4.5 (mingw-vista special r3)
Set up gcc environment - 3.4.5 (mingw-vista special r3)
Building wxPerl-Constructors
EWILHELM/wxPerl-Constructors-v0.0.4.tar.gz
C:\Perl\bin\perl.exe ./Build -- OK
Running Build test
Set up gcc environment - 3.4.5 (mingw-vista special r3)
Set up gcc environment - 3.4.5 (mingw-vista special r3)
Set up gcc environment - 3.4.5 (mingw-vista special r3)
t\00-load.t ... 1/1 # Testing wxPerl::Constructors v0.0.4
t\00-load.t ... ok
t\01-frame.t .. ok
All tests successful.
Files=2, Tests=5, 1 wallclock secs ( 0.08 usr + 0.03 sys = 0.11 CPU)
Result: PASS
EWILHELM/wxPerl-Constructors-v0.0.4.tar.gz
C:\Perl\bin\perl.exe ./Build test -- OK
Running Build install
Prepending C:\Perl\cpan\build\wxPerl-Constructors-v0.0.4-FHq2dL/blib/arch C:\Perl\cpan\build\wxPerl-Constructors-v0.0.4-FHq2dL/blib/lib to PERL5LIB for 'install'
Set up gcc environment - 3.4.5 (mingw-vista special r3)
Set up gcc environment - 3.4.5 (mingw-vista special r3)
Set up gcc environment - 3.4.5 (mingw-vista special r3)
Building wxPerl-Constructors
Installing C:\Perl\site\lib\wxPerl\Constructors.pm
Installing C:\Perl\site\lib\wxPerl\Constructors\argmap.pm
Installing C:\Perl\site\lib\wxPerl\Constructors\argmap.pod
Installing C:\Perl\site\lib\wxPerl\Constructors\doc.pod
Installing C:\Perl\man\man3\wxPerl.Constructors.3
Installing C:\Perl\man\man3\wxPerl.Constructors.argmap.3
Installing C:\Perl\man\man3\wxPerl.Constructors.doc.3
Installing C:\Perl\html\site\lib\wxPerl\Constructors.html
Installing C:\Perl\html\site\lib\wxPerl\Constructors\argmap.html
Installing C:\Perl\html\site\lib\wxPerl\Constructors\doc.html
Building ActivePerl Table of Contents
For ActivePerl's PPM: touch 'C:\Perl\lib\perllocal.pod'
EWILHELM/wxPerl-Constructors-v0.0.4.tar.gz
C:\Perl\bin\perl.exe ./Build install -- OK |
|

September 12th, 2012, 03:59 PM
|
|
Contributing User
|
|
Join Date: Apr 2012
Posts: 37
Time spent in forums: 11 h 40 m 21 sec
Reputation Power: 2
|
|
When I have tried doing the Wx through ppm, it threw an error. Here is the error below.
C:\Users\psr>ppm install Wx
Unrecognized proxy setting "http_proxy=http://psr  assword@proxy.10.155.10.129" ignored.
The http_proxy environment variable should be of the form "http://proxy.example.com".
No missing packages to install
Quote: | Originally Posted by FishMonger So, did you install Strawberry perl or Activestate perl as the error message appears to indicate?
If you installed Activestate, then use its ppm utility.
Then install MinGW
Then use cpan to install wxPerl::Constructors |
|

September 14th, 2012, 09:18 AM
|
|
|
|
Have you tried correcting or removing the http_proxy environment variable?
|

September 14th, 2012, 11:52 AM
|
|
Contributing User
|
|
Join Date: Apr 2012
Posts: 37
Time spent in forums: 11 h 40 m 21 sec
Reputation Power: 2
|
|
I have modified it before as it was set to Port # 80 in the LAN Settings and set the address to http://ppm.activestate.com/CPAN. I was trying to install the Wx through CPAN for ActiveState. Don't know if it works or not, but just tried as trial and error method.
Quote: | Originally Posted by FishMonger Have you tried correcting or removing the http_proxy environment variable? |
Last edited by bedohave9 : September 14th, 2012 at 12:50 PM.
|

September 14th, 2012, 02:08 PM
|
|
|
|
That's the wrong value to set for the proxy.
Unless your internet connection requires the use of a proxy server, which may be the case in a corp environment, then there is no need to set that environment variable.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|