Skip to content

Commit e20aeda

Browse files
r-otakafujii
authored andcommitted
add more information for winget (eg. path settings)
1 parent 1c4bf95 commit e20aeda

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docs/Ports/WindowsPort.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ It supports only 64 bit Windows.
99

1010
Install [the latest Visual Studio with "Desktop development with C++" workload](https://learn.microsoft.com/en-us/cpp/build/vscpp-step-0-installation).
1111

12-
Install CMake, Perl, Python, Ruby, gperf, LLVM, and Ninja.
12+
Install CMake, Perl, Python, Ruby, gperf \([GnuWin32 Gperf](https://gnuwin32.sourceforge.net/packages/gperf.htm)\), LLVM, and Ninja.
1313
Python 3.12 has [a problem for WebKit at the moment](https://webkit.org/b/261113). Use Python 3.11.
1414

1515
You can use [Chocolatey](https://community.chocolatey.org/) to install the tools.
@@ -43,6 +43,10 @@ winget install --scope=machine --id Git.Git Kitware.CMake Ninja-build.Ninja Pyth
4343

4444
If `--scope=machine` isn't specified, Python is installed under your user profile directory.
4545

46+
If you failed to install or find `GnuWin32.Gperf`, you can install manually to execute installation executable file.
47+
48+
winget may not append the path into your PC.
49+
If an error occered, please check your path settings, including LLVM and GnuWin32(Gperf).
4650

4751
## WebKit command prompt
4852

@@ -163,12 +167,20 @@ net stop apache2.4
163167

164168
Some extensions need to be registered as CGI. Modify the following commands for your Perl and Python paths, and run them as administrator.
165169

170+
An example using **Chocolatey**
166171
```
167172
reg add HKEY_CLASSES_ROOT\.pl\Shell\ExecCGI\Command /ve /d "c:\xampp\perl\bin\perl.exe -T"
168173
reg add HKEY_CLASSES_ROOT\.cgi\Shell\ExecCGI\Command /ve /d "c:\xampp\perl\bin\perl.exe -T"
169174
reg add HKEY_CLASSES_ROOT\.py\Shell\ExecCGI\Command /ve /d "c:\Python311\python.exe -X utf8"
170175
```
171176

177+
An example using **WinGet**
178+
```
179+
reg add HKEY_CLASSES_ROOT\.pl\Shell\ExecCGI\Command /ve /d "c:\xampp\perl\bin\perl.exe -T"
180+
reg add HKEY_CLASSES_ROOT\.cgi\Shell\ExecCGI\Command /ve /d "c:\xampp\perl\bin\perl.exe -T"
181+
reg add HKEY_CLASSES_ROOT\.py\Shell\ExecCGI\Command /ve /d "\`"C:\Program Files\Python311\python.exe\`" -X utf8"
182+
```
183+
172184
You need openssl.exe in your PATH to run wpt server.
173185
XAMPP contains openssl.exe in C:\xampp\apache\bin directory. Append the directory to your PATH.
174186

0 commit comments

Comments
 (0)