Re: ports vs source

2004-09-06 Thread Vulpes Velox
On Mon, 06 Sep 2004 09:10:48 +0300
Cristi Tauber <[EMAIL PROTECTED]> wrote:

>Ok. thanks ... i got that ... but one problem remains .
>On
> linux the command ./configure --help gives me the options to
> configure the source for compile (eg suport for mysql/oracle/etc;
> other switches not related to optimization, ... etc) How can i do
> this with ports ... i mean ... make -DWITH="/path/to/mysql/" (just
> an example) to compile the source with mysql support ... is there a
> way to find the options for a port ?!? 

Look at the make file. Some will bring up a ncurses menu for
selection, others will display various options to set, and then some
you can look at the make file to see what options it has. I would
suggest looking at multimedia/mplayer as a good example of all three.

 BTW becuase this is a actual ports system you don't have to deal with
things getting damaged by manually installing stuff like that.
Installing that was is generally best advoided since it cuases
problems later on.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ports vs source

2004-09-05 Thread Cristi Tauber
   Ok. thanks ... i got that ... but one problem remains . On
linux the command ./configure --help gives me the options to configure
the source for compile (eg suport for mysql/oracle/etc; other switches
not related to optimization, ... etc) How can i do this with ports ... i
mean ... make -DWITH="/path/to/mysql/" (just an example) to compile the
source with mysql support ... is there a way to find the options for a
port ?!? 

  Cristi

On Fri, 2004-09-03 at 22:54, Vulpes Velox wrote:
> On Fri, 03 Sep 2004 17:26:11 +0300
> Cristi Tauber <[EMAIL PROTECTED]> wrote:
> 
> >  Hello there,
> >   Can anyone tell me which are the avantages of installing from
> >   ports
> > rather than installing from tar balls ? I am kind of new to BSD, and
> > I'm familiar with linux install from tar & stuff. I know to give the
> > switches to configure to tune the source for installation ... but
> > how i can find the parameters for port install ? I mean ... let's
> > say i want to install php and i have to give the path to mysql,
> > apache and others graphical libraries ... how can I do that with
> > ports ? 
> 
> The ability to squeze the absolute max out using /etc/make.conf  is
> what I love about ports.
> 
> CPUTYPE?=athlon-xp
> CFLAGS= -O -m3dnow -msse -mmmx  -pipe
> CXXFLAGS+= -fmemoize-lookups -fsave-memoized -m3dnow -msse -mmmx
> 
> or something like that ^_^
> 
> afaik all packages for 4x defualt to i386 and on 5x i486 so there is
> less optimizations... for something there is no noticeable
> differneces... for something there are...  my suggestion is to make
> sure stuff that eats cpu time is optimized... 
> 
> man ports
> man make.conf
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ports vs source

2004-09-03 Thread Vulpes Velox
On Fri, 03 Sep 2004 17:26:11 +0300
Cristi Tauber <[EMAIL PROTECTED]> wrote:

>  Hello there,
>   Can anyone tell me which are the avantages of installing from
>   ports
> rather than installing from tar balls ? I am kind of new to BSD, and
> I'm familiar with linux install from tar & stuff. I know to give the
> switches to configure to tune the source for installation ... but
> how i can find the parameters for port install ? I mean ... let's
> say i want to install php and i have to give the path to mysql,
> apache and others graphical libraries ... how can I do that with
> ports ? 

The ability to squeze the absolute max out using /etc/make.conf  is
what I love about ports.

CPUTYPE?=athlon-xp
CFLAGS= -O -m3dnow -msse -mmmx  -pipe
CXXFLAGS+= -fmemoize-lookups -fsave-memoized -m3dnow -msse -mmmx

or something like that ^_^

afaik all packages for 4x defualt to i386 and on 5x i486 so there is
less optimizations... for something there is no noticeable
differneces... for something there are...  my suggestion is to make
sure stuff that eats cpu time is optimized... 

man ports
man make.conf
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ports vs source

2004-09-03 Thread Andy Smith
On Fri, Sep 03, 2004 at 06:34:32PM +0300, Cristi Tauber wrote:
>Yes i know something ... like the avantages of rpm and another
> linux package managers. But .. I want apache 1.3.31 with php-4.3.4 and
> mysql 4.0.20 (let's say) ... from ports ... i understand that I can
> %choose% what version i want to install ?? Is that correct ?

Well, if you installed those applications from ports you would
currently get apache 1.3.31, php 4.3.8 and mysql 4.0.20 (assuming
you chose the mysql40-server port and not 41-server or 50-server).

You can't choose specific versions of those applications, but I
don't really see why you would want to do that; you normally want
the latest that is maintained for FreeBSD.

Please do not top post.


pgpU1OiQWoKfp.pgp
Description: PGP signature


Re: ports vs source

2004-09-03 Thread Cristi Tauber
   Yes i know something ... like the avantages of rpm and another
linux package managers. But .. I want apache 1.3.31 with php-4.3.4 and
mysql 4.0.20 (let's say) ... from ports ... i understand that I can
%choose% what version i want to install ?? Is that correct ?
Cristi

On Fri, 2004-09-03 at 17:56, Matthew Seaman wrote:
> On Fri, Sep 03, 2004 at 05:26:11PM +0300, Cristi Tauber wrote:
> 
> >   Can anyone tell me which are the avantages of installing from ports
> > rather than installing from tar balls ? I am kind of new to BSD, and I'm
> > familiar with linux install from tar & stuff. I know to give the
> > switches to configure to tune the source for installation ... but how i
> > can find the parameters for port install ? I mean ... let's say i want
> > to install php and i have to give the path to mysql, apache and others
> > graphical libraries ... how can I do that with ports ? 
> >Any link or explications about this subject is appreciated.
> 
> FreeBSD ports /is/ installing from source.  Except that all of the
> boring stuff like working out what dependencies you need, what flags
> are required to find the appropriate shlibs, even where to download
> the software from: all that stuff is handled automatically for you.
> 
> If you want to setup a webserver running PHP code against a MySQL
> back-end database, on a virgin FreeBSD system you can just:
> 
> # cd /usr/ports/www/mod_php4
> # make install
> # cd /usr/ports/databases/php4-mysql
> # make install 
> 
> And all of the PHP stuff, plus apache plus mysql will be installed for
> you.  Well, in practice you'ld want to set a few variables on the make
> command lines so that you got the right variant of apache (2.0.50 vs
> 1.3.31 vs 1.3.31+mod_ssl-2.8.19 amongst others) and the right version
> of MySQL (choose from 3.23.58, 4.0.20, 4.1.4 or 5.0.0).
> 
> The other massive advantage of installing via ports is the packaging
> system.  It keeps track of all of the files and directories
> etc. installed by each port so that you can do things like create a
> pkg tarball of the installed port as a backup or to install quickly
> onto another machine.  You can also de-install ports cleanly, and in
> conjunction with tools like portupgrade(1) the ports system makes
> tasks like managing software updates a breeze.
> 
>   Cheers,
> 
>   Matthew

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ports vs source

2004-09-03 Thread Bill Moran
Cristi Tauber <[EMAIL PROTECTED]> wrote:

>  Hello there,
>   Can anyone tell me which are the avantages of installing from ports
> rather than installing from tar balls ? I am kind of new to BSD, and I'm
> familiar with linux install from tar & stuff. I know to give the
> switches to configure to tune the source for installation ... but how i
> can find the parameters for port install ? I mean ... let's say i want
> to install php and i have to give the path to mysql, apache and others
> graphical libraries ... how can I do that with ports ? 
>Any link or explications about this subject is appreciated.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-overview.html

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ports vs source

2004-09-03 Thread Matthew Seaman
On Fri, Sep 03, 2004 at 05:26:11PM +0300, Cristi Tauber wrote:

>   Can anyone tell me which are the avantages of installing from ports
> rather than installing from tar balls ? I am kind of new to BSD, and I'm
> familiar with linux install from tar & stuff. I know to give the
> switches to configure to tune the source for installation ... but how i
> can find the parameters for port install ? I mean ... let's say i want
> to install php and i have to give the path to mysql, apache and others
> graphical libraries ... how can I do that with ports ? 
>Any link or explications about this subject is appreciated.

FreeBSD ports /is/ installing from source.  Except that all of the
boring stuff like working out what dependencies you need, what flags
are required to find the appropriate shlibs, even where to download
the software from: all that stuff is handled automatically for you.

If you want to setup a webserver running PHP code against a MySQL
back-end database, on a virgin FreeBSD system you can just:

# cd /usr/ports/www/mod_php4
# make install
# cd /usr/ports/databases/php4-mysql
# make install 

And all of the PHP stuff, plus apache plus mysql will be installed for
you.  Well, in practice you'ld want to set a few variables on the make
command lines so that you got the right variant of apache (2.0.50 vs
1.3.31 vs 1.3.31+mod_ssl-2.8.19 amongst others) and the right version
of MySQL (choose from 3.23.58, 4.0.20, 4.1.4 or 5.0.0).

The other massive advantage of installing via ports is the packaging
system.  It keeps track of all of the files and directories
etc. installed by each port so that you can do things like create a
pkg tarball of the installed port as a backup or to install quickly
onto another machine.  You can also de-install ports cleanly, and in
conjunction with tools like portupgrade(1) the ports system makes
tasks like managing software updates a breeze.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp7lmHOhwQc7.pgp
Description: PGP signature