From owner-freebsd-ports@FreeBSD.ORG Tue May 17 17:38:13 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BDEAE16A4CE for ; Tue, 17 May 2005 17:38:13 +0000 (GMT) Received: from web41104.mail.yahoo.com (web41104.mail.yahoo.com [66.218.93.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 6BC2D43D8E for ; Tue, 17 May 2005 17:38:13 +0000 (GMT) (envelope-from vu3prx@yahoo.com) Received: (qmail 36317 invoked by uid 60001); 17 May 2005 17:38:08 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=hdJbA5YgHQ5LSPBcruvfkZEW42Ou+IRMA05H2dSf1b1iHMB/yEs5jLP0BokE8SEvEwogLqtSkM1Wo6UyRyx27EmhYhvO2LPPpd09v8RIAtpGjU29pk2sjvmn2BU+Ll1vPab92SgrYNEFA68wIhVOR6gU1Nl6JctRJBg7ZGT/O3c= ; Message-ID: <20050517173808.36315.qmail@web41104.mail.yahoo.com> Received: from [220.226.8.216] by web41104.mail.yahoo.com via HTTP; Tue, 17 May 2005 10:38:08 PDT Date: Tue, 17 May 2005 10:38:08 -0700 (PDT) From: Yujin Boby To: freebsd-ports@freebsd.org In-Reply-To: 6667 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: PHP5 and MySQL 5 - undefined function mysql_connect X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 May 2005 17:38:13 -0000 Thanks Uzi Klein I have added WITH_MYSQL_VER=5 to /etc/make.conf And deinstalled php5 --- cd /usr/ports/lang/php5 deinstall --- then installing it again --- make install clean --- I drinstalled and installed --- cd /usr/ports/lang/php5-extensions make config make install --- Removing MySQLi and it went well. No errors. But Still getting the same error for MySQL functions Call to undefined function mysql_connect() --- Uzi Klein wrote: > > ----- Original Message ----- > From: "Yujin Boby" > To: > Sent: Tuesday, May 17, 2005 6:40 PM > Subject: PHP5 and MySQL 5 - undefined function > mysql_connect > > > > Hi, > > > > I have installed PHP from > > > > cd /usr/ports/lang/php5 > > make install clean > > > > Then > > > > cd /usr/ports/lang/php5-extensions > > make install clean > > > > Shows error > > > > ------------- > > ===> php5-mysqli-5.0.4_1 Doesn't work with MySQL > > version : 50 (Doesn't support MySQL 323 40 50). > > *** Error code 1 > > > > Stop in /usr/ports/databases/php5-mysqli. > > *** Error code 1 > > > > Stop in /usr/ports/lang/php5-extensions. > > ------------- > > > > I have MySQL 5 installed from latest ports, i have > > cvsup before installing everything. FreeBSD is 5.4 > > > > mysqli extension is designed for mysql >= 4.1 > PHP compiles with the mysql client library (ssems > like 3.23 here) > You probably want WITH_MYSQL_VER=5 in your make.conf > > [......] > > Fatal error: Call to undefined function > > mysql_connect() > > mysql_connetct() uses the mysql extension and not > mysqli > > > Regrads > U > > > > > ------------- > > > > How do i correct this ? > > > > Regards, > > > > Yujin > > > > > > > > > > __________________________________ > > Do you Yahoo!? > > Make Yahoo! your home page > > http://www.yahoo.com/r/hs > > > > > > > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! Mail - You care about security. So do we. > > http://promotions.yahoo.com/new_mail > > _______________________________________________ > > freebsd-ports@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > > To unsubscribe, send any mail to > "freebsd-ports-unsubscribe@freebsd.org" > > > > Discover Yahoo! Stay in touch with email, IM, photo sharing and more. Check it out! http://discover.yahoo.com/stayintouch.html