| View previous topic :: View next topic |
| Author |
Message |
madgerald
Joined: 28 May 2006 Posts: 1
|
Posted: May 28, 2006 7:10 am Post subject: "Can't locate" error |
|
|
whenever I try and run the script I get this returned:
| Code: | Can't locate XUploadConfig.pm in @INC (@INC contains: C:/perl/lib .) at C:\ (*edited out for security*) .com\wwwroot\cgi-bin\mixup\upload.cgi line 8.
BEGIN failed--compilation aborted at C:\ (*edited out for security*) .com\wwwroot\cgi-bin\mixup\upload.cgi line 8. |
I am hoping it is something simple, but its got me stuck....  |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2106 Location: UFO Lab
|
Posted: May 29, 2006 5:20 am Post subject: |
|
|
Hmm..not enough details but I'll try to help.
1) Make sure you have XUpload.pm in th same folder upload.cgi is.
2) Try to add " use lib 'C:\ (*edited out for security*) .com\wwwroot\cgi-bin\mixup\'; " in the top of upload.cgi
If this won't help, specify your details: are you using PRO or Free version? What OS do you use? What perl version installed? Apache or IIS? |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Jun 26, 2006 11:13 pm Post subject: |
|
|
i have the same error:
Software error:
Can't locate XUploadConfig.pm in @INC (@INC contains: /etc/perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.8 /usr/lib64/perl5/vendor_perl/5.8.7 /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.8 /usr/lib64/perl5/site_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/5.8.8 /usr/local/lib/site_perl .) at /var/www/localhost/cgi-bin/xupload/upload_status.cgi line 6.
BEGIN failed--compilation aborted at /var/www/localhost/cgi-bin/xupload/upload_status.cgi line 6.
1) XUploadConfig.pm is in the same folder as upload.cgi
2) I tried lib /var/www/localhost/cgi-bin/xupload
I'm using the Free version, 2.5, perl 5.8.8 installed as is already apparent, apache 2.2 |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2106 Location: UFO Lab
|
Posted: Jul 04, 2006 6:26 am Post subject: |
|
|
pacman99,
Make sure upload_status.cgi is in the same folder upload.cgi & XUploadConfig.pm are.
Also check XUploadConfig.pm chmod, should be 644. |
|
| Back to top |
|
 |
Butch
Joined: 14 Sep 2006 Posts: 29 Location: USA
|
Posted: Sep 14, 2006 1:50 am Post subject: |
|
|
I have almost the same problem: XUpload v2.5
upload.cgi, upload_status.cgi, XUploadConfig.pm, Templates all in the same folder.
Error Message: "Software error:
[Wed Sep 13 18:36:23 2006] XUploadConfig.pm: Can't modify subroutine entry in scalar assignment at XUploadConfig.pm line 53, near "};" BEGIN failed--compilation aborted at upload_status.cgi line 6." |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2106 Location: UFO Lab
|
Posted: Sep 14, 2006 6:23 am Post subject: |
|
|
This problem happens when your Perl version is 5.0.5 or older.
Edit XUploadConfig.pm like this:
| Code: | package XUploadConfig;
use strict;
use Exporter ();
our @ISA = qw(Exporter);
our @EXPORT = qw($c);
our $c=
{
# Directory for temporary using files
temp_dir => '/home/.../cgi-bin/UPLOAD2/temp',
..................
|
also remove these lines from upload.cgi:
| Code: | $SIG{HUP} = 'IGNORE';
local $SIG{__DIE__} = 'CleanUp'; |
|
|
| Back to top |
|
 |
Butch
Joined: 14 Sep 2006 Posts: 29 Location: USA
|
Posted: Sep 14, 2006 5:50 pm Post subject: |
|
|
I Tried making the above changes then received the following error:
"Software error:
[Thu Sep 14 10:47:43 2006] XUploadConfig.pm: syntax error at XUploadConfig.pm line 6, near "our @ISA " BEGIN failed--compilation aborted at upload_status.cgi line 6."
Also, if I get this version to working and purchase the pro version will I make the same changes. I really want the Pro version, just making sure things will work before purchase. |
|
| Back to top |
|
 |
Butch
Joined: 14 Sep 2006 Posts: 29 Location: USA
|
Posted: Sep 14, 2006 8:13 pm Post subject: |
|
|
| Should have included this in the above. Running PCRE Library Version 6.06 dated Feb., 2006, is this causing the problem |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2106 Location: UFO Lab
|
Posted: Sep 15, 2006 5:13 am Post subject: |
|
|
| Quote: | | Running PCRE Library Version 6.06 dated Feb., 2006, is this causing the problem |
Don't even know what PCRE lib is. So I guess it won't affect.
| Quote: | | Also, if I get this version to working and purchase the pro version will I make the same changes. I really want the Pro version, just making sure things will work before purchase. |
Actually we've released new PRO2.2 version yesterday, it should have perl5.0.5 compatibility. Also we provide free installation so it 100% will work for you. |
|
| Back to top |
|
 |
linssen
Joined: 29 Nov 2006 Posts: 3
|
Posted: Nov 29, 2006 1:57 pm Post subject: Similar problem |
|
|
I'm getting a similar problem.
Details:
Server: windows IIS 6.0
Script: version Pro 2.3 02-Nov-2006
upload and temp dirs have internet user for modify and write.
| Code: | Software error:
Can't locate XUploadConfig.pm in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .) at C:\Inetpub\cgi-bin\xupload\upload_status.cgi line 6.
BEGIN failed--compilation aborted at C:\Inetpub\cgi-bin\xupload\upload_status.cgi line 6. |
Was getting nothing until I made the changes outlined here
| Quote: | | 2) Try to add " use lib 'C:\ (*edited out for security*) .com\wwwroot\cgi-bin\mixup\'; " in the top of upload.cgi |
Little help please? |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2106 Location: UFO Lab
|
Posted: Nov 29, 2006 2:11 pm Post subject: |
|
|
Use this in upload_status.cgi:
| Code: |
use lib 'C:\Inetpub\cgi-bin\xupload\';
|
|
|
| Back to top |
|
 |
linssen
Joined: 29 Nov 2006 Posts: 3
|
Posted: Nov 29, 2006 2:16 pm Post subject: |
|
|
I've done that, sorry that was what I mean by
| Quote: | Was getting nothing until I made the changes outlined here
2) Try to add " use lib 'C:\ (*edited out for security*) .com\wwwroot\cgi-bin\mixup\'; " in the top of upload.cgi |
The form tells me the max files etc, so something must be going right?
---
Sorry, after reading again properly I realised you put upload_status.cgi. I've added that line to no avail. |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2106 Location: UFO Lab
|
Posted: Nov 29, 2006 2:22 pm Post subject: |
|
|
| Quote: | | The form tells me the max files etc, so something must be going right? |
This means that upload.cgi works fine.
But did you add that code to upload_status.cgi too? |
|
| Back to top |
|
 |
linssen
Joined: 29 Nov 2006 Posts: 3
|
Posted: Nov 29, 2006 2:29 pm Post subject: |
|
|
Yes, here's the beginning of upload_status.cgi:
| Code: | #!C:\Perl\bin\perl.exe
### XUpload PRO2.3
### SibSoft.net (1 Nov 2006)
use lib 'C:\Inetpub\cgi-bin\xupload';
use strict;
use CGI::Carp qw(fatalsToBrowser);
use XUploadConfig;
use HTML::Template;
use CGI qw/:standard/; |
And of upload.cgi:
| Code: | #!C:\Perl\bin\perl.exe
### XUpload PRO2.3
### SibSoft.net (1 Nov 2006)
use strict;
use lib 'C:\Inetpub\cgi-bin\xupload';
use CGI::Carp qw(fatalsToBrowser);
use CGI qw/:standard/;
use File::Copy;
use XUploadConfig;
use HTML::Template;
use Digest::Perl::MD5 qw(md5_base64); |
---------------
After adding a \ to the end of the code you gave it now gives a new error:
| Code: | CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. |
|
|
| Back to top |
|
 |
gabeanderson
Joined: 20 Mar 2007 Posts: 3
|
Posted: Mar 20, 2007 5:12 pm Post subject: |
|
|
I just installed the free version to test it out on my server (Windows 2003 / IIS 6). If it works as expected, I hope to purchase the pro version.
I was initially getting the same error as outlined in this thread. Then I added the suggested code to upload.cgi and upload_status.cgi:
| Code: | | use lib 'D:\inetpub\WEBSITES\WWW_2007\support\upload2\'; |
...but now I'm getting a different error from upload_status.cgi when testing:
| Quote: | Software error:
Bad name after upload_id' at D:\inetpub\WEBSITES\WWW_2007\support\upload2\upload_status.cgi line 13.
|
Any suggestions?
Thanks,
Gabe |
|
| Back to top |
|
 |
|