Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

canīt allocate - almost everything

Quote Reply
canīt allocate - almost everything
Hello, good morning!
Perhaps somebody can help me with this problem:
Iīm trying to install Links 2 to give it a try, but strange things happen: sometimes it seems to work, next time the script cannot allocate some .pm I moved the different .pmīs from admin to user folder, emptied almost the complete cpan - every time the script is calling for a new one.
The last error is included. Please advise me! Iīd really like to use the script!!!
CGI ERROR
==========================================
Error Message : fatal error: Can't locate DynaLoader.pm in @INC (@INC contains: /usr/local/etc/httpd/cgi-bin/links /usr/local/lib/perl5/i386-bsdos/5.00404 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/i386-bsdos /usr/local/lib/perl5/site_perl .) at /usr/local/etc/httpd/cgi-bin/links/Socket.pm line 143.
BEGIN failed--compilation aborted at /usr/local/etc/httpd/cgi-bin/links/admin/Mailer.pm line 22.

Script Location : /usr/local/etc/httpd/cgi-bin/links/add.cgi
Perl Version : 5.00404
##########
Thank you in advance!
Sincerely
Claus
Quote Reply
Re: canīt allocate - almost everything In reply to
Hello again!

After trying almost everything it is still the same ploblem: a lot of modules are not found, the script error is (for instance): (see also my previous post, please)

Error Message : fatal error: Can't locate auto/DynaLoader/dl_findfile.al in @INC (@INC contains: /usr/local/etc/httpd/cgi-bin/links /usr/local/lib/perl5/i386-bsdos/5.00404 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/i386-bsdos /usr/local/lib/perl5/site_perl .) at /usr/local/etc/httpd/cgi-bin/links/DynaLoader.pm line 139
BEGIN failed--compilation aborted at /usr/local/etc/httpd/cgi-bin/links/admin/Mailer.pm line 22.

Script Location : /usr/local/etc/httpd/cgi-bin/links/add.cgi
Perl Version : 5.00404

The servers error_log says: Can't locate auto/Socket/autosplit.ix in @INC (@INC contains: /usr/local/etc/httpd/cgi-bin/links /usr/local/lib/perl5/i386-bsdos/5.00404 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/i386-bsdos /usr/local/lib/perl5/site_perl .) at /usr/local/etc/httpd/cgi-bin/links/AutoLoader.pm line 162.
at /usr/local/etc/httpd/cgi-bin/links/Socket.pm line 142

I tried to get every missing module, but _find_file.al is nowhere to be found.
Iīm really at the end with my latinum and my nerves - after 16 hours of trying. Iīm shure I miss some rather little thing, but canīt see it. Or could it be that the server is out of order (memory or so?)

Please lend me somebody a helping hand!
Thank you
Claus
Quote Reply
Re: canīt allocate - almost everything In reply to
The modules the script is looking for should be part of the Perl installation and there should be no reason to move any .pm files into the user directory.

If you look at the thread at http://www.gossamer-threads.com/...um2/HTML/000730.html , you will find a list of the Links directories and files (as well as permissions) to compare your installation against. If your Links installation matches that, then there should be no problems.

If other modules not listed in that thread are not found, then you probably need to talk to your ISP about the Perl installation on your server for an answer. As was discovered by someone else recently, not all ISPs have the necessary modules installed with Perl and leave it up to the user to do that (they refused to do it). Personally, I wouldn't deal with such an ISP because the installation of the modules is not an easy task for anyone, let alone someone not familiar with Perl to begin with. In your case, your ISP may have made an installation error and might be willing to correct it.

I hope this helps.
Quote Reply
Re: canīt allocate - almost everything In reply to
good morning, Bobsie
thank you, Iīll do as you say and contact the server people. They still owe me an answer for another question so I donīt know how fast I can solve the problem. If I find out what it was Iīll post it here for public.
Anyway, itīs a script (links2) to be liked.
Thanks for your attention,
bye, Claus
Quote Reply
Re: canīt allocate - almost everything In reply to
Hello Bobsie, good morning!
the guys whom Iīm hosting with answered at last. Some different modules are installed now. Users can submit a new link.Something is still left, I post the error messages here:

When trying to send test-mass-email:

Error including libraries: Can't locate loadable object for module Socket in @INC (@INC contains: /usr/local/etc/httpd/cgi-bin/links/admin /usr/local/lib/perl5/i386-bsdos/5.00404 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/i386-bsdos /usr/local/lib/perl5/site_perl .) at /usr/local/etc/httpd/cgi-bin/links/admin/Mailer.pm line 22
BEGIN failed--compilation aborted at /usr/local/etc/httpd/cgi-bin/links/admin/Mailer.pm line 22.

Make sure they exist, permissions are set properly, and paths are set correctly.

-----------------------------------------
And when trying to modify (admin) a link:

CGI ERROR
==========================================
Error Message : fatal error: Can't locate loadable object for module Socket in @INC (@INC contains: /usr/local/etc/httpd/cgi-bin/links/admin /usr/local/lib/perl5/i386-bsdos/5.00404 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/i386-bsdos /usr/local/lib/perl5/site_perl .) at /usr/local/etc/httpd/cgi-bin/links/admin/Mailer.pm line 22
BEGIN failed--compilation aborted at /usr/local/etc/httpd/cgi-bin/links/admin/Mailer.pm line 22.

Script Location : /usr/local/etc/httpd/cgi-bin/links/admin/admin.cgi
Perl Version : 5.00404

Form Variables
-------------------------------------------
3 : modify
Category-3 : teskat2
Contact Email-3 : twobee@t-online.de
Contact Name-3 : balu
Date-3 : 20-Mai-1999
Description-3 : alles für die büroausstattung: mailserver, brieföffner
Hits-3 : 3
ID-3 : 3
Rating-3 : 7.50
ReceiveMail-3 : Yes
Title-3 : alles fürs netz
URL-3 : http://www.edvundso.de
Votes-3 : 2
db : links
isNew-3 : Yes
isPopular-3 : No
reason-3 :
validate_records : Validate/Delete Selected Link(s)

Inspite of this error the link has been modified/validated!

Could you please give me some hints one more time?
Thank you!
Claus
Quote Reply
Re: canīt allocate - almost everything In reply to
There are two ways to send mail with Links. One way uses sockets and one way does not. In links.cfg, you will see:

Code:
# PATH of sendmail. # SMTP Server
$db_mail_path = ''; $db_smtp_server = '';

If you are using sendmail currently, try using the SMTP setting instead. Just remove the path to sendmail from the $db_mail_path setting and put the name of the SMTP server in $db_smtp_server (your ISP admin people can tell you the name of the server to use).

If you are using the SMTP server, then remove that setting and try using sendmail instead (your ISP admin can tell you the path to sendmail on your system).

I hope this helps.
Quote Reply
Re: canīt allocate - almost everything In reply to
Hello Bobsie
thank you for your reply!
Iīve tried your suggestion with the smtp server - there is no change, I get emails when a new link is submitted, I go there to validate and get this error again - the new link *is* validated nevertheless.
When I try to mail the users I get the same error. I experience a new phenomen: after emtying the whole databases (itīs still a test) I reinstalled everything, now in email.db there is no more mail written - permissions are 666, also validate.db and modified.db remain empty.
All other modules are working fine as far as I can see.
What could I try next? Please advise me!
Sincerely
Claus
Quote Reply
Re: canīt allocate - almost everything In reply to
email.db is to store addresses for the newsletter. There will not be anything in there until someone subscribes.

If you emptied the links database, then nothing will be in validate.db or modified.db either until you add some links as a user, and once you validate it, modify it as a user and validate the modification. As each part is done, the link is moved from validate.db or modified.db, to links.db and the other files will once again be empty.

Double check that you uploaded all the files in ASCII mode when you reinstalled and have all the permissions set correctly. Compare them to the list I referred you to earlier.

Also, please put your links.cfg file online as a text file and provide a URL so we can look at it.
Quote Reply
Re: canīt allocate - almost everything In reply to
Hello Bobsie,
itīs me again.
there is another error message:

Can't locate loadable object for module IO in @INC (@INC contains: /usr/local/etc/httpd/cgi-bin/links/admin /usr/local/lib/perl5/i386-bsdos/5.00404 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/i386-bsdos /usr/local/lib/perl5/site_perl .) at /usr/local/lib/perl5/i386-bsdos/5.00404/IO/Handle.pm line 248
BEGIN failed--compilation aborted at /usr/local/lib/perl5/i386-bsdos/5.00404/IO/Socket.pm line 117.
BEGIN failed--compilation aborted at /usr/local/etc/httpd/cgi-bin/links/admin/nph-verify.cgi line 219.

I saw this error in the errorlog of the server today (may have overlooked it before). Perhaps this helpful for you while helping me.
Thank you!
Claus
Quote Reply
Re: canīt allocate - almost everything In reply to
Hello Bobsie
Iīve checked all permissions, but I will do it again. I will also check whether all files are uploade in ascii!
The URL for the cfg.txt is
http://www.zellulose.de/docs/info/bobsie
I hope it tells you something
Hopefully
Claus
Quote Reply
Re: canīt allocate - almost everything In reply to
Claus,

Quote:
$db_script_path = "/usr/local/etc/httpd/cgi-bin/links/admin";

Is that path correct? It doesn't seem right to me because it doesn't seem to have anyway of identifying your directories from any other people that have servers on the ISPs system. It may be right, but it does seem odd to me to be setup that way. For example, if I had an account at that ISP, I would expect that my path might look like:

Quote:
$db_script_path = "/usr/local/etc/bobsie/httpd/cgi-bin/links/admin";

The way your path is setup, it looks like all customers are lumped into a single directory. As I said, this may be normal for your setup but might be worth double checking with your Admin folks.

Quote:
Can't locate loadable object for module IO in @INC (@INC contains: /usr/local/etc/httpd/cgi-bin/links/admin /usr/local/lib/perl5/i386-bsdos/5.00404 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/i386-bsdos /usr/local/lib/perl5/site_perl .) at /usr/local/lib/perl5/i386-bsdos/5.00404/IO/Handle.pm line 248
BEGIN failed--compilation aborted at /usr/local/lib/perl5/i386-bsdos/5.00404/IO/Socket.pm line 117.
BEGIN failed--compilation aborted at /usr/local/etc/httpd/cgi-bin/links/admin/nph-verify.cgi line 219.

Without a date/time reference for that log entry, it is hard to say if it might be part of the problem or not. It is definitely related to Perl though, not Links, since Links does not have a Handle.pm or IO module. In any case, it is unrelated to the mail problem because those errors are coming from nph-verify.cgi, not admin_html.pl or admin.cgi. The root of the problem is the same (inability to use sockets), but that is the only similarity.

I think the problems you are having are not Links related at all but, rather, are problems with the Perl installation on your system. You might do better getting resolution to these problem by working closely with your ISP Admin people since they seem willing to take corrective action or to help.

Sorry I could not be of more help to you.
Quote Reply
Re: canīt allocate - almost everything In reply to
Bobsie,
thank you.

I will do as you advise. In the meantime Iīve checked the files mentioned in the error log:
The error-log again:

Can't locate loadable object for module IO in @INC (@INC contains: /usr/local/etc/httpd/cgi-bin/links/admin /usr/local/lib/perl5/i386-bsdos/5.00404 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/i386-bsdos /usr/local/lib/perl5/site_perl .) at /usr/local/lib/perl5/i386-bsdos/5.00404/IO/Handle.pm line 248
BEGIN failed--compilation aborted at /usr/local/lib/perl5/i386-bsdos/5.00404/IO/Socket.pm line 117.
BEGIN failed--compilation aborted at /usr/local/etc/httpd/cgi-bin/links/admin/nph-verify.cgi line 219.

in Handle.pm
###--------------------##########------------------------###
require DynaLoader;
@IO::ISA = qw(DynaLoader);
bootstrap IO $XS_VERSION; ########## this is line 248

sub AUTOLOAD {
if ($AUTOLOAD =~ /: Frown_?[a-z])/) {
$AutoLoader::AUTOLOAD = $AUTOLOAD;
goto &AutoLoader::AUTOLOAD
###--------------------##########------------------------###


in nph-verify.cgi
###--------------------##########------------------------###
sub check_link {
# -----------------------------------------------------
# Check links without LWP. ##########this is line 219
#
my ($url) = shift;
my ($host, $port, $path, $sock, $line);

($url =~ m,^http://([^:/]+):?(\d*)(.*),i) and (($host, $port, $path) = ($1, $2, $3));
$path | |= '/';
$port | |= 80;
$path =~ s/#.*//;
###--------------------##########------------------------###


in Socket.pm
###--------------------##########------------------------###
require 5.000;

use Config;
use IO::Handle; ##########this is line 117
use Socket 1.3;
use Carp;
use strict;
use vars qw(@ISA $VERSION);
use Exporter;
###--------------------##########------------------------###


in Mailer.pm
###--------------------##########------------------------###
package Mailer;
# ===============================================================
use strict;
use Socket; ########## this is line 22
use FileHandle;
use vars qw($VERSION $error $CRLF @ISA @EXPORT); # Globals.
@ISA = (); # Not inhereited.
@EXPORT = qw();
$Mailer::VERSION = '1.0';
$CRLF = "\015\012";
###--------------------##########------------------------###

This is quite cryptic for me, but if you would take a look at it Iīd be glad.
I will go and check all paths and permissions again. I would really get that whole thing up and running without any error!
Sincerely
Claus
Quote Reply
Re: canīt allocate - almost everything In reply to
Guess what? After installing a new build of Perl on my system, I now have almost the identical error you are having. My error message reads:

Quote:
Can't locate DynaLoader.pm in @INC (@INC contains: /home/bobsie/cgi/goodstuff
/admin /usr/lib/perl5/i386-linux /usr/lib/perl5 /usr/lib/perl5/site_perl/i386
-linux /usr/lib/perl5/site_perl .) at /usr/lib/perl5/IO.pm line 5.
BEGIN failed--compilation aborted at /usr/lib/perl5/IO/Handle.pm line 241.
BEGIN failed--compilation aborted at /usr/lib/perl5/IO/Socket.pm line 11.
BEGIN failed--compilation aborted at /home/bobsie/cgi/goodstuff/admin/nph-ver
ify.cgi line 281.

Since this did not happen before the new release of Perl was installed on my system, it looks like the Perl release itself may be causing this problem and not something your ISP has installed incorrectly. I am investigating and will advise as soon as I finish tracking this down (if I can).

[This message has been edited by Bobsie (edited May 22, 1999).]
Quote Reply
Re: canīt allocate - almost everything In reply to
hey, bobsie!
Thank you for your reply - and Iīm sorry for you to hear that!
Some "relief" I can feel though - I was just wondering if I was something veryspecial like a crocofant or something like that.
I pray that you can find out something - and promise to be patient - as long as I can really do almost nothing in this case for specialists.
Best wishes (for us - and anybody who may encounter this kind of problem)
Claus
Quote Reply
Re: canīt allocate - almost everything In reply to
Claus,

Well my problem has been corrected. Recently, new modules were added to Perl and the installation of the modules went awry and wasn't detected at the time they were installed. The changes were backed out (Perl was restored to its previous, unaltered, state) and my problem with nph-verify.cgi went away.

However, this does indicate to me that your system may have a similar problem. Perhaps the installation of Perl was originally correct, but some module added might have caused some problems because its installation didn't go right and it slipped by the person installing it.

My installation of Perl (5.004_04 built for i586-linux) does not exhibit any of those problems while the "version 5.005_03 built for i386-linux" version (reported by "perl -v" after the bad installation of the mods) did exhibit those problems.

The only thing I can suggest to you is to work closely with your ISP to get your situation resolved since Links itself works fine with a properly installed version of Perl but not so well with an improperly installed version (as I found out).