- 1 year ago
Can't build 32-bit Perl on 64-bit Windows
Building a 32-bit version of Perl on a 64-bit Windows system requires a few additional steps to ensure the appropriate toolchain and settings are used. Here's a general approach to building 32-bit Perl on a 64-bit Windows system:
Install 32-bit Compiler: Make sure you have a 32-bit version of the compiler installed. The recommended compiler for building Perl on Windows is Strawberry Perl, which includes a 32-bit version of GCC.
Download Perl Source Code: Obtain the source code of the Perl version you want to build. You can download the Perl source code from the official Perl website or a Perl distribution's repository.
Configure Build Settings: Open a command prompt and navigate to the directory where you extracted the Perl source code. Run the following command to configure the build settings for a 32-bit build:
shellperl Configure -de -Duse64bitall
The
-Duse64bitall
flag specifies that the 64-bit integer support should be disabled.Build Perl: Run the following command to build Perl:
shelldmake
This command will start the build process. It may take some time to complete.
Test Perl: After the build process finishes, run the Perl test suite to ensure everything built correctly. Execute the following command:
shelldmake test
This command will run the test suite and provide feedback on the build.
Install Perl: If the test suite passes successfully, you can proceed to install Perl by running:
shelldmake install
This command will install Perl on your system.
By following these steps, you should be able to build a 32-bit version of Perl on your 64-bit Windows system. Note that the exact steps may vary depending on the Perl version and the compiler you are using. It's recommended to refer to the documentation and build instructions specific to the Perl version you are working with.