File tree Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,15 @@ Swoole >= 4.8 (可选)
24
24
phpize && ./configure && make -j && make install
25
25
```
26
26
27
+ ** 手动指定 tdengine 目录:**
28
+
29
+ ``` shell
30
+ phpize && ./configure --with-tdengine-dir=/usr/local/Cellar/tdengine/2.4.0.0 && make -j && make install
31
+ ```
32
+
33
+ > ` --with-tdengine-dir= ` 后跟上 tdengine 目录。
34
+ > 适用于默认找不到的情况,或者 MacOS 系统用户。
35
+
27
36
** Swoole 环境:**
28
37
29
38
``` shell
Original file line number Diff line number Diff line change @@ -91,10 +91,19 @@ if test "$PHP_TDENGINE" != "no"; then
91
91
dnl PHP_SUBST(TDENGINE_SHARED_LIBADD)
92
92
93
93
dnl In case of no dependencies
94
- AC_DEFINE ( HAVE_TDENGINE , 1 , [ Have tdengine support ] )
94
+ PHP_ARG_WITH([ tdengine_dir] ,
95
+ [ dir of tdengine] ,
96
+ [ AS_HELP_STRING ( [ [ --with-tdengine-dir[ =DIR] ] ] ,
97
+ [ Include TDengine support (requires TDengine >= 2.0.0)] ) ] , [ no] , [ no] )
95
98
96
- TDENGINE_INCLUDE="/usr/local/taos/include"
97
- TDENGINE_LIBDIR="/usr/local/taos/driver"
99
+ AC_DEFINE ( HAVE_TDENGINE , 1 , [ Have tdengine support ] )
100
+ if test "$PHP_TDENGINE_DIR" != "no"; then
101
+ TDENGINE_INCLUDE="${PHP_TDENGINE_DIR}/include"
102
+ TDENGINE_LIBDIR="${PHP_TDENGINE_DIR}/driver"
103
+ else
104
+ TDENGINE_INCLUDE="/usr/local/taos/include"
105
+ TDENGINE_LIBDIR="/usr/local/taos/driver"
106
+ fi
98
107
99
108
PHP_CHECK_LIBRARY(taos, taos_init,
100
109
[
You can’t perform that action at this time.
0 commit comments