From owner-freebsd-questions@FreeBSD.ORG Sun Jul 11 21:54:28 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 ADBE316A4CE for ; Sun, 11 Jul 2004 21:54:28 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66E1343D1D for ; Sun, 11 Jul 2004 21:54:28 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i6BLsRqa026034; Sun, 11 Jul 2004 16:54:27 -0500 (CDT) (envelope-from dan) Date: Sun, 11 Jul 2004 16:54:27 -0500 From: Dan Nelson To: Miguel Cardenas Message-ID: <20040711215427.GE95931@dan.emsphone.com> References: <200407111647.44006.mfcardenas@prodigy.net.mx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200407111647.44006.mfcardenas@prodigy.net.mx> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jul 2004 21:54:28 -0000 In the last episode (Jul 11), Miguel Cardenas said: > I've installed MySQL 4.0.20 successfully from source code and > programs work fine, but have still two little "problems"... > > 1. Can't add /usr/local/mysql/bin to the PATH var from the main > configuration... Tried to add: > export PATH=$PATH:/usr/local/mysql/bin to /etc/profile, but didn't > work. It only works if I send the command through the bash shell or > in $HOME/.profile but /etc/profile does not work... why? don't want > to append it to the .profile of each user!!! Add some echos to /etc/profile to make sure it's really being executed, maybe. > 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 > ld-elf.so.conf and run ldconfig, but still not found by system when > invoking a program that uses it... how can I add /usr/local/mysql/lib > to the libraries path? Edit /etc/rc.conf and add your path to ldconfig_paths, or create a small startup script to put in /usr/local/etc/rc.d with the command "ldconfig -m /usr/local/wherever_libmysqlclient.so_is". /etc/ld.so.conf is a Linuxism. Or solve both of your problems at once by removing /usr/local/mysql and installing the /usr/ports/databases/mysql40-client and mysql40-server ports :) -- Dan Nelson dnelson@allantgroup.com