By user3235290


2016-08-09 14:59:45 8 Comments

When following the openDDS install guide I attempt to run configure from within the command prompt but receive this output:

C:\Users\Supervisor\Desktop\opendds>C:\Users\Supervisor\Desktop\opendds\configure.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.

This error relates to this section of code within the perl script (as seen by the line number):

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";
    }
}

What compiler does it want? I have gcc and make working - they are on the system path.

1 comments

@Jean-François Fabre 2016-08-09 16:33:52

I suppose that windows does not list gcc as a naturally installed compiler.

On linux it would have worked right away.

So just add --compiler=gcc if gcc is in the path, it should work.

Related Questions

Sponsored Content

7 Answered Questions

[SOLVED] Why does modern Perl avoid UTF-8 by default?

  • 2011-05-28 15:12:36
  • w.k
  • 97987 View
  • 554 Score
  • 7 Answer
  • Tags:   perl unicode utf-8

36 Answered Questions

[SOLVED] How to fix a locale setting warning from Perl?

  • 2010-03-23 12:27:18
  • xain
  • 493182 View
  • 558 Score
  • 36 Answer
  • Tags:   perl locale

2 Answered Questions

[SOLVED] Configuring OpenDDS

  • 2018-05-17 22:10:19
  • Leon Teng
  • 496 View
  • 2 Score
  • 2 Answer
  • Tags:   perl gcc opendds

2 Answered Questions

How can I configure the OpenDDS 3.13 with VS2017 community?

1 Answered Questions

OpenDDS Perl Script Setup Throwing Error

  • 2016-08-11 08:34:09
  • user3235290
  • 449 View
  • 0 Score
  • 1 Answer
  • Tags:   perl mpc opendds

11 Answered Questions

[SOLVED] Find size of an array in Perl

  • 2011-09-13 18:40:47
  • David
  • 560941 View
  • 235 Score
  • 11 Answer
  • Tags:   perl

4 Answered Questions

1 Answered Questions

[SOLVED] Execute a C++ program and copy the cmd output using Perl

1 Answered Questions

[SOLVED] Counting lost packets with perl

  • 2013-08-13 09:34:52
  • user1977061
  • 148 View
  • 2 Score
  • 1 Answer
  • Tags:   perl counter packet

1 Answered Questions

[SOLVED] How to successfully run Perl script with setuid() when used as cgi-bin?

Sponsored Content