You are here: Re: Compiling PHP with mysql « PHP Programming Language « IT news, forums, messages
Re: Compiling PHP with mysql

Posted by John Cecere on 03/31/07 16:07

Jagadish,


> ld: warning: file /spare/mysql/lib/libmysqlclient.a(libmysql.o): wrong ELF
> class: ELFCLASS64
> Undefined first referenced
> symbol in file
> mysql_close /var/tmp//ccdtPtSd.o

This message here means that you're trying to build PHP as 32-bit, but your MySQL library is 64-bit.

You'll either need to build PHP in 64-bit (which means everything else that you link to needs to be 64-bit), or install the 32-bit
version of MySQL and point to it using LDFLAGS.

The 'file' command is your friend. Use it to determine what ELFCLASS your libraries are.

hth,
John

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация