Need help in solving issues with configuration of php-5.2.8 with mysql-5.3.1
Need help in solving issues with configuration of php-5.2.8 with mysql-5.3.1
am 04.03.2009 07:15:22 von niranjan k
--0-1140608175-1236147322=:13489
Content-Type: text/plain; charset=us-ascii
Hi,
I installed 64 bit MySQL-5.3.1 and i am in the process of installing php-5.2.8.
While configuring php with mysql, getting following issues.
Issue:
====
1. I ran php configuration as below.
$./configure --with-apxs2=/usr/local/apache2/bin/apxs
--with-mysql=/apps/mysql/mysql
It went fine.
2. While running make, i got following relink error.
ld: fatal: file /usr/local/mysql/lib/libmysqlclient.so: wrong ELF class:
ELFCLASS64
ld: fatal: File processing errors. No output written to
..libs/libphp5.so
collect2: ld returned 1 exit status
*** Error code
1
make: Fatal error: Command failed for target `libphp5.la'
I tried exporting CFLAGS as export CFLAGS="$CFLAGS -m64" so that gcc will use 64 bit.
But i got following error at the time of make.
ld: fatal: file ext/libxml/.libs/libxml.o: wrong ELF class: ELFCLASS32
ld:
fatal: File processing errors. No output written to
..libs/libphp5.so
collect2: ld returned 1 exit status
*** Error code
1
make: Fatal error: Command failed for target `libphp5.la'
I am not able to proceed with the installation of PHP due to above errors. I would appreciate if any one can help me in resolving the issue.
Please let me know if you need more details in solving the issue.
Regards,
Niranjan
--0-1140608175-1236147322=:13489--
Re: Need help in solving issues with configuration of
am 04.03.2009 07:46:37 von dmagick
> 1. I ran php configuration as below.
>
> $./configure --with-apxs2=/usr/local/apache2/bin/apxs
> --with-mysql=/apps/mysql/mysql
>
> It went fine.
Are you sure?
> 2. While running make, i got following relink error.
>
> ld: fatal: file /usr/local/mysql/lib/libmysqlclient.so: wrong ELF class:
> ELFCLASS64
Look at the path of the file it picked up - it found one in a
completely different location.
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Need help in solving issues with configuration of php-5.2.8 with mysql-5.3.1
am 04.03.2009 07:52:24 von niranjan k
--0-2022564789-1236149544=:62835
Content-Type: text/plain; charset=us-ascii
Hi Chris,
Thanks for the response.
> 1. I ran php configuration as below.
>
> $./configure --with-apxs2=/usr/local/apache2/bin/apxs
> --with-mysql=/apps/mysql/mysql
>
> It went fine.
Chris > Are you sure?
Yes it went fine.
> 2. While running make, i got following relink error.
>
> ld: fatal: file /usr/local/mysql/lib/libmysqlclient.so: wrong ELF class:
> ELFCLASS64
Chris > Look at the path of the file it picked up - it found one in a
completely different location.The path it has taken /usr/local/mysql/...
There is a soft link to /usr/local/mysql which points to /apps/mysql/mysql
Regards,
Niranjan
--- On Wed, 3/4/09, chris smith wrote:
From: chris smith
Subject: Re: [PHP-DB] Need help in solving issues with configuration of php-5.2.8 with mysql-5.3.1
To: niranjan_k_n@yahoo.com
Cc: php-db@lists.php.net
Date: Wednesday, March 4, 2009, 12:16 PM
> 1. I ran php configuration as below.
>
> $./configure --with-apxs2=/usr/local/apache2/bin/apxs
> --with-mysql=/apps/mysql/mysql
>
> It went fine.
Are you sure?
> 2. While running make, i got following relink error.
>
> ld: fatal: file /usr/local/mysql/lib/libmysqlclient.so: wrong ELF class:
> ELFCLASS64
Look at the path of the file it picked up - it found one in a
completely different location.
--
Postgresql & php tutorials
http://www.designmagick.com/
--0-2022564789-1236149544=:62835--
Re: Need help in solving issues with configuration of php-5.2.8with mysql-5.3.1
am 04.03.2009 22:31:44 von dmagick
niranjan k wrote:
> Hi Chris,
>
> Thanks for the response.
>
>> 1. I ran php configuration as below.
>>
>> $./configure --with-apxs2=/usr/local/apache2/bin/apxs
>> --with-mysql=/apps/mysql/mysql
>>
>> It went fine.
>
> Chris > Are you sure?
>
> Yes it went fine.
>
>
>> 2. While running make, i got following relink error.
>>
>> ld: fatal: file /usr/local/mysql/lib/libmysqlclient.so: wrong ELF class:
>> ELFCLASS64
>
> Chris > Look at the path of the file it picked up - it found one in a
> completely different location.
>
> The path it has taken /usr/local/mysql/...
> There is a soft link to /usr/local/mysql which points to /apps/mysql/mysql
and we're supposed to guess that? ;)
I guess you can't build 64 bit binaries with 32 bit libraries. The
php-install list may have better suggestions but as far as I know you
either have to use 64 bit (including libraries) or 32 bit - you can't
mix & match.
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Need help in solving issues with configuration of php-5.2.8 with mysql-5.3.1
am 05.03.2009 07:36:18 von niranjan k
--0-759968447-1236234978=:61235
Content-Type: text/plain; charset=us-ascii
Hi Chris,
Thanks for your response.
Do you mean i am using 32bit PHP libraries? If so could you please let me know where to download 64bit PHP libraries. I tried over the net but i couldn't get it.
Regards,
Niranjan
--- On Thu, 3/5/09, Chris wrote:
From: Chris
Subject: Re: [PHP-DB] Need help in solving issues with configuration of php-5.2.8 with mysql-5.3.1
To: niranjan_k_n@yahoo.com
Cc: php-db@lists.php.net
Date: Thursday, March 5, 2009, 3:01 AM
niranjan k wrote:
> Hi Chris,
>
> Thanks for the response.
>
>> 1. I ran php configuration as below.
>>
>> $./configure --with-apxs2=/usr/local/apache2/bin/apxs
>> --with-mysql=/apps/mysql/mysql
>>
>> It went fine.
>
> Chris > Are you sure?
> Yes it went fine.
>
>
>> 2. While running make, i got following relink error.
>>
>> ld: fatal: file /usr/local/mysql/lib/libmysqlclient.so: wrong ELF
class:
>> ELFCLASS64
>
> Chris > Look at the path of the file it picked up - it found one in a
> completely different location.
>
> The path it has taken /usr/local/mysql/...
> There is a soft link to /usr/local/mysql which points to /apps/mysql/mysql
and we're supposed to guess that? ;)
I guess you can't build 64 bit binaries with 32 bit libraries. The
php-install list may have better suggestions but as far as I know you either
have to use 64 bit (including libraries) or 32 bit - you can't mix &
match.
-- Postgresql & php tutorials
http://www.designmagick.com/
--0-759968447-1236234978=:61235--
Re: Need help in solving issues with configuration of
am 05.03.2009 09:47:39 von dmagick
> Do you mean i am using 32bit PHP libraries? If so could you please let me
> know where to download 64bit PHP libraries. I tried over the net but i
> couldn't get it.
No, I meant this:
ld: fatal: file /usr/local/mysql/lib/libmysqlclient.so: wrong ELF class:
ELFCLASS64
ld: fatal: file ext/libxml/.libs/libxml.o: wrong ELF class: ELFCLASS32
You can't (as far as I know) have some libraries that are 64 bit and
others that are 32.
It's either all 64, or all 32.
Your operating system should install one type or the other.
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Need help in solving issues with configuration of php-5.2.8 with mysql-5.3.1
am 05.03.2009 09:50:58 von niranjan k
--0-659846056-1236243058=:86746
Content-Type: text/plain; charset=us-ascii
Hi Chris,
Thanks for your response.
Is there any way to find out which files are in 32 bit or 64 bit?
Regards,
Niranjan
--- On Thu, 3/5/09, chris smith wrote:
From: chris smith
Subject: Re: [PHP-DB] Need help in solving issues with configuration of php-5.2.8 with mysql-5.3.1
To: niranjan_k_n@yahoo.com
Cc: php-db@lists.php.net
Date: Thursday, March 5, 2009, 2:17 PM
> Do you mean i am using 32bit PHP libraries? If so could you please let me
> know where to download 64bit PHP libraries. I tried over the net but i
> couldn't get it.
No, I meant this:
ld: fatal: file /usr/local/mysql/lib/libmysqlclient.so: wrong ELF class:
ELFCLASS64
ld: fatal: file ext/libxml/.libs/libxml.o: wrong ELF class: ELFCLASS32
You can't (as far as I know) have some libraries that are 64 bit and
others that are 32.
It's either all 64, or all 32.
Your operating system should install one type or the other.
--
Postgresql & php tutorials
http://www.designmagick.com/
--0-659846056-1236243058=:86746--
Re: Need help in solving issues with configuration of php-5.2.8with mysql-5.3.1
am 05.03.2009 22:27:07 von dmagick
niranjan k wrote:
> Hi Chris,
>
> Thanks for your response.
>
> Is there any way to find out which files are in 32 bit or 64 bit?
If you're on a packaged system (redhat based inc. fedora, centos, rhel
or debian based inc. ubuntu) you might be able to use rpm or dpkg or
whatever your system provides. Other than that, no idea.
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php