@@ -251,9 +251,9 @@ public function buildOpenCV($directory)
251
251
'cd opencv/build ' ,
252
252
$ cmakeCommand ,
253
253
'make ' ,
254
- $ this ->isRoot ? '' : 'sudo ' . 'make install ' ,
255
- $ this ->isRoot ? '' : 'sudo ' . 'sh -c \'echo "/usr/local/lib" > /etc/ld.so.conf.d/opencv.conf \'' ,
256
- $ this ->isRoot ? '' : 'sudo ' . 'ldconfig '
254
+ ( $ this ->isRoot ? '' : 'sudo ' ) . 'make install ' ,
255
+ ( $ this ->isRoot ? '' : 'sudo ' ) . 'sh -c \'echo "/usr/local/lib" > /etc/ld.so.conf.d/opencv.conf \'' ,
256
+ ( $ this ->isRoot ? '' : 'sudo ' ) . 'ldconfig '
257
257
];
258
258
$ process = new Process (implode (' && ' , $ commands ), $ directory , null , null , null );
259
259
$ process ->setTty (Process::isTtySupported ());//检查TTY支持
@@ -295,7 +295,7 @@ protected function buildPHPOpenCV($directory, $phpizePath, $phpConfigPath)
295
295
'./configure --with-php-config= ' . $ phpConfigPath ,//todo
296
296
'make clean ' ,
297
297
'make ' ,
298
- $ this ->isRoot ? '' : 'sudo ' . 'make install '
298
+ ( $ this ->isRoot ? '' : 'sudo ' ) . 'make install '
299
299
];
300
300
$ process = new Process (implode (' && ' , $ commands ), $ directory , null , null , null );
301
301
$ process ->setTty (Process::isTtySupported ());//检查TTY支持
0 commit comments