Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Building Boost.Build engine 'cl' is not recognized as an internal or external command, operable program or batch file

Tags:

boost

Can someone tell me why bootstrap.bat failed?

Platform:
Windows 10
Boost boost_1_63_0

C:\Boost\boost_1_63_0>bootstrap.bat
Building Boost.Build engine
'cl' is not recognized as an internal or external command,
operable program or batch file.

Failed to build Boost.Build engine.
Please consult bootstrap.log for further diagnostics.

You can try to obtain a prebuilt binary from

   http://sf.net/project/showfiles.php?group_id=7586&package_id=72941

Also, you can file an issue at http://svn.boost.org
Please attach bootstrap.log in that case.

C:\Boost\boost_1_63_0>
like image 539
Kurt VanderKoi Avatar asked Mar 14 '17 18:03

Kurt VanderKoi


3 Answers

As in my answer found in Build boost with msvc 14.1 ( VS2017 RC)

You need to use Visual Studio 2017's Developer Command Prompt!

It's found in Start - All Programs - Visual Studio 2017 - Visual Studio Tools - Developer Command Prompt for VS 2017

like image 83
manuel saraiva Avatar answered Oct 16 '22 04:10

manuel saraiva


The error says that the compiler is not found. The most likely reasons are:

  • The compiler is not installed or installed in a non-standard path.
  • Your compiler is Visual Studio 2017, which is not supported by Boost 1.63 and can't be found automatically because of the changes made by Microsoft.

If you are using Visual Studio you can try running bootstrap from the compiler command line prompt.

like image 2
Andrey Semashev Avatar answered Oct 16 '22 03:10

Andrey Semashev


I have solved it installing Visual Studio and adding the path C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\bin\Hostx64\x64 to the environment vairlables. Look at this page click here

like image 1
Noe Adrian Acuña Prado Avatar answered Oct 16 '22 02:10

Noe Adrian Acuña Prado