2014-12-28 3 views
5

Cygwin을 사용하여 CPAN GD 모듈을 2 일 동안 설치하지 못하는 이유를 해결하려고했습니다. 어떤 도움이라도 대단히 감사합니다. 감사!Cygwin을 사용하여 CPAN GD 모듈을 설치하지 못했습니다.

 
cpan install GD 
Going to read '/home/xxxxxxxxxx/.cpan/Metadata' 
    Database was generated on Sat, 27 Dec 2014 12:17:02 GMT 
Running install for module 'GD' 
Running make for L/LD/LDS/GD-2.56.tar.gz 
Checksum for /home/xxxxxxxxxx/.cpan/sources/authors/id/L/LD/LDS/GD-2.56.tar.gz ok 

    CPAN.pm: Going to build L/LD/LDS/GD-2.56.tar.gz 

Configuring for libgd version 2.1.0. 
Checking for stray libgd header files... 

** WARNING: found gd.h header file in /usr/include/gd.h, but it is expected at /usr/local/include/gd.h. This may cause compile errors! ** 


** WARNING: found gd.h header file in /usr/include/gd.h, but it is expected at /usr/local/include/gd.h. This may cause compile errors! ** 
** Possible problems found ** 

Included Features:   GD_JPEG GD_GIF GD_GIFANIM GD_OPENPOLYGON 
GD library used from:  /usr/local 
Created MYMETA.yml and MYMETA.json 
Creating new 'Build' script for 'GD' version '2.56' 
Building GD 
Extracting Image.pm (with variable substitutions) 
gcc -I/usr/local/include -I/usr/lib/perl5/5.14/x86_64-cygwin-threads/CORE -DXS_VERSION="2.56" -DVERSION="2.56" -DHAVE_JPEG -DHAVE_GIF -c -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing -pipe -fstack-protector -O3 -o lib/GD.o lib/GD.c 
ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/GD/GD.bs') 
g++ --shared -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,--enable-auto-image-base -fstack-protector -o blib/arch/auto/GD/GD.dll lib/GD.o /usr/lib/perl5/5.14/x86_64-cygwin-threads/CORE/libperl.dll.a -L/usr/local/lib -ljpeg -lz -lgd 
lib/GD.o:GD.c:(.text+0xd1b): undefined reference to `gdImageCreateFromGd2Ptr' 
lib/GD.o:GD.c:(.text+0xd1b): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `gdImageCreateFromGd2Ptr' 
lib/GD.o:GD.c:(.text+0xeec): undefined reference to `gdImageCreateFromGd2Ptr' 
lib/GD.o:GD.c:(.text+0xeec): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `gdImageCreateFromGd2Ptr' 
lib/GD.o:GD.c:(.text+0x1bfc): undefined reference to `gdImageCreateFromGd2Part' 
lib/GD.o:GD.c:(.text+0x1bfc): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `gdImageCreateFromGd2Part' 
lib/GD.o:GD.c:(.text+0x39b8): undefined reference to `gdImageGd2Ptr' 
lib/GD.o:GD.c:(.text+0x39b8): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `gdImageGd2Ptr' 
lib/GD.o:GD.c:(.text+0x3c16): undefined reference to `gdImageGd2Ptr' 
lib/GD.o:GD.c:(.text+0x3c16): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `gdImageGd2Ptr' 
lib/GD.o:GD.c:(.text+0x3e4f): undefined reference to `gdImageJpegPtr' 
lib/GD.o:GD.c:(.text+0x3e4f): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `gdImageJpegPtr' 
lib/GD.o:GD.c:(.text+0x11ec9): undefined reference to `gdImageCreateFromJpeg' 
lib/GD.o:GD.c:(.text+0x11ec9): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `gdImageCreateFromJpeg' 
lib/GD.o:GD.c:(.text+0x12175): undefined reference to `gdImageCreateFromJpegCtx' 
lib/GD.o:GD.c:(.text+0x12175): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `gdImageCreateFromJpegCtx' 
collect2: error: ld returned 1 exit status 
error building blib/arch/auto/GD/GD.dll from lib/GD.o at /usr/lib/perl5/5.14/ExtUtils/CBuilder/Base.pm line 310. 
    LDS/GD-2.56.tar.gz 
    ./Build -- NOT OK 
Running Build test 
    Can't test without successful make 
Running Build install 
    Make had returned bad status, install seems impossible 

make -v 
GNU Make 4.0 
Built for x86_64-pc-cygwin 
Copyright (C) 1988-2013 Free Software Foundation, Inc. 
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it. 
There is NO WARRANTY, to the extent permitted by law. 
+0

귀하의 이름은 모두 출력되므로 원하지 않는 경우 텍스트 편집기의 검색 기능을 사용하여 이름을 'me'로 바꾸고 게시물을 수정하십시오. – 7stud

+0

많은 Unix 버전에서 GD 2.56과 관련된 몇 가지 문제점이있는 것으로 보입니다 - https://rt.cpan.org/Public/Dist/Display.html?Name=GD –

+0

Thanks, 7stud, post가 편집되었습니다. Len Jaffe, 링크에 감사드립니다. 나는 아직도 문제를 이해할 수 없다. 아! – eb0906

답변

0

두 버전의 GD 라이브러리가 설치되어 있다고 생각합니다. 하나는 /usr이고 하나는 /usr/local입니다. /usr의 헤더 파일과 /usr/local의 공유 라이브러리를 사용하고 있습니다. 힌트는 이것이다.

** WARNING: found gd.h header file in /usr/include/gd.h, but it is expected at /usr/local/include/gd.h. This may cause compile errors! ** 

아마도 GD 런타임 (공유 라이브러리) 만 /usr/local에 설치되어있을 것입니다. 필사적으로 GD.pm은 기본 위치 인 /usr에서 헤더를 가져옵니다.

/usr/local에있는 libgd의 모든 부분을 제거하고 libgd3libgd-devel Cygwin 패키지를 모두 설치해보십시오. 특히 which gdlib-config/usr/bin/gdlib-config을 가리키는 지 확인하십시오.

관련 문제