File tree 1 file changed +9
-0
lines changed 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,15 @@ Install the Tensor extension via [PECL](https://pecl.php.net/package/Tensor):
17
17
``` sh
18
18
$ pecl install tensor
19
19
```
20
+ Compiling on MacOS :
21
+ To avoid some errors on Mac devices using homebrew, don't forget to add environment variables:
22
+ ``` sh
23
+ export LDFLAGS=" -L$( brew --prefix openblas) /lib -L$( brew --prefix pcre2) /lib -L$( brew --prefix gcc) /lib/gcc/current"
24
+ export CPPFLAGS=" -I$( brew --prefix openblas) /include -I$( brew --prefix pcre2) /include -I$( brew --prefix gcc) /include"
25
+ export PKG_CONFIG_PATH=" $( brew --prefix openblas) /lib/pkgconfig:$( brew --prefix pcre2) /lib/pkgconfig:$( brew --prefix gcc) /lib/pkgconfig"
26
+ export PATH=" $( brew --prefix gcc) /bin:$PATH "
27
+ export FC=$( brew --prefix gcc) /bin/gfortran
28
+ ```
20
29
21
30
> ** Note:** If both the library and extension are installed, the extension will take precedence.
22
31
You can’t perform that action at this time.
0 commit comments