[exec] /usr/bin/cc -g -Wall -O2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/test_libhdfs_vecsum.dir/main/native/libhdfs/test/vecsum.c.o -o test_libhdfs_vecsum target/usr/local/lib/libhdfs.0.0.0.dylib -lpthread -lrt /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/jre/lib/server/libjvm.dylib -ldl -lpthread -Wl,-rpath,/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/jre/lib/server
[exec] ld: library not found for -lrt
[exec] clang: error: linker command failed with exit code 1 (use -v to see invocation)
[exec] make[2]: *** [test_libhdfs_vecsum] Error 1
[exec] make[1]: *** [CMakeFiles/test_libhdfs_vecsum.dir/all] Error 2
[exec] make: *** [all] Error 2
lrt庫沒有找到,你需要先安裝這個類庫,編譯的時候需要找到這個lib