Phoenix运行Kmeans
来源:互联网 发布:nginx不允许ip访问 编辑:程序博客网 时间:2024/06/01 08:51
g++ -lpthread -g -Wall -O3 -D_LINUX_ -DMMAP_POPULATE -fstrict-aliasing-Wstrict-aliasing -D__x86_64__ -c kmeans.cpp -o kmeans.o-I../../include
g++ -lpthread -g -Wall -O3 -D_LINUX_ -DMMAP_POPULATE -fstrict-aliasing-Wstrict-aliasing -D__x86_64__ -o kmeans kmeans.o -lpthread -lrt-L../../lib -lphoenix
../../lib/libphoenix.a(thread_pool.o):In function `semaphore::wait()':
/home/xiuwenyi/phoenix++-1.0/src/../include/synch.h:177:undefined reference to `sem_wait'
../../lib/libphoenix.a(thread_pool.o):In function `semaphore::post()':
/home/xiuwenyi/phoenix++-1.0/src/../include/synch.h:168:undefined reference to `sem_post'
/home/xiuwenyi/phoenix++-1.0/src/../include/synch.h:168:undefined reference to `sem_post'
../../lib/libphoenix.a(thread_pool.o):In function `semaphore':
/home/xiuwenyi/phoenix++-1.0/src/../include/synch.h:159:undefined reference to `sem_init'
/home/xiuwenyi/phoenix++-1.0/src/../include/synch.h:159:undefined reference to `sem_init'
../../lib/libphoenix.a(thread_pool.o):In function `thread_pool':
/home/xiuwenyi/phoenix++-1.0/src/thread_pool.cpp:61:undefined reference to `pthread_create'
/home/xiuwenyi/phoenix++-1.0/src/thread_pool.cpp:61:undefined reference to `pthread_create'
../../lib/libphoenix.a(thread_pool.o):In function `semaphore::post()':
/home/xiuwenyi/phoenix++-1.0/src/../include/synch.h:168:undefined reference to `sem_post'
../../lib/libphoenix.a(thread_pool.o):In function `semaphore::wait()':
/home/xiuwenyi/phoenix++-1.0/src/../include/synch.h:177:undefined reference to `sem_wait'
../../lib/libphoenix.a(thread_pool.o):In function `semaphore::post()':
/home/xiuwenyi/phoenix++-1.0/src/../include/synch.h:168:undefined reference to `sem_post'
../../lib/libphoenix.a(thread_pool.o):In function `semaphore::wait()':
/home/xiuwenyi/phoenix++-1.0/src/../include/synch.h:177:undefined reference to `sem_wait'
collect2:ld返回1
make:*** [kmeans]错误1
若有以上这个错误,进入kmeans目录,修改Makefile,将-pthread加进去,如下
kmeans: $(KMEANS_OBJS) $(LIB_DEP)$(CXX) -pthread $(CFLAGS) -o $@ $(KMEANS_OBJS) $(LIBS)%.o: %.cpp$(CXX) -pthread $(CFLAGS) -c $< -o $@ -I$(HOME)/$(INC_DIR)
在终端里进入phoenix文件夹,make
- Phoenix运行Kmeans
- Twister运行Kmeans
- Mahout运行Kmeans
- MapReduce 运行Kmeans代码
- phoenix
- Phoenix
- phoenix
- Hadoop命令行运行KMeans(含源代码)
- Kmeans
- KMeans
- Kmeans
- KMeans
- KMeans
- kmeans
- Kmeans
- Kmeans
- Kmeans
- Kmeans
- nosql_memcached简介
- 关于成长
- map和reduce 个数的设定 (Hive优化)经典
- Cadence画PCB傻瓜式教程
- mysql_affected_rows
- Phoenix运行Kmeans
- mysql优化分析
- SQL取出 所有周六 周日的日期
- uva218( Moth Eradication)
- wince6.0的安装
- 一个简单HashTable实现,哈希函数求模取余,链地址解决冲突
- C#学习记录(六)--------HTML中target
- andengine Most important concepts:
- 在C#中的使用Measurement Studio 之一 总体介绍