Can't Compile PHP 5.6.12 on Windows 10

General Tech Bugs & Fixes 2 years ago

0 1 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

 

I setup a PHP build env as windows.php.net suggests, with php-sdk & the build tools. So I know it's not the enviroment. However, when I attempt to run my script to compile PHP:

call buildconf.bat
call configure.bat !PHP_ARGS! || exit /b
call nmake || exit /b

(rest can be found at github)

This happens

Rebuilding configure.js
Now run 'configure --help'
Saving configure options to config.nice.bat
Checking for cl.exe ...  
  Detected compiler underef="https://forum.tuteehub.com/tag/fine">fined
C:\Users\rylor\Desktop\phc-win\src\depends\php-src\configure.js(2100, 9) Microsoft JScript runtime error: 'length' is null or not an object


Microsoft (R) Program Maintenance Utility Version 14.00.23026.0
Copyright (C) Microsoft Corporation.  All rights reserved.

NMAKE : fatal error U1064: MAKEFILE not found and no target specified
Stop.

I read somewhere that this had something to do with the version of wscript last time this happened. However I found the version to be the one required, and since then have reinstalled a fresh build of Windows 10. What I find interesting is that it works ref="https://forum.tuteehub.com/tag/fine">fine on my desktop running a from Insider Preview build 10240, but not on a release 10240? It didn't work on the IP on this current machine last time.

It's not just 5.6.12, 5.6.6 won't build either.

Any ideas?

EDIT: Yes, I have called vcvarsall.[bat/cmd]

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.