fastDFS 安装编译错误?

fastDFS 安装编译错误?

已经安装了 libfastcommon 环境了 并且执行也不报错

 ./make.sh && ./make.sh install 

但是在安装fastdfs 执行编译命令make.sh的时候报错了
提示函数找不到
image.png
没遇到过这种问题,网上搜也找不到答案,
有没有遇到过这种问题的大佬,求解啊!

Linux 为 centOS 7.9 fastdfs 和 libfastcommon 都是最新的
安装的插件和官网文档上的都是一样的

yum install git gcc gcc-c++ make automake autoconf libtool pcre pcre-devel zlib zlib-devel openssl-devel wget vim -y
阅读 2.8k
1 个回答

按照fastdfs/INSTALL文件编译,并未复现你写的这种错误。

# step 1. download libfastcommon source codes and install it,
#   github address:  https://github.com/happyfish100/libfastcommon.git
#   gitee address:   https://gitee.com/fastdfs100/libfastcommon.git
# command lines as:

   git clone https://github.com/happyfish100/libfastcommon.git
   cd libfastcommon; 
   ./make.sh clean && ./make.sh && ./make.sh install


# step 2. download fastdfs source codes and install it, 
#   github address:  https://github.com/happyfish100/fastdfs.git
#   gitee address:   https://gitee.com/fastdfs100/fastdfs.git
# command lines as:

   git clone https://github.com/happyfish100/fastdfs.git
   cd fastdfs;
   ./make.sh clean && ./make.sh && ./make.sh install

image.png

我的编译环境为ubuntu 18.04 gcc版本为7.5.0。PRId64定义在/usr/include/inttypes.h之中,其定义如下:

# if __WORDSIZE == 64
#  define __PRI64_PREFIX    "l"
#  define __PRIPTR_PREFIX    "l"
# else
#  define __PRI64_PREFIX    "ll"
#  define __PRIPTR_PREFIX
# endif
...
# define PRId64        __PRI64_PREFIX "d"

可以检查下编译机器上的这个头文件。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题