php安装swoole扩展的方法(5)

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$

安装成功。

可以查看一下这个目录:

复制代码 代码如下:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/ccb2654675ef5fba4328adbb136bf112.html