From owner-freebsd-questions Wed Nov 13 5:28:29 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A98E837B401 for ; Wed, 13 Nov 2002 05:28:27 -0800 (PST) Received: from bellavista.cz (mail.bellavista.cz [62.168.44.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C0BD43E3B for ; Wed, 13 Nov 2002 05:28:19 -0800 (PST) (envelope-from neuhauser@bellavista.cz) Received: from freepuppy.bellavista.cz ([10.1.0.1]) by bellavista.cz (8.9.3/8.9.8) with ESMTP id OAA13156; Wed, 13 Nov 2002 14:26:27 +0100 Received: by freepuppy.bellavista.cz (Postfix, from userid 1001) id CAAFB2FDAB2; Wed, 13 Nov 2002 14:25:21 +0100 (CET) Date: Wed, 13 Nov 2002 14:25:21 +0100 From: Roman Neuhauser To: Jon Reynolds Cc: freebsd-questions@freebsd.org Subject: Re: Where is the default install for mysql Message-ID: <20021113132521.GD330@freepuppy.bellavista.cz> Mail-Followup-To: Jon Reynolds , freebsd-questions@freebsd.org References: <1037174806.1435.90.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1037174806.1435.90.camel@localhost.localdomain> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG # 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