Windows build instructions documentation. (#6956)

Windows build instructions.
This commit is contained in:
Samuel Williams 2023-01-21 03:13:16 -08:00 committed by GitHub
parent 5cdf312d2c
commit 3e7fdf2953
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
Notes: git 2023-01-21 11:13:35 +00:00
Merged-By: ioquatix <samuel@codeotaku.com>

42
doc/windows.md Normal file
View File

@ -0,0 +1,42 @@
# Windows
## Building Ruby
The easiest build environment is just a standard [RubyInstaller-Devkit installation](https://rubyinstaller.org/) and [git-for-windows](https://gitforwindows.org/). You might like to use [VSCode](https://code.visualstudio.com/) as an editor.
Ruby core development can be done either in Windows `cmd` like:
```
ridk enable ucrt64
pacman -S --needed bison %MINGW_PACKAGE_PREFIX%-openssl %MINGW_PACKAGE_PREFIX%-libyaml %MINGW_PACKAGE_PREFIX%-readline
cd c:\
mkdir work
cd work
git clone https://github.com/ruby/ruby
cd c:\work\ruby
sh autogen.sh
sh configure -C --disable-install-doc
make
```
or in MSYS2 `bash` like:
```
ridk enable ucrt64
bash
pacman -S --needed bison $MINGW_PACKAGE_PREFIX-openssl $MINGW_PACKAGE_PREFIX-libyaml $MINGW_PACKAGE_PREFIX-readline
cd /c/
mkdir work
cd work
git clone https://github.com/ruby/ruby
cd ruby
./autogen.sh
./configure -C --disable-install-doc
make
```