C++ in version 2019.1.0 on Mac

Hi all,

I am using C++ with FEniCS 2019.1.0 on Macbook. I am trying to solve Possion equation by using the code in the documented demo. I have tried cmake . and it works, then I tried make which shows the error:

make[2]: *** No rule to make target `/usr/lib/libpthread.dylib', needed by `demo_poisson'.  Stop.
make[1]: *** [CMakeFiles/demo_poisson.dir/all] Error 2

By the way, I installed FEniCS using anaconda. I also installed FEniCS using Docker, which does not have this error. I am wondering why this happens and how I can solve this problem.

Thanks in advance,
Leon