Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Nov 2002 14:25:21 +0100
From:      Roman Neuhauser <neuhauser@bellavista.cz>
To:        Jon Reynolds <jonr@destar.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Where is the default install for mysql
Message-ID:  <20021113132521.GD330@freepuppy.bellavista.cz>
In-Reply-To: <1037174806.1435.90.camel@localhost.localdomain>
References:  <1037174806.1435.90.camel@localhost.localdomain>

next in thread | previous in thread | raw e-mail | index | archive | help
# jonr@destar.net / 2002-11-12 23:06:46 -0900:
> Okay, I have gotten the advice from the list to use a php4 and mysql
> solution to my webcalendar instead of my previous idea. I have never
> used mysql and have just installed it from the ports directory using
> make then make install on freebsd 4.7 and I need to rebuild my php
> with-mysql=/mysql/directory/ from how installed mysql would my path to
> mysql be /usr/local/bin/mysql?

    a bit of background, since you seem to be confused.

    PHP 4 needs the mysql client library linked in (and the header
    files) to be able to talk to it. It can either use the mysql
    (library) installed on your system, or it can use the one it has
    bundled with it.
    
    Use of the system library is required only under certain
    circumstances. You must use it e. g. if you build PHP as the apache
    module, and other apache modules use the mysql library too.
    Basically, it's just a matter of conflicting versions. If mod_php is
    the only apache module that uses mysql, you can safely use the
    bundled library.

    --with-mysql will use the bundled libmysql, --with-mysql=/path will
    use mysql installed in /path. if you have mysql installed from the
    port (and haven't tinkered with $PREFIX), the path will be
    /usr/local.
    
    the path you give configure in the --with-foo switch is "the
    directory where i'll look for lib/libfoo.a and include/foo.h".
    note that this statement is *very* simplifying the matters.

-- 
If you cc me or take the list(s) out completely I'll most likely ignore
your message.      see http://www.eyrie.org./~eagle/faqs/questions.html

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021113132521.GD330>