fastdfs
fastdfs copied to clipboard
fastdfs V6.12.1 make error
我是按照INSTALL安装 即:
git clone https://github.com/happyfish100/libfastcommon.git
cd libfastcommon; git checkout V1.0.73
./make.sh clean && ./make.sh && sudo ./make.sh install
git clone https://github.com/happyfish100/libserverframe.git
cd libserverframe; git checkout V1.2.3
./make.sh clean && ./make.sh && sudo ./make.sh install
git clone https://github.com/happyfish100/fastdfs.git
cd fastdfs; git checkout V6.12.1
./make.sh clean && ./make.sh
./make.sh报错:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/libserverframe.so: undefined reference to sorted_queue_init' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/libserverframe.so: undefined reference to iniGetByteCorrectValueEx'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/libserverframe.so: undefined reference to fc_queue_push_queue_to_head_ex' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/libserverframe.so: undefined reference to g_set_cloexec'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/libserverframe.so: undefined reference to common_blocked_queue_free_all_nodes' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/libserverframe.so: undefined reference to fc_get_last_lines'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/libserverframe.so: undefined reference to fc_queue_push_ex' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/libserverframe.so: undefined reference to log_get_level_caption_ex'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/libserverframe.so: undefined reference to fc_get_first_lines' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/libserverframe.so: undefined reference to fast_timer_add_ex'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/libserverframe.so: undefined reference to split_string_ex' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/libserverframe.so: undefined reference to g_tcp_quick_ack'
collect2: error: ld returned 1 exit status
make: *** [Makefile:60: fdfs_monitor] Error 1
估计你安装过旧版本的libfastcommon,按这个操作处理一下:
若出现libfastcommon版本不匹配问题,请执行如下命令:/bin/rm -rf /usr/local/lib/libfastcommon.so /usr/local/include/fastcommon