2016-08-09 4 views
1

ことopenDDSがinstall guide私は、コマンドプロンプト内からconfigureを実行しますが、この出力を受け取るようにしよう、次のとき。perlスクリプトにコンパイラのパスがない - どのコンパイラですか?</p> <p>C:ユーザーは、Supervisor デスクトップ opendds> Cを:ユーザーは、Supervisor デスクトップ opendds のconfigure

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. 

このエラーはperlスクリプト内のコードのこのセクションに関連しますか?私はgccmakeが働いています - それらはシステムパス上にあります。

+4

'--compiler = gcc'を追加するだけで、動作するはずです –

+1

ビンゴ、ありがとうございます。答えとして投稿してもらえますか?私が受け入れるでしょう。そうでなければ、〜1日で質問を終わらせるために私は自分自身に答えるでしょう。 – user3235290

+1

最初の指示:「お使いの環境には、 Visual Studio、 Perl」があります。 – ikegami

答えて

3

私は、Windowsが自然にインストールされたコンパイラとしてgccをリストしないと仮定します。

Linuxではすぐに機能していました。

したがって、--compiler=gccを追加すると、gccがパスに含まれていれば動作するはずです。

+0

ありがとうございます。出来た。 –

関連する問題