happyfish100 / fastdfs

FastDFS is an open source high performance distributed file system (DFS). It's major functions include: file storing, file syncing and file accessing, and design for high capacity and load balance. Wechat/Weixin public account (Chinese Language): fastdfs
GNU General Public License v3.0
8.97k stars 1.98k forks source link

安装不了 #657

Open longxishui opened 11 months ago

longxishui commented 11 months ago
 小白问一下,我安装执行完libfastcommon-master后按照步骤安装libserverframe-master 时,报如下错误,是comm没有安装成功吗,还是缺失其他类库,该怎么处理呢,系统是centOS 7

 其中common安装的信息如下:

[root@loaclhost libfastcommon-master]# ./make.sh install mkdir -p /usr/lib64 mkdir -p /usr/lib mkdir -p /usr/include/fastcommon install -m 755 libfastcommon.so /usr/lib64 install -m 644 common_define.h hash.h chain.h logger.h base64.h shared_func.h pthread_func.h ini_file_reader.h _os_define.h sockopt.h sched_thread.h http_func.h md5.h local_ip_func.h avl_tree.h ioevent.h ioevent_loop.h fast_task_queue.h fast_timer.h locked_timer.h process_ctrl.h fast_mblock.h connection_pool.h fast_mpool.h fast_allocator.h fast_buffer.h skiplist.h multi_skiplist.h flat_skiplist.h skiplist_common.h system_info.h fast_blocked_queue.h php7_ext_wrapper.h id_generator.h char_converter.h char_convert_loader.h common_blocked_queue.h multi_socket_client.h skiplist_set.h uniq_skiplist.h fc_list.h locked_list.h json_parser.h buffered_file_writer.h server_id_func.h fc_queue.h sorted_queue.h fc_memory.h shared_buffer.h thread_pool.h fc_atomic.h array_allocator.h sorted_array.h /usr/include/fastcommon

安装libserverframe时的报错信息如下(部分): [root@loaclhost libserverframe-master]# ./make.sh gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -fPIC -c -o sf_nio.lo sf_nio.c -Iinclude -I/usr/local/include In file included from /usr/include/fastcommon/server_id_func.h:24:0, from sf_types.h:28, from sf_global.h:25, from sf_nio.c:41: /usr/include/fastcommon/fast_buffer.h:100:1: 错误:未知的类型名‘string_t’ static inline int fast_buffer_append_string2(FastBuffer buffer, const string_t add) ^ /usr/include/fastcommon/fast_buffer.h: 在函数‘fast_buffer_append_string2’中: /usr/include/fastcommon/fast_buffer.h:102:47: 错误:在非结构或联合中请求成员‘str’ return fast_buffer_append_buff(buffer, add->str, add->len);