Web Hosting Talk







View Full Version : I dont know whats wrong! Please help.


jsonline2k3
08-26-2003, 01:01 AM
I have been everywhere with this problem and I get no responses at all so I figure why not come to the one place I have always found a helpful hand.

I am trying to install SpamAssasin according to the directions @ http://www.atomicrocketturtle.com I am running Plesk 6 and RedHat 9 with Apache 2.0

I do step 1:

perl -MCPAN -e shell

Then step 2:

install Digest::MD5

And then I get this message so I have not gone any further:

Testing alignment requirements for U32... no restrictions
Checking if your kit is complete...
Looks good
Writing Makefile for Digest::MD5
Makefile:83: *** missing separator. Stop.
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible


No I didnt run FreeBSD as this seems to be the only question I got back on another forum. I don't know why this is happening. I did rename my server from plain.rackshack.net to plesk.mydomain.com and since then from plesk.mydomain.com to server1.mydomain.com which is where it will stay now.

To add to my problem even more now I get this message when I try perl -MCPAN -e shell:

Undefined value assigned to typeglob at (eval 13) line 15, <RC> line 11.
Warning [/etc/inputrc line 11]:
Invalid variable `mark-symlinked-directories'
CPAN.pm panic: Lockfile /root/.cpan/.lock
reports other host plesk.mydomain.com and other process 23550.
Cannot proceed.

If someone can walk me through fixing both of these problems I would be so greatful. TY in advanced.

unixtx
08-26-2003, 01:11 AM
Out of curiosity, have you tried to build your module without using CPAN? I have found that many times CPAN is the problem with errors like this one.

Fetch the module manually, untar it, build and see if you get the same errors:

http://cpan.org/authors/id/G/GA/GAAS/Digest-MD5-2.27.tar.gz

jsonline2k3
08-26-2003, 01:15 AM
I am still a bit new to this. Can you tell me the commands to do this? Thanks.

unixtx
08-26-2003, 01:30 AM
Try

wget http://cpan.org/authors/id/G/GA/GAAS/Digest-MD5-2.27.tar.gz

tar xzvf Digest-MD5-2.27.tar.gz

cd Digest-MD5-2.27
(or whatever directory is created during untar)

cat README
(and read install instructions - ususally 'perl Makefile', 'make', 'make test',
'make install')

jsonline2k3
08-26-2003, 01:42 AM
More or less same thing. Here is what I get:

[root@server1 Digest-MD5-2.27]# perl Makefile.PL
Testing alignment requirements for U32... no restrictions
Checking if your kit is complete...
Looks good
Writing Makefile for Digest::MD5
[root@server1 Digest-MD5-2.27]# make
Makefile:83: *** missing separator. Stop.
[root@server1 Digest-MD5-2.27]#

unixtx
08-26-2003, 01:46 AM
please copy line 83 of your Makefile, with a few line around it point out line 83

jsonline2k3
08-26-2003, 01:56 AM
for (i = 0; i < 4; i++) {
up = (U32*)(buf + i);
if (! ((*up == 1 << (8*i)) || /* big-endian */
(*up == 1 << (8*(3-i))) /* little-endian */
)
)
{
printf("read failed (%x)\n", *up);
exit(2);
}
}

/* write test */
for (i = 0; i < 4; i++) {
up = (U32*)(buf + i);
*up = 0xBeef;
if (*up != 0xBeef) { <----- line 83
printf("write failed (%x)\n", *up);
exit(3);
}
}

printf("no restrictions\n");
exit(0);
#else
printf("unusual byteorder, playing safe\n");
exit(1);
#endif
return 0;

Line 83 is marked

unixtx
08-26-2003, 01:59 AM
I built the (very small) perl module from source, and from CPAN, with no problems on two different OS's, so it is not a coe problem - must be environment.

I found an interesting post on the RedHat mailing lists:

http://www.redhat.com/archives/redhat-list/2003-May/msg01986.html

> Checking if your kit is complete...
> Looks good
> Writing Makefile for Digest::MD5
> Makefile:83: *** missing separator. Stop.
> /usr/bin/make -- NOT OK

This mailing list BADLY needs a FAQ.

Before using the perl shell, run the following commands as root:

cd /etc/sysconfig
cp i18n i18n-orig
sed 's/LANG=.*/LANG="en_US"/' i18n-orig > i18n
. i18n

unixtx
08-26-2003, 02:03 AM
I was looking for line 83 of /path/to/your/Digest-MD5-2.27/Makefile

I see where that came from - you were looking at Makefile.PL

Anyway, read the note above, and see if that works our for you.

jsonline2k3
08-26-2003, 03:49 AM
Okay I ran that and then I ran perl Makefile again and got this:

Bareword found where operator expected at Makefile line 29, near "/usr/lib"
(Missing operator before lib?)
Bareword found where operator expected at Makefile line 34, near "LDFLAGS = -L/usr"
(Might be a runaway multi-line // string starting on line 33)
(Do you need to predeclare LDFLAGS?)
Bareword found where operator expected at Makefile line 35, near "LIBC = /lib"
(Might be a runaway multi-line // string starting on line 34)
(Do you need to predeclare LIBC?)
Can't modify negation (-) in scalar assignment at Makefile line 29, near "Wl,"
syntax error at Makefile line 29, near "/usr/lib"
Bad name after a' at Makefile line 36.

jsonline2k3
08-26-2003, 01:47 PM
Anyone else? I really need to get this fixed and I cant afford the headache of wiping the hard drive clean and starting over, I have too many clients on the machine.

atomicturtle
09-08-2003, 12:06 AM
There is already a spamassassin rpm put out by redhat, my suggestion is to use that. I have a project for integrating spamassassin, qmail-scanner, and clamav here:

http://www.atomicrocketturtle.com/modules.php?op=modload&name=Sections&file=index&req=viewarticle&artid=15&page=1

I've created RPM's for all components, so it should be as easy as an rpm -Uvh to get everything working.