2013-02-11 16 views
0

我正在上安裝OSX 10.7(獅子)取決於Jmagick(和ImageMagick的)現有的Java應用程序,我嘗試安裝jmagick。當我使用命令jmagick做出錯誤

./configure --with-java-home=/System/Library/Frameworks/JavaVM.framework/Versions/Current --with-magick-home=/usr/local/Cellar/imagemagick/6.8.0-10 --with-magick-inc-dir=/usr/local/Cellar/imagemagick/6.8.0-10/include/ImageMagick/ 

我得到的輸出

checking build system type... i686-apple-darwin11.4.2 
checking host system type... i686-apple-darwin11.4.2 
checking target system type... i686-apple-darwin11.4.2 
checking for gcc... gcc 
checking for C compiler default output file name... a.out 
checking whether the C compiler works... yes 
checking whether we are cross compiling... no 
checking for suffix of executables... 
checking for suffix of object files... o 
checking whether we are using the GNU C compiler... yes 
checking whether gcc accepts -g... yes 
checking for gcc option to accept ISO C89... none needed 
checking how to run the C preprocessor... gcc -E 
checking for a BSD-compatible install... /usr/bin/install -c 
checking for getconf... /usr/bin/getconf 
checking whether large file support needs explicit enabling... no 
checking for X... no 
checking for grep that handles long lines and -e... /usr/bin/grep 
checking for egrep... /usr/bin/grep -E 
checking for ANSI C header files... yes 
checking for sys/types.h... yes 
checking for sys/stat.h... yes 
checking for stdlib.h... yes 
checking for string.h... yes 
checking for memory.h... yes 
checking for strings.h... yes 
checking for inttypes.h... yes 
checking for stdint.h... yes 
checking for unistd.h... yes 
checking jni.h usability... yes 
checking jni.h presence... yes 
checking for jni.h... yes 
checking for java... /usr/bin/java 
checking for javac... /usr/bin/javac 
checking for javah... /usr/bin/javah 
checking for jar... /usr/bin/jar 
checking for javadoc... /usr/bin/javadoc 
checking for MagickCore-config... /usr/local/Cellar/imagemagick/6.8.0-10/bin/MagickCore-config 
/usr/local/Cellar/imagemagick/6.8.0-10/bin/MagickCore-config: line 50: pkg-config: command not found 
/usr/local/Cellar/imagemagick/6.8.0-10/bin/MagickCore-config: line 53: pkg-config: command not found 
/usr/local/Cellar/imagemagick/6.8.0-10/bin/MagickCore-config: line 47: pkg-config: command not found 
checking magick/api.h usability... yes 
checking magick/api.h presence... yes 
checking for magick/api.h... yes 
checking for ConstituteImage in -lMagick... no 
checking for a sed that does not truncate output... /usr/bin/sed 
checking for ld used by gcc... /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld 
checking if the linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) is GNU ld... no 
checking for /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld option to reload object files... -r 
checking for BSD-compatible nm... /usr/bin/nm 
checking whether ln -s works... yes 
checking how to recognise dependent libraries... pass_all 
checking dlfcn.h usability... yes 
checking dlfcn.h presence... yes 
checking for dlfcn.h... yes 
checking for g++... g++ 
checking whether we are using the GNU C++ compiler... yes 
checking whether g++ accepts -g... yes 
checking how to run the C++ preprocessor... g++ -E 
checking for g77... no 
checking for xlf... no 
checking for f77... no 
checking for frt... no 
checking for pgf77... no 
checking for cf77... no 
checking for fort77... no 
checking for fl32... no 
checking for af77... no 
checking for xlf90... no 
checking for f90... no 
checking for pgf90... no 
checking for pghpf... no 
checking for epcf90... no 
checking for gfortran... no 
checking for g95... no 
checking for xlf95... no 
checking for f95... no 
checking for fort... no 
checking for ifort... no 
checking for ifc... no 
checking for efc... no 
checking for pgf95... no 
checking for lf95... no 
checking for ftn... no 
checking whether we are using the GNU Fortran 77 compiler... no 
checking whether accepts -g... no 
checking the maximum length of command line arguments... 196608 
checking command to parse /usr/bin/nm output from gcc object... ok 
checking for objdir... .libs 
checking for ar... ar 
checking for ranlib... ranlib 
checking for strip... strip 
checking if gcc static flag works... yes 
checking if gcc supports -fno-rtti -fno-exceptions... no 
checking for gcc option to produce PIC... -fno-common 
checking if gcc PIC flag -fno-common works... yes 
checking if gcc supports -c -o file.o... yes 
checking whether the gcc linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) supports shared libraries... yes 
checking dynamic linker characteristics... darwin11.4.2 dyld 
checking how to hardcode library paths into programs... immediate 
checking whether stripping libraries is possible... yes 
checking if libtool supports shared libraries... yes 
checking whether to build shared libraries... yes 
checking whether to build static libraries... no 
configure: creating libtool 
appending configuration tag "CXX" to libtool 
rm: conftest.dSYM: is a directory 
checking for ld used by g++... /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld 
checking if the linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) is GNU ld... no 
checking whether the g++ linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) supports shared libraries... yes 
checking for g++ option to produce PIC... -fno-common 
checking if g++ PIC flag -fno-common works... rm: conftest.dSYM: is a directory 
yes 
checking if g++ supports -c -o file.o... rm: conftest.dSYM: is a directory 
yes 
checking whether the g++ linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) supports shared libraries... yes 
checking dynamic linker characteristics... darwin11.4.2 dyld 
checking how to hardcode library paths into programs... immediate 
checking whether stripping libraries is possible... yes 
appending configuration tag "F77" to libtool 
configure: creating ./config.status 
config.status: creating Make.def 

然後我嘗試

sudo make all 

,並得到錯誤

make[1]: Entering directory `/Users/olegsuzaev/jmagick-6.4.0/src'make[2]: Entering directory `/Users/olegsuzaev/jmagick-6.4.0/src/magick'../../Make.rules:175: *** missing separator. Stop. 
make[2]: Leaving directory `/Users/olegsuzaev/jmagick-6.4.0/src/magick' 
make[1]: *** [dir_target] Error 2 
make[1]: Leaving directory `/Users/olegsuzaev/jmagick-6.4.0/src' 
make: *** [dir_target] Error 2 

回答

7

線175和製作的176 .rules文件,林的開頭有4個空格e而不是選項卡 - 用選項卡替換空格,並使成功。