buaazp / zimg

A lightweight and high performance image storage and processing system.
http://zimg.buaa.us
BSD 3-Clause "New" or "Revised" License
2.69k stars 402 forks source link

执行make:错误:libmemcached/memcached.h:没有那个文件或目录 #153

Closed Jimjipeng closed 7 years ago

Jimjipeng commented 8 years ago

[ 5%] Building C object CMakeFiles/zimg.dir/zscale.c.o 在包含自 /opt/xjp-zimg/work/zimg/src/zlog.h:25 的文件中, 从 /opt/xjp-zimg/work/zimg/src/zscale.c:27: /opt/xjp-zimg/work/zimg/src/zcommon.h:28:36: 错误:libmemcached/memcached.h:没有那个文件或目录 In file included from /opt/xjp-zimg/work/zimg/src/zlog.h:25, from /opt/xjp-zimg/work/zimg/src/zscale.c:27: /opt/xjp-zimg/work/zimg/src/zcommon.h:48: 错误:expected specifier-qualifier-list before ‘memcached_st’ make[3]: * [CMakeFiles/zimg.dir/zscale.c.o] 错误 1 make[3]: Leaving directory /opt/xjp-zimg/work/zimg/build/zimg' make[2]: *** [CMakeFiles/zimg.dir/all] 错误 2 make[2]: Leaving directory/opt/xjp-zimg/work/zimg/build/zimg' make[1]: *\ [all] 错误 2 make[1]: Leaving directory `/opt/xjp-zimg/work/zimg/build/zimg' cp: 无法获取"zimg" 的文件状态(stat): 没有那个文件或目录 make: * [all] 错误 1

buaazp commented 8 years ago

没有装libmemcached-dev吧 官网上有安装文档,仔细看一下

Jimjipeng commented 8 years ago

谢谢了 问题解决了,是libmemcached没有安装上 安装libmemcached时需要这样分开执行以下命令 make make install 而不要make && make install 这样执行