1

I am trying install swoole on my mac I tried this sudo pecl install swoole

But am getting an error like this fatal error: 'pcre.h' file not found first.

How to solve this? thanks in advance!

Sumithran
  • 6,217
  • 4
  • 40
  • 54

2 Answers2

0

This works for me

brew install swoole 
#!/bin/bash
brew install homebrew/php/php71-swoole

also try this

pecl download swoole
tar xvf swoole-1.7.9.tgz
cd swoole-1.7.9
phpize
./configure
make && make install
Sumithran
  • 6,217
  • 4
  • 40
  • 54
0

you need install pcre-dev at first

too
  • 51
  • 1
  • 4