~/codeDir/cppCode/swoole-src # phpize Configuring for: PHP Api Version: 20180731 Zend Module Api No: 20180731 Zend Extension Api No: 320180731 ~/codeDir/cppCode/swoole-src #
1 2 3 4 5 6 7 8 9 10 11 12 13 14
~/codeDir/cppCode/swoole-src # ./configure checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for a sed that does not truncate output... /bin/sed checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out
# 省略其他的输出内容
(cached) (cached) checking how to hardcode library paths into programs... immediate configure: creating ./config.status config.status: creating config.h ~/codeDir/cppCode/swoole-src #
~/codeDir/cppCode/swoole-src # cmake . -- The C compiler identification is GNU 8.3.0 -- The CXX compiler identification is GNU 8.3.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- The ASM compiler identification is GNU -- Found assembler: /usr/bin/cc -- Configuring done -- Generating done -- Build files have been written to: /root/codeDir/cppCode/swoole-src ~/codeDir/cppCode/swoole-src #
~/codeDir/cppCode/swoole-src # make install Scanning dependencies of target shared [ 1%] Building C object CMakeFiles/shared.dir/src/core/array.c.o [ 2%] Building C object CMakeFiles/shared.dir/src/core/base.c.o [ 3%] Building C object CMakeFiles/shared.dir/src/core/channel.c.o
# 省略其他的输出内容
[ 91%] Building CXX object CMakeFiles/shared.dir/src/wrapper/timer.cc.o [ 92%] Linking CXX shared library lib/libswoole.so [ 97%] Built target shared Scanning dependencies of target test_server [ 98%] Building C object CMakeFiles/test_server.dir/examples/test_server.c.o [100%] Linking C executable bin/test_server [100%] Built target test_server Install the project... -- Install configuration: "Debug" Are you run command using root user? -- Installing: /usr/local/lib/libswoole.so.4.4.1 -- Up-to-date: /usr/local/lib/libswoole.so -- Up-to-date: /usr/local/include/swoole/array.h -- Up-to-date: /usr/local/include/swoole/asm_context.h -- Up-to-date: /usr/local/include/swoole/async.h