summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-02-13 14:17:58 +0900
committerGitHub <[email protected]>2021-02-13 14:17:58 +0900
commitacdd939d80641e6683b5a2ae575f8e614c36890b (patch)
treebcc3b9a11cb49845bf9c75d85b6e101a703d3001
parent94fb86f89b131814201596d301f584dfe4547526 (diff)
parentd470163b22f71095b1cbaa040315ca2dacf3c8d5 (diff)
downloadmruby-acdd939d80641e6683b5a2ae575f8e614c36890b.tar.gz
mruby-acdd939d80641e6683b5a2ae575f8e614c36890b.zip
Merge pull request #5339 from shuujii/update-compile-prerequisites-in-doc-guides-compile.md
Update compile prerequisites in `doc/guides/compile.md` [ci skip]
-rw-r--r--doc/guides/compile.md14
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/guides/compile.md b/doc/guides/compile.md
index d2b58c48c..eba0c87ff 100644
--- a/doc/guides/compile.md
+++ b/doc/guides/compile.md
@@ -10,19 +10,20 @@ To compile mruby out of the source code you need the following tools:
* C Compiler (e.g. `gcc` or `clang`)
* Linker (e.g. `gcc` or `clang`)
* Archive utility (e.g. `ar`)
-* Parser generator (`bison`)
* Ruby 2.5 or later (e.g. `ruby` or `jruby`)
+Optional:
+
+* Git (to update mruby source and integrate mrbgems easier)
+* C++ compiler (to use mrbgems which include `*.cpp`, `*.cxx`, `*.cc`)
+* Bison (to compile `mrbgems/mruby-compiler/core/parse.y`)
+* gperf (to compile `mrbgems/mruby-compiler/core/keywords`)
+
Note that `bison` bundled with MacOS is too old to compile `mruby`.
Try `brew install bison` and follow the instruction shown to update
the `$PATH` to compile `mruby`. We also encourage to upgrade `ruby`
on MacOS in similar manner.
-Optional:
-
-* git (to update mruby source and integrate mrbgems easier)
-* C++ compiler (to use GEMs which include \*.cpp, \*.cxx, \*.cc)
-
## Build
To compile `mruby` with the default build configuration, just invoke `rake`
@@ -468,7 +469,6 @@ proceeds like this:
* create binary commands according to binary gems (e.g. `mirb` and `mruby`)
* copy binaries under `build/host/bin` to `bin` directory
-
```
_______________________________________________________________
| Native Compilation for Host System |