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

Install Error #128

Closed birdxiao closed 8 years ago

birdxiao commented 8 years ago

安装环境:ubuntu 14.04 LTS 按文档要求安装并成功安装了以下依赖:openssl cmake libevent-dev libjpeg-dev libgif-dev libpng-dev libwebp-dev libmagickcore5 libmagickwand5 libmemcached-dev,版本要求也正确。

但还是报以下错误,多次尝试无果

来自:build/zimg/CMakeFiles/CMakeError.log

  1 Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
  2 Compiler: CMAKE_CXX_COMPILER-NOTFOUND
  3 Build flags:
  4 Id flags:
  5 
  6 The output was:
  7 No such file or directory
  8 
  9 
 10 Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
 11 Compiler: CMAKE_CXX_COMPILER-NOTFOUND
 12 Build flags:
 13 Id flags: -c
 14 
 15 The output was:
 16 No such file or directory
 17 
 18 
 19 Checking whether the CXX compiler is IAR using "" did not match "IAR .+ Compiler":

来之make 构建时

make[2]: Leaving directory `/home/xsmallbird/Sites/zimg/deps/LuaJIT-2.0.3/src'
==== Successfully built LuaJIT 2.0.3 ====
make[1]: Leaving directory `/home/xsmallbird/Sites/zimg/deps/LuaJIT-2.0.3'
mkdir -p build/zimg
cd build/zimg; cmake /home/xsmallbird/Sites/zimg/src; make; cp zimg /home/xsmallbird/Sites/zimg/bin
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
-- Found LibEvent: /usr/lib/x86_64-linux-gnu/libevent.so  
-- Found LibEventPthreads: /usr/lib/x86_64-linux-gnu/libevent_pthreads.so  
-- Found LibEventCore: /usr/lib/x86_64-linux-gnu/libevent_core.so  
-- Found LibEventExtra: /usr/lib/x86_64-linux-gnu/libevent_extra.so  
-- Found LibEventOpenssl: /usr/lib/x86_64-linux-gnu/libevent_openssl.so  
-- Found Libmemcached: /usr/lib/x86_64-linux-gnu/libmemcached.so  
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find ImageMagick (missing: ImageMagick_MagickCore_LIBRARY)
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-2.8/Modules/FindImageMagick.cmake:208 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:70 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/xsmallbird/Sites/zimg/build/zimg/CMakeFiles/CMakeOutput.log".
See also "/home/xsmallbird/Sites/zimg/build/zimg/CMakeFiles/CMakeError.log".
make[1]: Entering directory `/home/xsmallbird/Sites/zimg/build/zimg'
make[1]: *** No targets specified and no makefile found.  Stop.
make[1]: Leaving directory `/home/xsmallbird/Sites/zimg/build/zimg'
cp: cannot stat ‘zimg’: No such file or directory
make: *** [all] Error 1

实在找不出问题所在,故而求之help me。thx

buaazp commented 8 years ago

系统apt里带的imagemagick套件改名了,文档还没来得及更新,你试试这个命令安装依赖:

sudo apt-get install -y build-essential openssl cmake libevent-dev libjpeg-dev libgif-dev libpng-dev libwebp-dev libmagickwand-dev libmemcached-dev libssl-dev
birdxiao commented 8 years ago

恩恩,问题解决了!不知是否需要个界面,我可以做?

buaazp commented 8 years ago

什么界面?

birdxiao commented 8 years ago

上传图片的界面啊

buaazp commented 8 years ago

这个可以有!

birdxiao commented 8 years ago

好好好,那我搞一个!