1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[DOC] Properly number the list in building_ruby.md

This commit is contained in:
Peter Zhu 2022-11-07 19:47:12 -05:00
parent cb2323a983
commit 7456647eff

View file

@ -10,7 +10,7 @@
* gperf - 3.0.3 or later * gperf - 3.0.3 or later
* ruby - 2.7 or later * ruby - 2.7 or later
1. Install optional, recommended dependencies: 2. Install optional, recommended dependencies:
* OpenSSL/LibreSSL * OpenSSL/LibreSSL
* readline/editline (libedit) * readline/editline (libedit)
@ -20,19 +20,19 @@
* libexecinfo (FreeBSD) * libexecinfo (FreeBSD)
* rustc - 1.58.1 or later (if you wish to build [YJIT](/doc/yjit/yjit.md)) * rustc - 1.58.1 or later (if you wish to build [YJIT](/doc/yjit/yjit.md))
1. Checkout the CRuby source code: 3. Checkout the CRuby source code:
``` ```
git clone https://github.com/ruby/ruby.git git clone https://github.com/ruby/ruby.git
``` ```
1. Generate the configure file: 4. Generate the configure file:
``` ```
./autogen.sh ./autogen.sh
``` ```
1. Create a `build` directory outside of the source directory: 5. Create a `build` directory outside of the source directory:
``` ```
mkdir build && cd build mkdir build && cd build
@ -40,13 +40,13 @@
While it's not necessary to build in a separate directory, it's good practice to do so. While it's not necessary to build in a separate directory, it's good practice to do so.
1. We'll install Ruby in `~/.rubies/ruby-master`, so create the directory: 6. We'll install Ruby in `~/.rubies/ruby-master`, so create the directory:
``` ```
mkdir ~/.rubies mkdir ~/.rubies
``` ```
1. Run configure: 7. Run configure:
``` ```
../configure --prefix="${HOME}/.rubies/ruby-master" ../configure --prefix="${HOME}/.rubies/ruby-master"
@ -54,7 +54,7 @@
- If you are frequently building Ruby, add the `--disable-install-doc` flag to not build documentation which will speed up the build process. - If you are frequently building Ruby, add the `--disable-install-doc` flag to not build documentation which will speed up the build process.
1. Build Ruby: 8. Build Ruby:
``` ```
make install make install
@ -77,7 +77,7 @@
Remember to delete your `build` directory and start again from the configure step. Remember to delete your `build` directory and start again from the configure step.
6. [Run tests](testing_ruby.md) to confirm your build succeeded. 9. [Run tests](testing_ruby.md) to confirm your build succeeded.
### Unexplainable Build Errors ### Unexplainable Build Errors