diff options
author | 2021-10-01 15:05:34 -0700 | |
---|---|---|
committer | 2021-10-01 15:05:34 -0700 | |
commit | 222027991f65c6520b747b4d3f3be6dec14083ff (patch) | |
tree | 2485466e7ec703d4ea08afdb21c83c229160244c /README.md | |
parent | c8127d0ae6f7e1efa3e514411bc08d21ff22cbdc (diff) | |
download | bun-222027991f65c6520b747b4d3f3be6dec14083ff.tar.gz bun-222027991f65c6520b747b4d3f3be6dec14083ff.tar.zst bun-222027991f65c6520b747b4d3f3be6dec14083ff.zip |
Build stuff
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -598,3 +598,30 @@ zig build -Drelease-fast Note that `brew install zig` won't work. Bun uses a build of Zig with a couple patches. Additionally, you'll need `cmake`, `npm` and `esbuild` installed globally. + +## Linux + +You will need: + +- `clang-12` (clang-13 after next Zig upgrade) +- ruby (JavaScriptCore dependency) + +On Ubuntu: + +``` +sudo apt install libc++-12-dev libc++1-12 libc++abi1-12 build-essential +``` + +If you **do not** have this setup correctly, you will see an error that looks something like this after compiling JavaScriptCore: + +```c +src/javascript/jsc/WebKit/WebKitBuild/Release/WTF/Headers/wtf/FastMalloc.h:23:10: fatal error: 'new' file not found +#include <new> + ^~~~~ +1 error generated. +``` + + +When trying to run `make jsc` (run during `make vendor`), if you get an error complaining about Ruby missing but you have Ruby installed, it might mean your Ruby installation is corrupt. + +Verify that `ruby -v` runs without error.
\ No newline at end of file |