From owner-freebsd-questions@FreeBSD.ORG Mon Jul 12 16:50:48 2004 Return-Path: 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 3679E16A4CE for ; Mon, 12 Jul 2004 16:50:48 +0000 (GMT) Received: from smtp.prodigy.net.mx (nlpproxy05.prodigy.net.mx [148.235.52.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB6B043D49 for ; Mon, 12 Jul 2004 16:50:47 +0000 (GMT) (envelope-from mfcardenas@prodigy.net.mx) Received: from smtp.prodigy.net.mx (nlpproxy05 [148.235.52.25]) by smtp.prodigy.net.mx (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) with ESMTP id <0I0R000QY04I3T@smtp.prodigy.net.mx>; Mon, 12 Jul 2004 11:50:43 -0500 (CDT) Received: from dup-200-64-114-228.prodigy.net.mx (du-200-64-114-228.prodigy.net.mx [200.64.114.228])(built Sep 8 2003)) with ESMTP id <0I0R006O704GY2@smtp.prodigy.net.mx>; Mon, 12 Jul 2004 11:50:42 -0500 (CDT) Date: Mon, 12 Jul 2004 11:55:31 -0500 From: Miguel Cardenas In-reply-to: <20040712081551.GA92187@happy-idiot-talk.infracaninophile.co.uk> To: Matthew Seaman Message-id: <200407121155.31249.mfcardenas@prodigy.net.mx> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit Content-disposition: inline User-Agent: KMail/1.5.4 X-imss-version: 2.5 X-imss-result: Passed X-imss-scores: Clean:99.90000 C:21 M:2 S:5 R:5 X-imss-settings: Baseline:3 C:2 M:2 S:2 R:2 (0.5000 1.0000) References: <200407111647.44006.mfcardenas@prodigy.net.mx> <20040711215427.GE95931@dan.emsphone.com> <20040712081551.GA92187@happy-idiot-talk.infracaninophile.co.uk> cc: freebsd-questions@freebsd.org Subject: Re: PATH var and more... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: mfcardenas@prodigy.net.mx List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jul 2004 16:50:48 -0000 > > > 1. Can't add /usr/local/mysql/bin to the PATH var from the main > > > configuration... Tried to add: > > > ... > Modifying the default path setting in /etc/login.conf works well, and > applies to all shells. Remember to run 'cap_mkdb /etc/login.conf' > after your edits. I found the problem by using the echoes in /etc/profile... efectively the PATH was updated as desired, but... when logging in the .profile overrided the PATH var instead of simply update it... I commented the PATH=... in the .profile and problem got fixed automagically... > > > 2. MySQL is working fine now, but now that am creating/porting a > > > client application, once compiled it does not find > > > libmysqlclient.so... tried to append the path to /etc/ld.so.conf and > > > > Edit /etc/rc.conf and add your path to ldconfig_paths, or create a > > > That just moves the mysql shlibs from /usr/local/mysql/lib to > /usr/local/lib/mysql -- the mysqlXX-client port will install > /usr/local/etc/rc.d/000.mysql-client.sh to add /usr/local/lib/mysql to > the search path for shlibs automatically. However that can be run too > late in the startup sequence for some purposes. In that case, you can > use the 'ldconfig_paths' variable in /etc/rc.conf: Well what I did is add the path to ldconfig_paths in /etc/defaults/rc.conf (/ etc/rc.conf was empty and as far as I understood to override the 1st one, not to update it) and everything is working now... Oh, one additional comment for those who would like to compile MySQL source instead using prebuilt binaries... I had too many troubles compiling MySQL... this is the right way: do *NOT* use the environment vars that are required to compile (CXX, etc...) as shown in the mysql/INSTALL-SOURCE... in the MySQL site at the downloads section, at FreeBSD read the FreeBSD platform notes, it uses different configuration settings! if you don't take care of that will lose days dealing with the 'sizeof (char)' error and lots of 'sed' errors during the ./configure Regards, Mike