2016-08-09 16 views
1

하면 openDDS가 install guide 내가 명령 프롬프트 내에서 configure을 실행하지만,이 출력을 수신하려고 다음과 같은합니다.펄 스크립트는 컴파일러를위한 경로가 부족합니다 - 어떤 컴파일러입니까?</p> <p>C : 사용자는 관리자 바탕 화면 opendds> C를 : 사용자는 관리자 바탕 화면 opendds 구성

if ($opts{'compiler'}) { 
    my $standard = 0; 
    for my $stdcomp (@{$platforminfo{$opts{'host'}}->{'compilers'}}) { 
     $standard = 1 if $opts{'compiler'} eq $stdcomp; 
    } 
    $opts{'nonstdcompiler'} = 1 unless $standard; 
} 
else { 
    print "Auto-detecting compiler\n" if $opts{'verbose'}; 
    for my $stdcomp (@{$platforminfo{$opts{'host'}}->{'compilers'}}) { 
     my $path = which($stdcomp); 
     if ($path) { 
      print "Found $stdcomp at: $path\n" if $opts{'verbose'}; 
      $opts{'compiler'} = $stdcomp; 
      last; 
     } 
    } 
    if (!defined $opts{'compiler'}) { 
     die "Can't find a compiler, set PATH or run this script with the ". 
     "--compiler option.\n" . ($slash eq '\\' ? " For Microsoft Visual C++, ". 
     "run this script from the Visual Studio ". 
     "Command Prompt.\n" : '') . "Stopped"; 
    } 
} 

는 무엇 컴파일러를 원하는가 : (줄 번호와 같이) cmd를

Can't find a compiler, set PATH or run this script with the --compiler option. 
For Microsoft Visual C++, run this script from the Visual Studio Command Prompt. 
Stopped at configure line 336. 

이 오류는 펄 스크립트 내에서이 부분의 코드 관련? 내가 gccmake을 가지고있다 - 그들은 시스템 경로에있다.

+4

그냥'--compiler = gcc'를 추가하면 작동합니다. –

+1

빙고, 고마워요. 자유롭게 대답으로 게시하고 받아 들일 것입니다. 그렇지 않으면 ~ 1 일 안에 질문을 끝내기 위해 스스로 답할 것입니다. – user3235290

+1

첫 번째 지침 : "사용자 환경에 다음이 있는지 확인하십시오. Visual Studio, Perl" – ikegami

답변

3

Windows가 자연스럽게 설치된 컴파일러로 gcc을 나열하지 않는다고 가정합니다.

리눅스에서는 곧바로 작동했을 것입니다.

경로에 gcc이있는 경우 --compiler=gcc을 추가하면 제대로 작동합니다.

+0

감사합니다. 그것은 효과가 있었다. –