Help - Search - Members - Calendar
Full Version: Base64.pm?
Movable Type Community Forum > Installing and Upgrading > Upgrading
michaelwar
just upgraded to 3 - the free 3 of course - it seems to work - but when i try to add a comment i get:

QUOTE
An error occurred: Can't locate MIME/Base64.pm in @INC (@INC contains: /home/warnerwcom/public_html/cgi-bin/extlib /home/warnerwcom/public_html/cgi-bin/lib /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.6.1/i386-linux /usr/lib/perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_perl .) at /home/warnerwcom/public_html/cgi-bin/lib/MT/App/Comments.pm line 487. BEGIN failed--compilation aborted at /home/warnerwcom/public_html/cgi-bin/lib/MT/App/Comments.pm line 487. Compilation failed in require at /home/warnerwcom/public_html/cgi-bin/mt-comments.cgi line 21.


WTF?
michaelwar
please help, my MT won't work without MIME::Base64.... what do i do? sad.gif
ingmar
QUOTE (michaelwar @ May 14 2004, 09:58 AM)
please help, my MT won't work without MIME::Base64.... what do i do?  sad.gif

Ahem, install that perl module? Or ask your provider to do it for you. Anyway, it can be found here.
michaelwar
Ahem, Ahem, Ahem...

I did try and install it myself, but i'm not sure where i'm supposed to put it. After a bit of messing around the message changed to:

QUOTE
An error occurred: Can't locate loadable object for module MIME::Base64 in @INC (@INC contains: /home/warnerwcom/public_html/cgi-bin/extlib /home/warnerwcom/public_html/cgi-bin/lib /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.6.1/i386-linux /usr/lib/perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_perl .) at /home/warnerwcom/public_html/cgi-bin/lib/MT/App/Comments.pm line 487 Compilation failed in require at /home/warnerwcom/public_html/cgi-bin/lib/MT/App/Comments.pm line 487. BEGIN failed--compilation aborted at /home/warnerwcom/public_html/cgi-bin/lib/MT/App/Comments.pm line 487. Compilation failed in require at /home/warnerwcom/public_html/cgi-bin/mt-comments.cgi line 21.


So a similar kind of thing... what do I do? I'm gettin more and more annoyed now huh.gif
ingmar
QUOTE (michaelwar @ May 14 2004, 04:47 PM)
I did try and install it myself, but i'm not sure where i'm supposed to put it.

QUOTE
An error occurred: Can't locate loadable object for module MIME::Base64 in @INC (@INC contains: /home/warnerwcom/public_html/cgi-bin/extlib /home/warnerwcom/public_html/cgi-bin/lib /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.6.1/i386-linux /usr/lib/perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_perl .) at /home/warnerwcom/public_html/cgi-bin/lib/MT/App/Comments.pm line 487 Compilation failed in require at /home/warnerwcom/public_html/cgi-bin/lib/MT/App/Comments.pm line 487. BEGIN failed--compilation aborted at /home/warnerwcom/public_html/cgi-bin/lib/MT/App/Comments.pm line 487. Compilation failed in require at /home/warnerwcom/public_html/cgi-bin/mt-comments.cgi line 21.


So a similar kind of thing... what do I do? I'm gettin more and more annoyed now huh.gif

It's up to you, really, where you put it. @INC tells you where it's looking for it. Try /home/warnerwcom/public_html/cgi-bin/extlib, that's the "extlib" dir in your MT installation.

The new error message tells you that it's finding something, but can't export the object "decode_base64".

Did you install the module? Did you upload it in ASCII mode? It's plain text after all. Did you set permissions correctly?
michaelwar
thanks biggrin.gif , i've tried all that but i'm still not getting anywhere..

I have Base64.pm in /cgi-bin/MIME/Base64.pm and if i delete it - i go back to the first error message.

it doesn't seem to make any difference if it is in extlib or not sad.gif
michaelwar
sad.gif huh.gif wink.gif sad.gif huh.gif wink.gif

i'm still sad here. i can't get MT to work because of this dam MIME::Base64 thing.

if i go to the mt-check.cgi it says everything is there to make it work... but commenting just doesn't work???

whats up? - - i just want it to work sad.gif
ingmar
QUOTE (michaelwar @ May 14 2004, 06:05 PM)
I have Base64.pm in /cgi-bin/MIME/Base64.pm and if i delete it - i go back to the first error message.

It's supposed to be in /cgi-bin/extlib/MIME/Base64.pm. (Or anywhere within the @INC path, really, which does not include your cgi-bin dir as such).
michaelwar
that still doesn't make it work sad.gif i've tried it in all sorts of locations...

still the same old:

QUOTE
An error occurred: Can't locate loadable object for module MIME::Base64 in @INC (@INC contains: /home/warnerwcom/public_html/cgi-bin/extlib /home/warnerwcom/public_html/cgi-bin/lib /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.6.1/i386-linux /usr/lib/perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_perl .) at /home/warnerwcom/public_html/cgi-bin/lib/MT/App/Comments.pm line 487 Compilation failed in require at /home/warnerwcom/public_html/cgi-bin/lib/MT/App/Comments.pm line 487. BEGIN failed--compilation aborted at /home/warnerwcom/public_html/cgi-bin/lib/MT/App/Comments.pm line 487. Compilation failed in require at /home/warnerwcom/public_html/cgi-bin/mt-comments.cgi line 21.
optics
hey buddy,

I had the same problem. looks like this release needs a bit more testing!!

This is how I got around it. I figure that this has something to do with the new Comment features, so first I made sure that in the configuration tool none of those fancy features are on (typekey etc)..

Then I went into the file cgi-bin/lib/MT/APP/Comments.pl and commented out line 487:

use MIME::Base64 qw(decode_base64);

changed to ->

#use MIME::Base64 qw(decode_base64);

that seemed to solve it for me.. i dont think this function gets called for anything as long as you dont use typekey.. though Im not sure.

http://pegasus.rutgers.edu/~optics
ingmar
QUOTE (optics @ May 15 2004, 04:06 PM)
Then I went into the file cgi-bin/lib/MT/APP/Comments.pl and commented out line 487:

Now that's an ugly hack...

More to the point: MIME::Base64 itself requires two more modules, namely Exporter and DynaLoader, and there's a good chance they won't be installed. (I can't check, my host has them.)
optics
unfortunately I have little control over what my host installs and I had already run the upgrade script and didn't want to deal with rolling out of this release.

it seems that mt-check isn't accurate as far as what modules are optional. Base64 is plainly listed as an optional module, but for some reason is required for even compiling Comments.pl

next thing you know I'll need ImageMagick to run searches.
michaelwar
yes... changing comments.pm has worked for me too..

but i would much rather get it to work properly, but i too have a rather lazy host and nothing i've tried seems to be working huh.gif ingmar has been helping me a lot and i've tried lots of different modules. it's a shame it doesn't work the way it should first go. sad.gif
logicalnot
QUOTE
Then I went into the file cgi-bin/lib/MT/APP/Comments.pl and commented out line 487:

use MIME::Base64 qw(decode_base64);

changed to ->

#use MIME::Base64 qw(decode_base64);


Maybe it's an ugly hack but it's a working hack.
And I do prefere my free-of-charge blog working that way rather than not.

Thank you very much optics. And the MovableType team, of course ! biggrin.gif
shelley
Sorry for being late to the dance here. wink.gif

Fix from developers is to change this line:

CODE
  use MIME::Base64 qw(decode_base64);


to this:

CODE
   require MIME::Base64;
   import MIME::Base64 qw(decode_base64);
logicalnot
Thank you Shelley !

But now, when working with comments I have this error :
QUOTE
An error occurred: Unrecognized character \xCA at lib/MT/App/Comments.pm line 487. Compilation failed in require at mt-comments.cgi line 21.


Unrecognized character? Well, I just copy/paste/check the text.

I'll stay with the dirty trick until something new arrive… wink.gif
shelley
That would indicate that either the file wasn't uploaded in ASCII mode, or there's a problem with the text editor you're using (creating funky characters).

Proof that it works. wink.gif
michaelwar
Wa-hey! it does work.

Just wondering though... i assume this change won't make typekey work??

since i still dont have MIME::Base64 which mt-check says is required for comment registration.
shelley
Right, the change only allows you to keep using MT without the module (and without registration).
michaelwar
so can i install Base64 and all the jazz it needs myself?? or will i need to ask my host for it to be installed?
JamesZ
For those of you running your own servers using BSD (or an UNIX flavor with apt-get) Mime::Base64 is available using apt-get under the package name of "libmime-base64-perl". Hope that this help some of you.
justinh
Thanks SHelley, you're a star! the developers' fix worked perfectly for me. I'm just about ready to get up and running now.

Justin.
nwhysel
I had the same problem and the ugly hack fixed it. Thanks. I love this forum.

Noreen
dianepatterson
I've searched on the boards for info about this Base64.pm problem. I have installed Base64.pm into /mt/extlib/MIME/Base64.pm, with the MIME directory set to 777 and Base64.pm set to 755.

I am still getting:


Can't locate loadable object for module MIME::Base64 in @INC (@INC contains: /Library/WebServer/Documents/nobody-knows-anything.com/mt/extlib /Library/WebServer/Documents/nobody-knows-anything.com/mt/lib /System/Library/Perl/darwin /System/Library/Perl /Library/Perl/darwin /Library/Perl /Library/Perl /Network/Library/Perl/darwin /Network/Library/Perl /Network/Library/Perl .) at /Library/WebServer/Documents/nobody-knows-anything.com/mt/lib/MT/App/Comments.pm line 557
Compilation failed in require at /Library/WebServer/Documents/nobody-knows-anything.com/mt/lib/MT/App/Comments.pm line 557.


This appears to be the only part of my MT installation (complete, fresh, wholly new 3.11 installation) that isn't working.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.