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.

Related Questions

Sponsored Content

38 Answered Questions

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

  • 2010-03-23 12:27:18
  • xain
  • 523515 View
  • 593 Score
  • 38 Answer
  • Tags:   perl locale

3 Answered Questions

[SOLVED] Configuring OpenDDS

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

7 Answered Questions

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

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

1 Answered Questions

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
  • 506 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
  • 568952 View
  • 241 Score
  • 11 Answer
  • Tags:   perl

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
  • 150 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