"Dan Langille" <[EMAIL PROTECTED]> writes:

> On 1 Jul 2006 at 0:05, Edward C. Cheadle wrote:
>
>> One thing I am working through is how to handle dependencies.  I
>> wanted to have php5, MySQL 5, and apache 2.X. But when I went to
>> install the system talked about apache 1.3 when installing php5.   If
>> I want the latest of each package how would an experienced FreeBSDer
>> do. Build all from scratch?   Do people run production stuff from
>> Ports installed and compiled, or do they download, configure the make
>> and do it from scratch. 
>
> The FreeBSD Ports tree will handle all of the dependencies for you.  
> I would recommend PHP4 over PHP5.  And PostgreSQL over any version of 
> MySQl for that matter... ;)

I'll see you and raise you a BIND9 vs. djbdns. ;-)

> cd /usr/ports/www/apache13
> make install clean
>
> That will download the sources, apply any patches, configure it for 
> FreeBSD, compile it, install it, and then clean up.

There are a number of tools available that will make managing ports
even easier.  The first three that you might want to have a look at
are:

sysutils/portupgrade
sysutils/portmaster
sysutils/portmanager

There are a number of other tools in the ports tree (mainly under the
sysutils branch) that are very useful.  A (somewhat dated) list can be
found in the presentation I wrote on ports & packages:

http://gubug.org/resources/ports_packages.txt

> A note about your port options: /var/db/port is where your compile-
> time settings are stored.

That's /var/db/ports actually.

Additionally, before installing, you may want to do a "make
showconfig" in the relevant port director-y/-ies before installing.
This will give you a list of options you can supply to the make
command to en-/dis-able specific features.

You can pass these options on the command line...

# cd /usr/ports/databases/postgresql81-server
# make -DWITH_PAM -DWITH_LIBC_R install clean

# cd /usr/ports/lang/php4; make -DWITH_APACHE install clean

... or configure these in /etc/make.conf or
/usr/local/etc/pkgtools.conf if you are using sysutils/portupgrade.

You may also want to consider installing sysutils/portconf which will
enable you to support all 3 of the aforementioned tools by storing
options in one place (/usr/local/etc/ports.conf).  How nice is that?

I would also recommend having a look at the makefiles in
/usr/ports/Mk.  There are additional variables that can be set in
/etc/make.conf which enable you to "just go," installing ports in
*any* order, and rest assured that your desired port versions get
installed.  Here's a snapshot of what you'll commonly find in my
/etc/make.conf:

DEFAULT_PGSQL_VER=81
DEFAULT_PHP_VER=4
WITH_APACHE2=yes
WITH_BDB_VER=44
WITH_MYSQL_VER=50
WITH_OPENLDAP_VER=23

-- 
Anthony Chavez                               Greater Utah BSD User Group
mailto:[EMAIL PROTECTED]                                   http://gubug.org/

Attachment: pgpLWGKQpLbPs.pgp
Description: PGP signature

_______________________________________________
gubug mailing list
[email protected]
https://gubug.org/mailman/listinfo/gubug

Reply via email to