Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mime::Lite install

Status
Not open for further replies.

audiopro

Programmer
Apr 1, 2004
3,165
GB
I am trying to set up Mime::Lite on a shared remote server with numerous standard modules missing. Client doesn't want to move to another ISP and ISP is reluctant to install in case of destablising other users. I am trying to load the module locally. The module loads but refuses to send any emails so I did a dependancy check and there were numerous moudules missing. The following list is all the dependancies which I introduced 1 at a time to the script and installed the ones which forced an error. The 3 in red, despite being installed, force an error but I do not have access to the error logs.
This script is a simple email script which works on other servers so I can only assume that I still have something missing - any suggestions?
Code:
use MIME::Lite;
use ExtUtils::MakeMaker;
use File::Spec;
use Email::Date::Format;
use Test::More;
use Time::Local;
use MIME::QuotedPrint;
use MIME::Types;
[red]use Test::Pod;[/red]
[red]use Pod::Simple;[/red]
use Pod::Escapes;
use overload;
use constant;
use Text::Wrap;
use Test; 
use Mail::Address;
use Net::SMTP;
use IO::Handle; 
[red]use Date::Format;[/red]




Keith
 
I would move aside the library directories on your development system and specify a new library location, then gradually copy in the requirements until you have a working script. Copy it to the server and specify the location in your @INC. Or copy your entire module library if it's not too big and you've got the space on the server.

Annihilannic.
 
Either by setting the PERL5LIB environment variable, specifying -I /path/to/my/modules on the command-line, or using the use lib '/path/to/my/modules'; statement. See @INC on the man perlvar page.

Annihilannic.
 
There doesn't seem to be a problem finding the modules as I started with the list of modules hashed out and introduced them one at a time. When I received a 'module not found error', I installed the missing module in required sub directory of the cgi-bin and it was found ok. I intend to move the modules to the lib once I have it working and this way seemed best to see which modules are missing. The three modules indicated are installed but cause errors when I issue the use command.
I have checked the non working modules and they don't seem to contain any missing modules.
The script returns the unhelpful error of:-
'Your script returned an error'
I have 'fatals to browser' and use warnings set but do not have access to the error logs.

I may have missed a dependancy but that is the full list as far as I can see.

Keith
 
The ISP has thrown in the towel and offered to refund the hosting fee. Do you think they have a problem or am I too much a pain in their derriere?

Keith
 
Okay, I was misreading your problem as still being due to missing dependencies. Not sure what to advise about the errors, but I'm surprised you can't run it in some way to capture them...

If that's your ISP's attitude, I think you're probably best using another one! Sounds like you've ended up in the "too hard" basket. I guess it comes down to how much you (or your client) are paying for the service and how much support you can reasonably expect from them...

Annihilannic.
 
My client has been with this hosting company for a number of years and has had 4 websites hosted by them with no problems.
It was only when I tried to bolt one of my web shops onto an existing site of his that the problems started.
Their server is is like no other I have worked with and despite being advertised as the top end package, lacks many of the basics.
Ever heard of an E-commerce site without an email client?
Thanks for your help on this but today, I am moving all of his sites to a better home.

Keith
 
As in no /usr/bin/mail or /usr/sbin/sendmail type interface? If so... no, doesn't sound very featureful!

Annihilannic.
 
exactly!
The strange thing is, I built a website a few years ago for the same client, on the same ISP and Sendmail is installed there. As an experiment, I installed MIME::Lite without difficulty.

He is looking into the possibility of getting a remote virtual server but we need to do some homework first to see if that is a good option. I am speaking to 'an expert' later so I hope to know more then.

Keith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top