8

I am trying to install the following package on my mac in order to test my API on my local environment but thus far I have not succeeded.

https://github.com/spachev/mysql_udf_bundle

I have tried various things such as:

brew install libmysqlclient-dev

This produced the following error:

Error: No available formula with the name "libmysqlclient-dev" 
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
Error: No formulae found in taps.

I am used to working on CentOS so am not particularly familiar with the likes of apt and brew... Can anyone advise me on how best to install this on my Mac?

Not sure if it is of any relevance but I am running Mac OSX 10.11.4 (El Capitan).

I did NOT install MySQL using brew install mysql, instead, I followed the instructions here: http://jason.pureconcepts.net/2015/10/install-apache-php-mysql-mac-os-x-el-capitan/

Ben Carey
  • 16,540
  • 19
  • 87
  • 169

2 Answers2

16

try installing mysql-connector-c:

brew install mysql-connector-c
juanagui
  • 807
  • 9
  • 8
6

This works for me:

brew install mysql
Zoe
  • 27,060
  • 21
  • 118
  • 148
Joe Bobson
  • 1,216
  • 15
  • 19
  • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - [From Review](/review/low-quality-posts/22287595) – Nico Haase Feb 23 '19 at 10:05
  • 3
    @NicoHaase This is an answer. – Zoe Feb 23 '19 at 12:30
  • @Zoe there is no explanation given why that should work, and there is an accepted and upvoted answer - so I'd assume that there is some information missing – Nico Haase Feb 23 '19 at 12:34
  • 3
    @NicoHaase no explanation to a code-only answer [does not warrant flags or review deletion](https://meta.stackoverflow.com/questions/256359/flag-try-this-code-answers-as-very-low-quality) – Zoe Feb 23 '19 at 12:35