"Can't locate" error

XUpload related questions

Moderator: admin

Message
Author
madgerald
Posts: 1
Joined: May 28, 2006 7:04 am

"Can't locate" error

#1 Postby madgerald » May 28, 2006 7:10 am

whenever I try and run the script I get this returned:

Code: Select all

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.... :shock:

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#2 Postby PilgrimX182 » May 29, 2006 5:20 am

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?

Anonymous

#3 Postby Anonymous » Jun 26, 2006 11:13 pm

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

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#4 Postby PilgrimX182 » Jul 04, 2006 6:26 am

pacman99,
Make sure upload_status.cgi is in the same folder upload.cgi & XUploadConfig.pm are.
Also check XUploadConfig.pm chmod, should be 644.

Butch
Posts: 29
Joined: Sep 14, 2006 1:44 am
Location: USA
Contact:

#5 Postby Butch » Sep 14, 2006 1:50 am

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

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#6 Postby PilgrimX182 » Sep 14, 2006 6:23 am

This problem happens when your Perl version is 5.0.5 or older.
Edit XUploadConfig.pm like this:

Code: Select all

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: Select all

$SIG{HUP} = 'IGNORE';
local $SIG{__DIE__} = 'CleanUp';

Butch
Posts: 29
Joined: Sep 14, 2006 1:44 am
Location: USA
Contact:

#7 Postby Butch » Sep 14, 2006 5:50 pm

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.

Butch
Posts: 29
Joined: Sep 14, 2006 1:44 am
Location: USA
Contact:

#8 Postby Butch » Sep 14, 2006 8:13 pm

Should have included this in the above. Running PCRE Library Version 6.06 dated Feb., 2006, is this causing the problem

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#9 Postby PilgrimX182 » Sep 15, 2006 5:13 am

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.

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.

linssen
Posts: 3
Joined: Nov 29, 2006 1:48 pm

Similar problem

#10 Postby linssen » Nov 29, 2006 1:57 pm

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: Select all

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

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?

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#11 Postby PilgrimX182 » Nov 29, 2006 2:11 pm

Use this in upload_status.cgi:

Code: Select all

use lib 'C:\Inetpub\cgi-bin\xupload\';

linssen
Posts: 3
Joined: Nov 29, 2006 1:48 pm

#12 Postby linssen » Nov 29, 2006 2:16 pm

I've done that, sorry that was what I mean by

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.

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#13 Postby PilgrimX182 » Nov 29, 2006 2:22 pm

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?

linssen
Posts: 3
Joined: Nov 29, 2006 1:48 pm

#14 Postby linssen » Nov 29, 2006 2:29 pm

Yes, here's the beginning of upload_status.cgi:

Code: Select all

#!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: Select all

#!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: Select all

CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.

gabeanderson
Posts: 3
Joined: Mar 20, 2007 5:10 pm
Contact:

#15 Postby gabeanderson » Mar 20, 2007 5:12 pm

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: Select all

use lib 'D:\inetpub\WEBSITES\WWW_2007\support\upload2\';


...but now I'm getting a different error from upload_status.cgi when testing:

Software error:

Bad name after upload_id' at D:\inetpub\WEBSITES\WWW_2007\support\upload2\upload_status.cgi line 13.


Any suggestions?

Thanks,
Gabe


Return to “XUpload”

Who is online

Users browsing this forum: No registered users and 1 guest