- 1 year ago
rtools42 installation: cannot find make
If you are encountering an error stating that make
cannot be found during the installation of Rtools42, it indicates that the make
utility is not installed or not properly configured on your system. make
is a build tool that is required for compiling and building software packages.
To resolve this issue, you can follow these steps:
Verify Rtools42 installation: Ensure that you have downloaded and installed the correct version of Rtools42 that matches your R installation. You can download Rtools42 from the official Rtools website (https://cran.r-project.org/bin/windows/Rtools/).
Check the PATH environment variable: Confirm that the directory containing the
make
executable is included in the PATH environment variable. Themake
utility is typically located in theusr/bin
directory of your Rtools42 installation.- Open a Command Prompt or PowerShell with administrative privileges.
- Run the following command to check if
make
is accessible:bashmake --version
- If the command doesn't work, proceed to the next step.
Add Rtools42 directory to the PATH:
- Determine the installation path of Rtools42 (e.g.,
C:\Rtools42
). - Open the System Properties dialog by pressing the Windows key + Pause/Break, or by right-clicking "This PC" and selecting "Properties."
- Click on "Advanced system settings" and then the "Environment Variables" button.
- In the "System variables" section, find the "Path" variable and click the "Edit" button.
- Add the path to the Rtools42
usr/bin
directory (e.g.,C:\Rtools42\usr\bin
) to the list of paths. - Click "OK" to save the changes.
- Determine the installation path of Rtools42 (e.g.,
Test
make
command: Close and reopen the Command Prompt or PowerShell window, and run the following command to check ifmake
is now accessible:bashmake --version
If you followed these steps successfully, the make
utility should now be accessible, and you should be able to proceed with the installation or build process that requires Rtools42.