andy@AndyMacBookPro:/usr/local/webdata/github/swoole-src$ make install
Installing shared extensions: /usr/lib/php/extensions/no-debug-non-zts-20100525/
cp: /usr/lib/php/extensions/no-debug-non-zts-20100525/#INST@21013#: Permission denied
make: *** [install-modules] Error 1
andy@AndyMacBookPro:/usr/local/webdata/github/swoole-src$ sudo make install
Password:
/bin/sh /usr/local/webdata/github/swoole-src/libtool --mode=install cp ./swoole.la /usr/local/webdata/github/swoole-src/modules
cp ./.libs/swoole.so /usr/local/webdata/github/swoole-src/modules/swoole.so
cp ./.libs/swoole.lai /usr/local/webdata/github/swoole-src/modules/swoole.la
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/webdata/github/swoole-src/modules
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
during execution
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Installing shared extensions: /usr/lib/php/extensions/no-debug-non-zts-20100525/
andy@AndyMacBookPro:/usr/local/webdata/github/swoole-src$
安装成功。
可以查看一下这个目录:
复制代码 代码如下: