Re: [PHP-INSTALL] ./configure problems when using --with-mysqli
[email protected] ("Jorge F. Hernandez") Wed, 15 Oct 2014 12:46:42 -0400
| Newsgroups | php.install |
|---|---|
| Message-ID | <[email protected]> |
Dumb OS, it was compiling PHP as x86 using x86_64 libraries, I had to add --build=x86_64 and re-build some libraries that also got compiled as x86. Signature On 10/15/2014 11:35 AM, David Parker wrote: > Hi Jorge, > > Try leaving out the path entirely, so PHP only uses the native driver: > > --with-mysql --with-mysqli > > No path for either one, and see if that works. > > - Dave > > On Wed, Oct 15, 2014 at 11:31 AM, Jorge F. Hernandez <[email protected] > <mailto:[email protected]>> wrote: > > I re-installed my MySQL server/Client but now I'm getting a > mysqlnd error, I also changed my configure to have > --with-mysql=shared,/usr/local/mysql --with-mysqli=shared,mysqlnd > and I left mysqlnd to be compiled implicitly > > Any ideas? > Signature > > > On 10/13/2014 11:55 AM, David Parker wrote: > > Sorry, it was just pointed out in a different thread that the > discussion in this thread went off-list. I didn't pay close > enough attention to notice it. The solution to this > particular problem was delete the existing installation of > PHP, and then do a clean install using the native drive > ("--with-mysqli" and no path to the MySQL stuff specified). > > On Mon, Oct 6, 2014 at 9:26 AM, David Parker > <[email protected] <mailto:[email protected]> > <mailto:[email protected] <mailto:[email protected]>>> wrote: > > I'm not sure if this will solve the problem, but what if > you just > do --with-mysqli=/usr/local/mysql ? > > On Mon, Oct 6, 2014 at 3:02 AM, Nejc Vukovic > <[email protected] <mailto:[email protected]> > <mailto:[email protected] > <mailto:[email protected]>>> wrote: > > Hello there, > > I stumbled upon a problem that I cannot get pass: > > when trying to configure the PHP installation from > sources I > get this error: > > Undefined symbols for architecture x86_64: > "_dns_free", referenced from: > _zif_dns_check_record in dns.o > _zif_dns_get_record in dns.o > _zif_dns_get_mx in dns.o > "_dns_open", referenced from: > _zif_dns_check_record in dns.o > _zif_dns_get_record in dns.o > _zif_dns_get_mx in dns.o > "_dns_search", referenced from: > _zif_dns_check_record in dns.o > _zif_dns_get_record in dns.o > _zif_dns_get_mx in dns.o > "_res_9_dn_expand", referenced from: > _php_parserr in dns.o > _zif_dns_get_mx in dns.o > "_res_9_dn_skipname", referenced from: > _zif_dns_get_record in dns.o > _zif_dns_get_mx in dns.o > ld: symbol(s) not found for architecture x86_64 > clang: error: linker command failed with exit code 1 > (use -v > to see invocation) > make: *** [libs/libphp5.bundle] Error 1 > > my configure looks like this: > > sudo ./configure --prefix=/usr/local/php\ > --with-apxs2=/usr/local/apache2/bin/apxs\ > --disable-ipv6\ > --enable-dtrace\ > --with-zlib --with-curl=/usr/local/cURL\ > --enable-mbstring\ > --with-mcrypt=/usr/local/libmcrypt\ > --with-mysqli=/usr/local/mysql/bin/mysql_config\ > --enable-opcache=no > > I only get this error when I try to enable mysqli support. > > ./configure passes with no problems, but at make it > screams > about the libphp5.bundle ... > > Any ideas how to get pass this? > > I'm running Mac OSX 10.9 with Apache 2.4.10. > > Please help! > > Best regards, > > N.V. > > > > > -- Dave Parker > Systems Administrator > Utica College > Integrated Information Technology Services > (315) 792-3229 <tel:%28315%29%20792-3229> > <tel:%28315%29%20792-3229> > Registered Linux User #408177 > > > > > -- > Dave Parker > Systems Administrator > Utica College > Integrated Information Technology Services > (315) 792-3229 <tel:%28315%29%20792-3229> > Registered Linux User #408177 > > > > > > -- > Dave Parker > Systems Administrator > Utica College > Integrated Information Technology Services > (315) 792-3229 > Registered Linux User #408177