tarballed
April 29th, 2004, 13:16
Hey everyone.

I've setup a mail gateway server that is running the following:

FreeBSD 4.9
Sendmail 8.12.11
MailScanner 4.29-7
Clamav .70

One thing I wanted to add to it was this:

http://mailwatch.sourceforge.net/

The reqs are: apache, PHP, mysql and a few others.

Anyways, I'm working on the PHP port install and im running into some trouble. Here is an output from the error I received:

(from port /usr/ports/lang/php4)

configure: error: libjpeg.(a|so) not found.
===> Script "configure" failed unexpectedly.
Please report the problem to ale@FreeBSD.org [maintainer] and attach the
"/usr/ports/lang/php4/work/php-4.3.6/config.log" including the output of the
failure of your make command. Also, it might be a good idea to provide an
overview of all packages installed on your system (e.g. an `ls /var/db/pkg`).
*** Error code 1

Stop in /usr/ports/lang/php4.
*** Error code 1

Stop in /usr/ports/lang/php4.

I scanned through the config.log but did not see anything that stood out at me.

Haven't been able to figure this one out so thought i'd post here.

Any ideas on what im missing? PHP and MySQL are two areas im not really strong in so this is a good opportunity for me to work with both of them.

Thanks guys.

Tarballed

elmore
April 29th, 2004, 13:54
you are installing mod_php4 right?

Have you cvs upped your ports yet?

I have 5.2.1 with a ports collection that was updated sometime late last week, it just compiled with no problems for me.

tarballed
April 29th, 2004, 14:28
This is kinda weird and im going to have to do more testing to verify this...

For some reason, I had to install the /usr/ports/graphics/jpeg port.
After I did that, it compiled fine. ::shrug::

I'm going to fireup another vmware box here and do a few tests to try and figure out what the problem is...i'll post back after my results.

In the meantime, which is a better way to install some perl modules?
Cpan?
or Ports?

I need to install a few for mailwatch and just was curious if there was a concensus here on which method to use over the other.

Thanks.

T.

elmore
April 29th, 2004, 14:45
I like cpan personally

molotov
April 29th, 2004, 19:10
Depends on what you compile php with built in. My guess is you compiled with something requiring libjpeg, and thus when the config script didnt find it, it died. Probably simple oversight on the part of the maintainer that it didnt list libjpeg as a dependancy. Easy problem, easy fix :)

tarballed
April 29th, 2004, 20:33
Hey guys...I want to really roll out this project:

http://mailwatch.sourceforge.net/

However, there are couple of things that are slowing me down.
If you take a look at the install file in the source, you will see it also requires a few extra perl moduels; DBI and DBD-mysql...

Im guessing that I will need to upgrade Perl to a some what newer version.

Anyway, between Perl, MySQL and PHP, those three are areas that im weak in and was hoping to see if anyone had any recommendations here...

I'll be kicking it around for a better part of the evening. I'm hoping to get it rolled out Friday night...if not, oh well.

Tarballed

bsdjunkie
April 29th, 2004, 20:43
http://screamingelectron.org/forum/showthread.php?t=121

Check out Elmores Howto on using snort/mysql on obsd. Explains how to install DBI and DBD-mysql...

tarballed
April 30th, 2004, 12:35
Just a follow up on the php4 port...

I did try it again last night:

/usr/ports/www/mod_php4

It failed when I tried to build it..
The resolution was that I did not have the /usr/ports/graphics tree (blocked with refuse file)...

But once I cvsuped my ports tree again, I built the /usr/ports/graphics/jpeg port, then redid the php4 port and it worked....

Not sure why...

Tarballed

molotov
May 2nd, 2004, 02:39
The php port has sections of it that depend on libjpeg, specificially some of the graph making parts of php. There are php function that will produce jpgs, so, to complile the port you need libjpg. It is through oversight of the php port that it is not automatically included by the Makefile. I belive if you go through and disable parts of the port, you will no longer need libjpg