Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Windows build instructions documentation. (#6956)
Windows build instructions.
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
``` |