Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译报错 ld: library not found for -lrt #5

Closed
robbinhan opened this issue Sep 2, 2013 · 1 comment
Closed

编译报错 ld: library not found for -lrt #5

robbinhan opened this issue Sep 2, 2013 · 1 comment

Comments

@robbinhan
Copy link

configuration完毕,make出错
机器环境:

  • php5.5.1
  • macos x 10.8.4
  • clang:
➜  swoole-swoole-1.5.5  clang -v
Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.4.0
Thread model: posix

错误信息:

/bin/sh /Users/robbin/Downloads/swoole-swoole-1.5.5/libtool --mode=link cc -DPHP_ATOM_INC -I/Users/robbin/Downloads/swoole-swoole-1.5.5/include -I/Users/robbin/Downloads/swoole-swoole-1.5.5/main -I/Users/robbin/Downloads/swoole-swoole-1.5.5 -I/Users/robbin/.phpenv/versions/5.5.1/include/php -I/Users/robbin/.phpenv/versions/5.5.1/include/php/main -I/Users/robbin/.phpenv/versions/5.5.1/include/php/TSRM -I/Users/robbin/.phpenv/versions/5.5.1/include/php/Zend -I/Users/robbin/.phpenv/versions/5.5.1/include/php/ext -I/Users/robbin/.phpenv/versions/5.5.1/include/php/ext/date/lib -I/include  -DHAVE_CONFIG_H  -g -O2   -o swoole.la -export-dynamic -avoid-version -prefer-pic -module -rpath /Users/robbin/Downloads/swoole-swoole-1.5.5/modules  swoole.lo src/core/Base.lo src/core/RingQueue.lo src/core/Chan.lo src/memory/ShareMemory.lo src/memory/MemPool.lo src/factory/Factory.lo src/factory/FactoryThread.lo src/factory/FactoryProcess.lo src/reactor/ReactorBase.lo src/reactor/ReactorSelect.lo src/reactor/ReactorPoll.lo src/reactor/ReactorEpoll.lo src/reactor/ReactorKqueue.lo src/pipe/PipeBase.lo src/pipe/PipeEventfd.lo src/pipe/PipeUnsock.lo src/pipe/PipeMsg.lo src/lock/Semaphore.lo src/lock/Mutex.lo src/lock/RWLock.lo src/lock/FileLock.lo src/network/Server.lo src/network/Client.lo src/network/buffer.lo -lrt
cc ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o .libs/swoole.so -bundle  .libs/swoole.o src/core/.libs/Base.o src/core/.libs/RingQueue.o src/core/.libs/Chan.o src/memory/.libs/ShareMemory.o src/memory/.libs/MemPool.o src/factory/.libs/Factory.o src/factory/.libs/FactoryThread.o src/factory/.libs/FactoryProcess.o src/reactor/.libs/ReactorBase.o src/reactor/.libs/ReactorSelect.o src/reactor/.libs/ReactorPoll.o src/reactor/.libs/ReactorEpoll.o src/reactor/.libs/ReactorKqueue.o src/pipe/.libs/PipeBase.o src/pipe/.libs/PipeEventfd.o src/pipe/.libs/PipeUnsock.o src/pipe/.libs/PipeMsg.o src/lock/.libs/Semaphore.o src/lock/.libs/Mutex.o src/lock/.libs/RWLock.o src/lock/.libs/FileLock.o src/network/.libs/Server.o src/network/.libs/Client.o src/network/.libs/buffer.o  -lrt
ld: library not found for -lrt
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [swoole.la] Error 1
@matyhtf
Copy link
Member

matyhtf commented Sep 2, 2013

是mac下的吗?可以加我的QQ 350749960.

@matyhtf matyhtf closed this as completed Sep 5, 2013
@diida diida mentioned this issue Jul 28, 2015
@benzhan benzhan mentioned this issue Jan 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants