2010-03-22 6 views
3

Lingua::Lid을 유닉스 시스템 (우분투, 최신 버전)에 설치하려고합니다. 당연히 나는 뿌리이다. 내가 perl Makefile.PL 내가이 바보 같은 오류 얻을 사용하여 설치 패키지로 갈 때 : 아무것도 변경되지 않습니다,Perl의 Lingua :: Lid는 어떻게 설치합니까?

[[email protected] Lingua-Lid-0.01]# perl Makefile.PL 
/opt/ls//lib does not exist at Makefile.PL line 48. 

I 라인 (48)의 경로와 함께 연주 시도를 여기에 48 ~ 50 보이는 줄 것입니다 같은 :

이제

$BASE = "/opt/ls/"   if ($^O eq "linux" or $^O eq "solaris"); 
$BASE = "/usr/local/"  if ($^O eq "freebsd"); 
$BASE = $ENV{LID_BASE_DIR} if (defined $ENV{LID_BASE_DIR}); 

난이 (내 기준)과 같이 간단하게 쓰기를 시도하고있는 펄 프로그램 :

Line 48: die "$BASE/lib does not exist"  unless -d "$BASE/lib"; 
Line 49: die "$BASE/include does not exist" unless -d "$BASE/include"; 
Line 50: die "lid.h is missing in $BASE/include" unless -e "$BASE/includ/lid.h";

변수 $ BASE이로 선언 내가 CPAN에서이 insalling 시도

[[email protected] assign4]# ./perl_parser_1.pl

Can't locate Lingua/LinkParser.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl .) at ./perl_parser_1.pl line 3. BEGIN failed--compilation aborted at ./perl_parser_1.pl line 3.

, 여전히 제대로 작동하지 않습니다 :이 링구아을 사용하려고 실행하면

#!/usr/bin/perl 
use Lingua::LinkParser; 
use strict; 
print "Hello world!\n"; 

, 여기 내 오류입니다. Lingua::LinkParser을 구축 할 때 문제가 시작되는 다음

+2

CPAN에서 Lingua :: LinkParser를 설치하려고하면 어떤 오류가 발생합니까? – zigdon

+1

CPAN 테스터에 따르면 통과 테스트가 없습니다. 버그 보고서도 있습니다. 그래서, 나는 user299306이 다른 사람들과 같은 문제를 안고 있다고 생각한다. – toolic

답변

4

은 다음과 같습니다

LinkParser.xs:5:27: error: link-includes.h: No such file or directory

내가 먼저 Link Grammar를 설치할 필요가 있다고 생각합니다. 당신이 중 하나가 Link Grammar이 시스템에 설치되어 있지 않거나 그것이

# 'LIBS' => "-L/dbrian/link-grammar-4.4.3/link-grammar/.libs/ -llink-grammar", 
# 'INC' => "-I/dbrian/link-grammar-4.4.3/link-grammar/" 

(매우 간접적으로) 의미 :

당신이 분배와 함께 제공되는 Makefile.PL 보면, 다음과 같은 코멘트를 볼 수 있습니다 비표준 위치에 설치됩니다. 설치되어 있지 않으면 먼저 설치하십시오. 설치되어있는 경우 INCLIBS의 올바른 위치를 지정하십시오. README 상태로

:

Before you build this package, it is highly recommended that you install the link parser package with make install , which will put the libs, headers, and dictionary files in standard locations. This build no longer prompts for package directories, so if you want to build with non-standard locations, you'll need to edit Makefile.PL to make that happen. In particular, pay attention to the INCLUDE parameter.

관련 문제