安装FastDFS遇到的问题

ubuntu14.04下安装fastdfs4.06v报错,错误信息:

client  common  conf  COPYING-3_0.txt  HISTORY  init.d  INSTALL  make.sh  php_client  README  restart.sh  stop.sh  storage  test  tracker

root@ubuntuserver:/usr/FastDFS# ./make.sh

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o ../common/hash.o ../common/hash.c  -I../common -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o ../common/chain.o ../common/chain.c  -I../common -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o ../common/base64.o ../common/base64.c  -I../common -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o ../common/shared_func.o ../common/shared_func.c  -I../common -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o ../common/ini_file_reader.o ../common/ini_file_reader.c  -I../common -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o ../common/logger.o ../common/logger.c  -I../common -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o ../common/sockopt.o ../common/sockopt.c  -I../common -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o ../common/fdfs_global.o ../common/fdfs_global.c  -I../common -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o ../common/sched_thread.o ../common/sched_thread.c  -I../common -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o ../common/http_func.o ../common/http_func.c  -I../common -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o ../common/md5.o ../common/md5.c  -I../common -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o ../common/pthread_func.o ../common/pthread_func.c  -I../common -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o ../common/local_ip_func.o ../common/local_ip_func.c  -I../common -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o ../common/connection_pool.o ../common/connection_pool.c  -I../common -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o tracker_proto.o tracker_proto.c  -I../common -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o tracker_mem.o tracker_mem.c  -I../common -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o tracker_service.o tracker_service.c  -I../common -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o tracker_status.o tracker_status.c  -I../common -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o tracker_global.o tracker_global.c  -I../common -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o tracker_func.o tracker_func.c  -I../common -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o fast_task_queue.o fast_task_queue.c  -I../common -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o fdfs_shared_func.o fdfs_shared_func.c  -I../common -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o tracker_nio.o tracker_nio.c  -I../common -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o tracker_relationship.o tracker_relationship.c  -I../common -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o tracker_dump.o tracker_dump.c  -I../common -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o ../common/linux_stack_trace.o ../common/linux_stack_trace.c  -I../common -I/usr/local/include

../common/linux_stack_trace.c: In function ‘signal_stack_trace_print’:

../common/linux_stack_trace.c:82:4: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘greg_t’ [-Wformat=]

    i, ucontext->uc_mcontext.gregs[i]);

    ^

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -o fdfs_trackerd fdfs_trackerd.c  ../common/hash.o ../common/chain.o ../common/base64.o ../common/shared_func.o ../common/ini_file_reader.o ../common/logger.o ../common/sockopt.o ../common/fdfs_global.o ../common/sched_thread.o ../common/http_func.o ../common/md5.o ../common/pthread_func.o ../common/local_ip_func.o ../common/connection_pool.o tracker_proto.o tracker_mem.o tracker_service.o tracker_status.o tracker_global.o tracker_func.o fast_task_queue.o fdfs_shared_func.o tracker_nio.o tracker_relationship.o tracker_dump.o ../common/linux_stack_trace.o -L/usr/local/lib  -ldl -rdynamic -levent -I../common -I/usr/local/include

/usr/bin/ld: ../common/pthread_func.o: undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'

//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line

collect2: error: ld returned 1 exit status

make: *** [fdfs_trackerd] 错误 1

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o ../common/fast_mblock.o ../common/fast_mblock.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o ../common/avl_tree.o ../common/avl_tree.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o tracker_client_thread.o tracker_client_thread.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o storage_global.o storage_global.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o storage_func.o storage_func.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o storage_service.o storage_service.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o storage_sync.o storage_sync.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o storage_nio.o storage_nio.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o storage_dio.o storage_dio.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o storage_ip_changed_dealer.o storage_ip_changed_dealer.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o storage_param_getter.o storage_param_getter.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o storage_disk_recovery.o storage_disk_recovery.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o trunk_mgr/trunk_mem.o trunk_mgr/trunk_mem.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o trunk_mgr/trunk_shared.o trunk_mgr/trunk_shared.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o trunk_mgr/trunk_sync.o trunk_mgr/trunk_sync.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o trunk_mgr/trunk_client.o trunk_mgr/trunk_client.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o trunk_mgr/trunk_free_block_checker.o trunk_mgr/trunk_free_block_checker.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o ../client/client_global.o ../client/client_global.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o ../client/tracker_client.o ../client/tracker_client.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o ../client/storage_client.o ../client/storage_client.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o ../client/client_func.o ../client/client_func.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o fdht_client/fdht_proto.o fdht_client/fdht_proto.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o fdht_client/fdht_client.o fdht_client/fdht_client.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o fdht_client/fdht_func.o fdht_client/fdht_func.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o fdht_client/fdht_global.o fdht_client/fdht_global.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o storage_dump.o storage_dump.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -o fdfs_storaged fdfs_storaged.c  ../common/hash.o ../common/chain.o ../common/shared_func.o ../common/ini_file_reader.o ../common/logger.o ../common/sockopt.o ../common/fdfs_global.o ../common/base64.o ../common/sched_thread.o ../common/local_ip_func.o ../common/http_func.o ../common/md5.o ../common/pthread_func.o ../common/fast_mblock.o ../common/avl_tree.o ../common/connection_pool.o ../tracker/fdfs_shared_func.o ../tracker/tracker_proto.o ../tracker/fast_task_queue.o tracker_client_thread.o storage_global.o storage_func.o storage_service.o storage_sync.o storage_nio.o storage_dio.o storage_ip_changed_dealer.o storage_param_getter.o storage_disk_recovery.o trunk_mgr/trunk_mem.o trunk_mgr/trunk_shared.o trunk_mgr/trunk_sync.o trunk_mgr/trunk_client.o trunk_mgr/trunk_free_block_checker.o ../client/client_global.o ../client/tracker_client.o ../client/storage_client.o ../client/client_func.o fdht_client/fdht_proto.o fdht_client/fdht_client.o fdht_client/fdht_func.o fdht_client/fdht_global.o storage_dump.o ../common/linux_stack_trace.o -L/usr/local/lib  -ldl -rdynamic -levent -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/local/include

/usr/bin/ld: ../common/pthread_func.o: undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'

//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line

collect2: error: ld returned 1 exit status

make: *** [fdfs_storaged] 错误 1

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o ../common/fdfs_http_shared.o ../common/fdfs_http_shared.c  -I../common -I../tracker -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -o ../common/mime_file_parser.o ../common/mime_file_parser.c  -I../common -I../tracker -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -fPIC -o ../common/hash.lo ../common/hash.c  -I../common -I../tracker -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -fPIC -o ../common/chain.lo ../common/chain.c  -I../common -I../tracker -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -fPIC -o ../common/shared_func.lo ../common/shared_func.c  -I../common -I../tracker -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -fPIC -o ../common/ini_file_reader.lo ../common/ini_file_reader.c  -I../common -I../tracker -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -fPIC -o ../common/logger.lo ../common/logger.c  -I../common -I../tracker -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -fPIC -o ../common/sockopt.lo ../common/sockopt.c  -I../common -I../tracker -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -fPIC -o ../common/base64.lo ../common/base64.c  -I../common -I../tracker -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -fPIC -o ../common/sched_thread.lo ../common/sched_thread.c  -I../common -I../tracker -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -fPIC -o ../common/http_func.lo ../common/http_func.c  -I../common -I../tracker -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -fPIC -o ../common/md5.lo ../common/md5.c  -I../common -I../tracker -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -fPIC -o ../common/pthread_func.lo ../common/pthread_func.c  -I../common -I../tracker -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -fPIC -o ../common/local_ip_func.lo ../common/local_ip_func.c  -I../common -I../tracker -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -fPIC -o ../common/avl_tree.lo ../common/avl_tree.c  -I../common -I../tracker -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -fPIC -o ../common/connection_pool.lo ../common/connection_pool.c  -I../common -I../tracker -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -fPIC -o ../common/fdfs_global.lo ../common/fdfs_global.c  -I../common -I../tracker -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -fPIC -o ../common/fdfs_http_shared.lo ../common/fdfs_http_shared.c  -I../common -I../tracker -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -fPIC -o ../common/mime_file_parser.lo ../common/mime_file_parser.c  -I../common -I../tracker -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -fPIC -o ../tracker/tracker_proto.lo ../tracker/tracker_proto.c  -I../common -I../tracker -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -fPIC -o ../tracker/fdfs_shared_func.lo ../tracker/fdfs_shared_func.c  -I../common -I../tracker -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -fPIC -o ../storage/trunk_mgr/trunk_shared.lo ../storage/trunk_mgr/trunk_shared.c  -I../common -I../tracker -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -fPIC -o tracker_client.lo tracker_client.c  -I../common -I../tracker -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -fPIC -o client_func.lo client_func.c  -I../common -I../tracker -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -fPIC -o client_global.lo client_global.c  -I../common -I../tracker -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -c -fPIC -o storage_client.lo storage_client.c  -I../common -I../tracker -I/usr/local/include

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -o fdfs_monitor fdfs_monitor.c  ../common/hash.o ../common/chain.o ../common/shared_func.o ../common/ini_file_reader.o ../common/logger.o ../common/sockopt.o ../common/base64.o ../common/sched_thread.o ../common/http_func.o ../common/md5.o ../common/pthread_func.o ../common/local_ip_func.o ../common/avl_tree.o ../common/connection_pool.o ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o -ldl -rdynamic -I../common -I../tracker -I/usr/local/include

../common/sched_thread.o:在函数‘sched_start’中:

/usr/FastDFS/tracker/../common/sched_thread.c:495:对‘pthread_create’未定义的引用

../common/pthread_func.o:在函数‘init_pthread_lock’中:

/usr/FastDFS/tracker/../common/pthread_func.c:32:对‘pthread_mutexattr_init’未定义的引用

/usr/FastDFS/tracker/../common/pthread_func.c:40:对‘pthread_mutexattr_settype’未定义的引用

/usr/FastDFS/tracker/../common/pthread_func.c:57:对‘pthread_mutexattr_destroy’未定义的引用

../common/pthread_func.o:在函数‘init_pthread_attr’中:

/usr/FastDFS/tracker/../common/pthread_func.c:84:对‘pthread_attr_getstacksize’未定义的引用

/usr/FastDFS/tracker/../common/pthread_func.c:115:对‘pthread_attr_setstacksize’未定义的引用

../common/pthread_func.o:在函数‘create_work_threads’中:

/usr/FastDFS/tracker/../common/pthread_func.c:156:对‘pthread_create’未定义的引用

../common/pthread_func.o:在函数‘kill_work_threads’中:

/usr/FastDFS/tracker/../common/pthread_func.c:182:对‘pthread_kill’未定义的引用

collect2: error: ld returned 1 exit status

make: *** [fdfs_monitor] 错误 1

root@ubuntuserver:/usr/FastDFS# 

解决办法:

  其实是不同的系统中pthread位置不一样,做法就是找到你的系统中所需要的libpthread.so文件位置,直接find就可以找到了;

  root@ www.linuxidc.com:~# find / -name 'libpthread.a'  

  /usr/lib/i386-linux-gnu/xen/libpthread.a  

  /usr/lib/i386-linux-gnu/libpthread.a  

  root@ www.linuxidc.com:~# find / -name 'libpthread.so'  

   /usr/lib/i386-linux-gnu/libpthread.so  

   找到:libpthread.a  和 libpthread.so 的路径

   修改make.sh文件:

   把|| [ -f /usr/lib/i386-linux-gnu/libpthread.so ] || [ -f /usr/lib/i386-linux-gnu/libpthread.so ] || [ -f  /usr/lib/i386-linux-gnu/xen/libpthread.a ] || [ -f  /usr/lib/i386-linux-gnu/xen/libpthread.a ] || [ -f /usr/lib/i386-linux-gnu/libpthread.a ]; then   LIBS="$LIBS -lpthread"   

然后执行如下命令:

  ln -s /usr/lib32/libpthread.so /usr/lib/libpthread.so 
  ln -s /usr/lib32/libpthread.a /usr/lib/libpthread.a

通过。

安装成功信息:

if [ 1 -eq 1 -a /usr/local/lib = "/usr/local/lib" ]; then sh ./fdfs_link_library.sh; fi

参考:http://jingtao416.iteye.com/blog/2034283


ubuntu14.04下安装FastDFS5.05时,报错信息:

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -o fdfs_trackerd fdfs_trackerd.c  ../common/fdfs_global.o tracker_proto.o tracker_mem.o tracker_service.o tracker_status.o tracker_global.o tracker_func.o fdfs_shared_func.o tracker_nio.o tracker_relationship.o tracker_dump.o ../common/linux_stack_trace.o -L/usr/local/lib  -lpthread -ldl -rdynamic -lfastcommon -I../common -I/usr/include/fastcommon

/tmp/cc1pP1H5.o:在函数‘main’中:

/home/deploy/FastDFS/tracker/fdfs_trackerd.c:108:对‘log_init2’未定义的引用

/home/deploy/FastDFS/tracker/fdfs_trackerd.c:111:对‘get_base_path_from_conf_file’未定义的引用

/home/deploy/FastDFS/tracker/fdfs_trackerd.c:120:对‘process_action’未定义的引用

/home/deploy/FastDFS/tracker/fdfs_trackerd.c:194:对‘write_to_pid_file’未定义的引用

/home/deploy/FastDFS/tracker/fdfs_trackerd.c:355:对‘log_set_keep_days’未定义的引用

/home/deploy/FastDFS/tracker/fdfs_trackerd.c:360:对‘log_delete_old_files’未定义的引用

/home/deploy/FastDFS/tracker/fdfs_trackerd.c:437:对‘delete_pid_file’未定义的引用

tracker_service.o:在函数‘work_thread_entrance’中:

/home/deploy/FastDFS/tracker/tracker_service.c:324:对‘ioevent_loop’未定义的引用

/home/deploy/FastDFS/tracker/tracker_service.c:326:对‘ioevent_destroy’未定义的引用

tracker_service.o:在函数‘tracker_service_init’中:

/home/deploy/FastDFS/tracker/tracker_service.c:84:对‘free_queue_init_ex’未定义的引用

/home/deploy/FastDFS/tracker/tracker_service.c:105:对‘ioevent_init’未定义的引用

/home/deploy/FastDFS/tracker/tracker_service.c:116:对‘fast_timer_init’未定义的引用

tracker_nio.o:在函数‘task_finish_clean_up’中:

/home/deploy/FastDFS/tracker/tracker_nio.c:62:对‘ioevent_detach’未定义的引用

/home/deploy/FastDFS/tracker/tracker_nio.c:68:对‘fast_timer_remove’未定义的引用

/home/deploy/FastDFS/tracker/tracker_nio.c:74:对‘free_queue_push’未定义的引用

tracker_nio.o:在函数‘client_sock_read’中:

/home/deploy/FastDFS/tracker/tracker_nio.c:205:对‘fast_timer_add’未定义的引用

/home/deploy/FastDFS/tracker/tracker_nio.c:234:对‘fast_timer_modify’未定义的引用

tracker_nio.o:在函数‘client_sock_write’中:

/home/deploy/FastDFS/tracker/tracker_nio.c:356:对‘fast_timer_modify’未定义的引用

tracker_nio.o:在函数‘set_send_event’中:

/home/deploy/FastDFS/tracker/tracker_nio.c:167:对‘ioevent_modify’未定义的引用

tracker_nio.o:在函数‘client_sock_write’中:

/home/deploy/FastDFS/tracker/tracker_nio.c:414:对‘ioevent_modify’未定义的引用

tracker_nio.o:在函数‘recv_notify_read’中:

/home/deploy/FastDFS/tracker/tracker_nio.c:134:对‘free_queue_pop’未定义的引用

/home/deploy/FastDFS/tracker/tracker_nio.c:148:对‘ioevent_set’未定义的引用

collect2: error: ld returned 1 exit status

make: *** [fdfs_trackerd] 错误 1

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -o fdfs_storaged fdfs_storaged.c  ../common/fdfs_global.o ../tracker/fdfs_shared_func.o ../tracker/tracker_proto.o tracker_client_thread.o storage_global.o storage_func.o storage_service.o storage_sync.o storage_nio.o storage_dio.o storage_ip_changed_dealer.o storage_param_getter.o storage_disk_recovery.o trunk_mgr/trunk_mem.o trunk_mgr/trunk_shared.o trunk_mgr/trunk_sync.o trunk_mgr/trunk_client.o trunk_mgr/trunk_free_block_checker.o ../client/client_global.o ../client/tracker_client.o ../client/storage_client.o ../client/client_func.o fdht_client/fdht_proto.o fdht_client/fdht_client.o fdht_client/fdht_func.o fdht_client/fdht_global.o storage_dump.o ../common/linux_stack_trace.o -L/usr/local/lib  -lpthread -ldl -rdynamic -lfastcommon -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon

/tmp/ccZd2pxf.o:在函数‘main’中:

/home/deploy/FastDFS/storage/fdfs_storaged.c:109:对‘log_init2’未定义的引用

/home/deploy/FastDFS/storage/fdfs_storaged.c:113:对‘get_base_path_from_conf_file’未定义的引用

/home/deploy/FastDFS/storage/fdfs_storaged.c:122:对‘process_action’未定义的引用

/home/deploy/FastDFS/storage/fdfs_storaged.c:173:对‘write_to_pid_file’未定义的引用

/home/deploy/FastDFS/storage/fdfs_storaged.c:378:对‘log_set_keep_days’未定义的引用

/home/deploy/FastDFS/storage/fdfs_storaged.c:384:对‘log_delete_old_files’未定义的引用

/home/deploy/FastDFS/storage/fdfs_storaged.c:408:对‘log_set_keep_days’未定义的引用

/home/deploy/FastDFS/storage/fdfs_storaged.c:413:对‘log_delete_old_files’未定义的引用

/home/deploy/FastDFS/storage/fdfs_storaged.c:501:对‘delete_pid_file’未定义的引用

tracker_client_thread.o:在函数‘tracker_heart_beat’中:

/home/deploy/FastDFS/storage/tracker_client_thread.c:2136:对‘free_queue_alloc_connections’未定义的引用

storage_service.o:在函数‘work_thread_entrance’中:

/home/deploy/FastDFS/storage/storage_service.c:1945:对‘ioevent_loop’未定义的引用

/home/deploy/FastDFS/storage/storage_service.c:1947:对‘ioevent_destroy’未定义的引用

storage_service.o:在函数‘accept_thread_entrance’中:

/home/deploy/FastDFS/storage/storage_service.c:1823:对‘free_queue_pop’未定义的引用

/home/deploy/FastDFS/storage/storage_service.c:1846:对‘free_queue_push’未定义的引用

storage_service.o:在函数‘storage_service_init’中:

/home/deploy/FastDFS/storage/storage_service.c:1602:对‘free_queue_init_ex’未定义的引用

/home/deploy/FastDFS/storage/storage_service.c:1624:对‘ioevent_init’未定义的引用

/home/deploy/FastDFS/storage/storage_service.c:1634:对‘fast_timer_init’未定义的引用

storage_service.o:在函数‘storage_terminate_threads’中:

/home/deploy/FastDFS/storage/storage_service.c:1739:对‘free_queue_pop’未定义的引用

storage_nio.o:在函数‘set_recv_event’中:

/home/deploy/FastDFS/storage/storage_nio.c:86:对‘ioevent_modify’未定义的引用

storage_nio.o:在函数‘task_finish_clean_up’中:

/home/deploy/FastDFS/storage/storage_nio.c:58:对‘ioevent_detach’未定义的引用

/home/deploy/FastDFS/storage/storage_nio.c:64:对‘fast_timer_remove’未定义的引用

/home/deploy/FastDFS/storage/storage_nio.c:70:对‘free_queue_push’未定义的引用

storage_nio.o:在函数‘client_sock_read’中:

/home/deploy/FastDFS/storage/storage_nio.c:261:对‘fast_timer_add’未定义的引用

/home/deploy/FastDFS/storage/storage_nio.c:274:对‘fast_timer_add’未定义的引用

/home/deploy/FastDFS/storage/storage_nio.c:301:对‘fast_timer_modify’未定义的引用

storage_nio.o:在函数‘client_sock_write’中:

/home/deploy/FastDFS/storage/storage_nio.c:454:对‘fast_timer_modify’未定义的引用

storage_nio.o:在函数‘set_send_event’中:

/home/deploy/FastDFS/storage/storage_nio.c:111:对‘ioevent_modify’未定义的引用

storage_nio.o:在函数‘storage_nio_init’中:

/home/deploy/FastDFS/storage/storage_nio.c:227:对‘ioevent_set’未定义的引用

storage_dio.o:在函数‘dio_thread_entrance’中:

/home/deploy/FastDFS/storage/storage_dio.c:773:对‘task_queue_pop’未定义的引用

storage_dio.o:在函数‘storage_dio_init’中:

/home/deploy/FastDFS/storage/storage_dio.c:103:对‘task_queue_init’未定义的引用

storage_dio.o:在函数‘storage_dio_queue_push’中:

/home/deploy/FastDFS/storage/storage_dio.c:172:对‘task_queue_push’未定义的引用

trunk_mgr/trunk_mem.o:在函数‘storage_trunk_free_node’中:

/home/deploy/FastDFS/storage/trunk_mgr/trunk_mem.c:639:对‘fast_mblock_free’未定义的引用

trunk_mgr/trunk_mem.o:在函数‘trunk_delete_size_tree_entry’中:

/home/deploy/FastDFS/storage/trunk_mgr/trunk_mem.c:1261:对‘fast_mblock_free’未定义的引用

trunk_mgr/trunk_mem.o:在函数‘trunk_add_free_block’中:

/home/deploy/FastDFS/storage/trunk_mgr/trunk_mem.c:1192:对‘fast_mblock_alloc’未定义的引用

trunk_mgr/trunk_mem.o:在函数‘trunk_add_space_by_node’中:

/home/deploy/FastDFS/storage/trunk_mgr/trunk_mem.c:600:对‘fast_mblock_free’未定义的引用

/home/deploy/FastDFS/storage/trunk_mgr/trunk_mem.c:611:对‘fast_mblock_free’未定义的引用

trunk_mgr/trunk_mem.o:在函数‘trunk_delete_space’中:

/home/deploy/FastDFS/storage/trunk_mgr/trunk_mem.c:1345:对‘fast_mblock_free’未定义的引用

trunk_mgr/trunk_mem.o:在函数‘storage_trunk_destroy_ex’中:

/home/deploy/FastDFS/storage/trunk_mgr/trunk_mem.c:304:对‘fast_mblock_destroy’未定义的引用

/home/deploy/FastDFS/storage/trunk_mgr/trunk_mem.c:305:对‘fast_mblock_destroy’未定义的引用

trunk_mgr/trunk_mem.o:在函数‘trunk_free_space’中:

/home/deploy/FastDFS/storage/trunk_mgr/trunk_mem.c:1150:对‘fast_mblock_alloc’未定义的引用

trunk_mgr/trunk_mem.o:在函数‘storage_trunk_restore’中:

/home/deploy/FastDFS/storage/trunk_mgr/trunk_mem.c:760:对‘fast_mblock_alloc’未定义的引用

trunk_mgr/trunk_mem.o:在函数‘storage_trunk_init’中:

/home/deploy/FastDFS/storage/trunk_mgr/trunk_mem.c:200:对‘fast_mblock_init_ex’未定义的引用

/home/deploy/FastDFS/storage/trunk_mgr/trunk_mem.c:206:对‘fast_mblock_init_ex’未定义的引用

trunk_mgr/trunk_mem.o:在函数‘trunk_create_trunk_file’中:

/home/deploy/FastDFS/storage/trunk_mgr/trunk_mem.c:1451:对‘fast_mblock_alloc’未定义的引用

/home/deploy/FastDFS/storage/trunk_mgr/trunk_mem.c:1494:对‘fast_mblock_free’未定义的引用

trunk_mgr/trunk_mem.o:在函数‘trunk_split’中:

/home/deploy/FastDFS/storage/trunk_mgr/trunk_mem.c:1406:对‘fast_mblock_alloc’未定义的引用

/home/deploy/FastDFS/storage/trunk_mgr/trunk_mem.c:1422:对‘fast_mblock_free’未定义的引用

storage_dump.o:在函数‘fdfs_dump_storage_stat’中:

/home/deploy/FastDFS/storage/storage_dump.c:331:对‘free_queue_alloc_connections’未定义的引用

collect2: error: ld returned 1 exit status

make: *** [fdfs_storaged] 错误 1

cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -DOS_LINUX -DIOEVENT_USE_EPOLL -o fdfs_monitor fdfs_monitor.c  ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o -lpthread -ldl -rdynamic -lfastcommon -I../common -I../tracker -I/usr/include/fastcommon

/tmp/ccbPXuds.o:在函数‘main’中:

/home/deploy/FastDFS/client/fdfs_monitor.c:96:对‘ignore_signal_pipe’未定义的引用

collect2: error: ld returned 1 exit status

make: *** [fdfs_monitor] 错误 1

解决办法:安装5.03通过,5.04,5.05版本安装通过不了,邪门了。

转载于:https://my.oschina.net/ydsakyclguozi/blog/393883

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值