summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2023-01-21 03:13:16 -0800
committerGitHub <noreply@github.com>2023-01-22 00:13:16 +1300
commit3e7fdf29532333667271f01fff84c10ec80822e1 (patch)
treec259fb6fdcc16f9befec7b88cc3b6e128559c614 /doc
parent5cdf312d2cc7465fb7f5c36b01f868f059b69ac3 (diff)
Windows build instructions documentation. (#6956)
Windows build instructions.
Notes
Notes: Merged-By: ioquatix <samuel@codeotaku.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/windows.md42
1 files changed, 42 insertions, 0 deletions
diff --git a/doc/windows.md b/doc/windows.md
new file mode 100644
index 0000000000..b86eb56a8d
--- /dev/null
+++ b/doc/windows.md
@@ -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
+```