Re: Error when compiling for Mac OS X 10.9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hello,

The solution in the other case was to use only "--with-mysql" or "--with-mysqli" without specifying the path to an existing installation of MySQL on the host.  When you don't specify the path to MySQL, PHP compiles with it's native driver instead and generally this is sufficient.

That said, in this specific case I wonder if perhaps you are trying to compile 64-bit PHP against 32-bit MySQL, or vice-versa.  When compiling PHP with MySQL support, the architecture (32-bit vs. 64-bit) of PHP and MySQL should match.

    - Dave

On Fri, Oct 10, 2014 at 5:34 PM, Richard <replies-lists-e7x6-php@xxxxxxxxxxxxxxxxxxxxx> wrote:


------------ Original Message ------------
> Date: Friday, October 10, 2014 23:11:10 +0200
> From: Nejc Vukovic <nejc.vukovic@xxxxxxxxx>
>
> On 10 Oct 2014, at 22:59, Richard wrote:
>
>>
>> ------------ Original Message ------------
>>> Date: Friday, October 10, 2014 10:37:20 -0400
>>> From: Jorge Hernandez <jfha73@xxxxxxxxx>
>>> To: php-install@xxxxxxxxxxxxx
>>> Subject: Error when compiling for Mac OS X 10.9
>>>
>>> Hey guys,
>>>
>>> What can cause this error:
>>>
>>> "_uncompress", referenced from:
>>>
>>>      _php_mysqlnd_net_decode_pub in mysqlnd_net.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
>>>
>>> And how can I fix it?
>>
>>
>> I don't do things mac OS, but a [google] search for the:
>>
>>    ld: symbol(s) ...
>>
>> line from your error message (with and without adding reference to
>> php) turns up a range of discussion references, some seemingly
>> with solutions.
>>
>>
>>    - Richard
>>

> Richard no offence but what kind of help is that?
>
> It's like you give a product away and when a user hits some
> bumps you say go ask google?
>
> And trust me I had the almost the same problem 2 weeks ago and
> none of those google discussions helped.
>
> The only one to give me advice and take his time was David Parker.
>
> Jorge try to ./configure your php with: "--with-mysql" omit any
> other variants, because it only successfully compiles with the
> native php driver.
>
> Regards,
>
> N.V.


Sorry, but neither you nor Jorge gave any indication as to the level
of debugging or searching you had done so at least making certain
that you had done some basic research didn't seem unreasonable. Had
you posted previously that you had followed the various google
discussion threads to no effect, that would have been useful
information for the (mac OS/php) community.

Additionally, while David Parker may have helped you, none of that
discussion (or even a final summary) made it to the list, from what
I've seen, so it didn't add to the publicly available knowledge set.
Had it, Jorge might not have had to ask his question.

By the way, even though the list's headers set the Reply-to to the
sender's address, please reply to the list address (unless you
really want an off-list discussion).


    - Richard






--
Dave Parker
Systems Administrator
Utica College
Integrated Information Technology Services
(315) 792-3229
Registered Linux User #408177

[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux