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
9.05k stars 1.99k forks source link

编译报错:/usr/include/fastcommon/ioevent.h:82:2: error: #error port me #82

Open clearbug opened 7 years ago

clearbug commented 7 years ago

刚开始忘记了安装libfastcommon就直接在fastdfs-5.08中执行./make.sh 了。后来安装了libfastcommon,然后执行在fastdfs-5.08中执行./make.sh,显示如下: qq 20161118205039 (linux,c均小白,看不懂这是啥错误)顺便说下linux版本吧: `[root@localhost fastdfs-5.08]# cat /proc/version

Linux version 3.10.0-327.36.3.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC) ) #1 SMP Mon Oct 24 16:09:20 UTC 2016` 也就是昨天刚下的 Mini CentOS7

jaylinwang commented 7 years ago

最开始我也遇到了这个问题,使用两个项目的master分支编译安装正常运行了@clearbug

aquariuspj commented 7 years ago

clean以下再make试试

happyfish100 commented 7 years ago

需要安装新版本的libfastcommon。 若还是出现libfastcommon版本不匹配问题,请执行如下命令:/bin/rm -rf /usr/local/lib/libfastcommon.so /usr/local/include/fastcommon 可以参阅CU论坛上的FAQ:http://bbs.chinaunix.net/thread-1920470-1-1.html