miniBB: free php bulletin board and forum softwareECM2 
 - Forums - Statistics - Search -
ECM2 Forum / ECM2 Installation / one more time with fresh install
Author Message
pauldid
Member
# Posted: 25 Mar 2008 00:01


Okay I have apache 2.2.8 and mysql 5.0.45 installed but I am getting the following error when I try to install php 5.2.5 when running sudo make install

Installing PEAR environment: /usr/local/php5/lib/php/
dyld: Library not loaded: /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib
Referenced from: /php-5.2.5/sapi/cli/php
Reason: image not found
make[1]: *** [install-pear-installer] Trace/BPT trap
make: *** [install-pear] Error 2

George
Admin
# Posted: 25 Mar 2008 00:14 - Edited by: George


dyld: Library not loaded: /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib



duplicate the "lib" folder in /usr/local/mysql, rename it "mysql" and move it inside "lib"

pauldid
Member
# Posted: 25 Mar 2008 10:35 - Edited by: pauldid


okay that let it finish but there were a bunch of warnings during the PEAR install. Will that cause a problem?

pauldid
Member
# Posted: 25 Mar 2008 18:02


okay got all the way to the spamassassin install and it gave me the following errors:

Test Summary Report
-------------------
t/spamc_optC.t (Wstat: 0 Tests: 9 Failed: 4)
Failed tests: 2, 4, 6, 8
t/spamc_optL.t (Wstat: 0 Tests: 16 Failed: 16)
Failed tests: 1-16
Files=143, Tests=2021, 3150 wallclock secs ( 6.53 usr 3.57 sys + 1781.74 cusr 243.25 csys = 2035.09 CPU)
Result: FAIL
Failed 2/143 test programs. 20/2021 subtests failed.
make: *** [test_dynamic] Error 255
JMASON/Mail-SpamAssassin-3.2.4.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports JMASON/Mail-SpamAssassin-3.2.4.tar.gz
Running make install
make test had returned bad status, won't install without force
Failed during this command:
JMASON/Mail-SpamAssassin-3.2.4.tar.gz : make_test NO

How do I get this to install without errors?

pauldid
Member
# Posted: 25 Mar 2008 21:18


okay, having had the flu recently my memory was shot. I went back and reread our previous discussions and found that I had had this problem before. I enabled a password for root account and logged in as root and now I am rerunning the spamassassin install.

pauldid
Member
# Posted: 26 Mar 2008 10:32


I got the SA install to finish okay. Ran through the config files and changed what needed to be changed. Had the same problem with the localhost issue and DB issue as before. I changed it to 127.0.0.1 in the ecm2 config file and now it seems to be working okay and I copied the DB stuff to the correct directory. I created one new local domain added a couple of accounts tested them and they are working but only with password authentication, MD5 will not work for POP or SMTP.

Then I did all your listed testing and debugging and everything seems okay except the SA tests. When I run
ps -auxww | grep spam | grep -v grep
I get nothing in response

If I run
/usr/bin/spamd -D -x -q -L -m 10 -u amavisd --socketpath=/tmp/spamd
I get a response of
-sh: /usr/bin/spamd: No such file or directory

Looks like SA is not installed correctly, so I tried rerunning the cpan stuff to install it and I get this
CPAN: Storable loaded ok (v2.13)
Going to read /Users/paul/.cpan/Metadata
Database was generated on Wed, 26 Mar 2008 06:30:55 GMT
Mail::SpamAssassin is up to date (3.002004).


What should I try now?

George
Admin
# Posted: 27 Mar 2008 11:45


Going to read /Users/paul/.cpan/Metadata

you have to install it as root.


try "sudo cpan" or just simply log in to your terminal as root before you start installation.

pauldid
Member
# Posted: 27 Mar 2008 13:36 - Edited by: pauldid


I get the same exact thing

Going to read /Users/paul/.cpan/Metadata

when I use su root to change to root before the install. Are there some cpan setting that I need to delete?

The main problem is that there is no usr/local/spamd directory.

George
Admin
# Posted: 27 Mar 2008 14:52


type "login root" on your terminal it will ask for password

than type cpan

If you install spamassassin as root, it will be installed to /usr/bin...

not usr/local/s...

pauldid
Member
# Posted: 27 Mar 2008 15:30 - Edited by: pauldid


I did exactly as you said and it still says the same exact thing as before:

Going to read /Users/paul/.cpan/Metadata

Sorry, before I meant that there is no usr/bin/spamd

Is there some settings file that is storing the install location for cpan that I need to delete?

George
Admin
# Posted: 27 Mar 2008 15:35


Is there some settings file that is storing the install location for cpan that I need to delete?

Yes. /Users/paul/.cpan/Metadata

pauldid
Member
# Posted: 27 Mar 2008 16:58


okay deleted /users/paul/.cpan/metadata

reran install Mail::SpamAssassin and this is what I got:

CPAN: Storable loaded ok (v2.13)
Going to read /Users/paul/.cpan/sources/authors/01mailrc.txt.gz
CPAN: Compress::Zlib loaded ok (v2.008)
.................................................. ..........................DONE
Going to read /Users/paul/.cpan/sources/modules/02packages.detai ls.txt.gz
Database was generated on Thu, 27 Mar 2008 10:30:59 GMT
CPAN: HTTP::Date loaded ok (v1.47)
.................................................. ..........................DONE
Going to read /Users/paul/.cpan/sources/modules/03modlist.data.g z
.................................................. ..........................DONE
Going to write /Users/paul/.cpan/Metadata
Mail::SpamAssassin is up to date (3.002004).

What now?

George
Admin
# Posted: 27 Mar 2008 17:33


I'm not convinced that the installation is root. We talked about it already once.
Maybe log in to the desktop for root instead of using the terminal. If you're doing the install as root it would not care about /Users/... installation. Is root properly enabled?

pauldid
Member
# Posted: 27 Mar 2008 17:45


I am already logged into the OS as root (system administrator). That is what it says right now when I click on the apple and look at the log out item. I already knew that I had to be logged in as root so I made sure I was.

Like I said before there has to be a settings file for cpan that tells it what folder to install stuff into. Where is that file that says to install into /users/... or somewhere else?

George
Admin
# Posted: 27 Mar 2008 18:02


OK. If you're on root desktop. You can try
cpan
force install Mail::SpamAssassin

root installs for root only

pauldid
Member
# Posted: 27 Mar 2008 22:01 - Edited by: pauldid


I tried the force install and this what it returned at the beginning of the install:

CPAN: Storable loaded ok (v2.13)
Going to read /Users/paul/.cpan/Metadata

Still looking in that /Users/paul/... directory It finished okay without errors but there is still no file at /usr/bin/spamd

I ran o conf init in cpan to reconfigure PERL and changed the directories to /private/var/root/... Then I reran the install spamassassin and it finished with Mail::SpamAssassin is up to date and there is Still nothing at /usr/bin/spamd

How does that file get installed? Or more to the point, How do I get it installed?

pauldid
Member
# Posted: 28 Mar 2008 15:35 - Edited by: pauldid


I manually copied the spamc and spamd files from the Mail-SpamAssassin-3.2.4 download to /usr/bin/ and restarted the server. Now when I run ps -auxww | grep spam | grep -v grep in terminal it says:

root 296 0.0 4.3 47480 22512 ?? Ss 3:26PM 0:09.63 /usr/bin/spamd -d -x -q -L -m 10 -u clamav --socketpath=/tmp/spamd
clamav 308 0.0 0.4 47160 2300 ?? S 3:27PM 0:00.04 spamd child
clamav 309 0.0 0.4 47160 2204 ?? S 3:27PM 0:00.03 spamd child

but when I try to run the manual test that you outline i just get back this:

From: user
To: user
Subject: Test

So I still think I am missing something. I suppose I could manually install the rest of the files I am missing if I knew where to install them.

George
Admin
# Posted: 28 Mar 2008 21:43 - Edited by: George


As user (not root) open up the cpan folder and delete everything in it.

$ open .cpan

than start over again:

login as root via terminal


cpan

install Bundle::CPAN
install HTML::Parser
install Net::DNS
quit

Install DBI_1.48 and DBD_Mysql-3.0002 packages before you continue installing SpamAssassin via terminal.

cpan
install Mail::SpamAssassin
quit

George
Admin
# Posted: 29 Mar 2008 12:15


Actually it just came to my attention that if you use cpan v1.9102 (when you log in it tells you the version number) first time installation of Spamassassin version newer than 3.2.0 will end up with an error in the "make" process. Now looking through your older posts, that looks to be the case.

If you download and install (as root) an older version of SA
http://government-grants.org/mirrors/apache.org/sp amassassin/source/Mail-SpamAssassin-3.1.9.tar.gz

cd Mail-SpamAssassin-*
perl Makefile.PL PREFIX=/
make
make install

spamassassin -V to confirm


Than continue to cpan to install 3.2.4 and all the tests will pass.

If cpan install the sa files to /usr/local/bin then move the following:

sa-update
spamd
spamc
spamassassin
sa-learn

to /usr/bin

pauldid
Member
# Posted: 31 Mar 2008 11:18


cpan is version 1.9205

I just followed your instructions and the cpan install finished with

Mail::SpamAssassin is up to date (3.002004).

I have a feeling that there are other files I need to delete to do a "clean" install of SA. Maybe delete the /private/etc/mail/spamassassin directory and contents and/or the /Users/paul/.spamassassin directory and contents and/or the /private/var/root/.spamassassin directory and contents before I do the install like you outlined above.

I think I will try that and see if it works this time.

pauldid
Member
# Posted: 31 Mar 2008 11:40 - Edited by: pauldid


okay I did what i outlined and cpan install of SA still finished with Mail::SpamAssassin is up to date (3.002004).

So I manually moved the files like you said, but I also see a file named sa-compile in the /use/local/bin directory. Does that need to me moved also?

Now I was able to run the tests but this is what i got in reply:

X-Spam-Level:
X-Spam-Status: No, score=-0.0 required=5.0 tests=NO_RECEIVED,NO_RELAYS
autolearn=unavailable version=3.1.9

Which shows that the SA version is 3.1.9 and not the newest version. Will that cause a problem?

George
Admin
# Posted: 31 Mar 2008 12:23


Which shows that the SA version is 3.1.9 and not the newest version. Will that cause a problem?
Yes. Well go head and install 3.2.4 the same way as you did 3.1.9 manually. (not through CPAN)

pauldid
Member
# Posted: 31 Mar 2008 14:00


okay now when I try to run the SA tests and I am trying to start SA in debug mode using spamd -D -q I get:

[317] error: spamd: cannot use --sql-config without -u
spamd: cannot use --sql-config without -u

George
Admin
# Posted: 31 Mar 2008 14:09


Just confirm that it's installed... (as root)

spamassassin -V

and go on ...

This topic is closed. You can't post a reply.