diff options
author | 2023-07-08 02:24:07 +0300 | |
---|---|---|
committer | 2023-07-07 16:24:07 -0700 | |
commit | 42eacaf3a9344355adb448fb83e9127c2c87e00d (patch) | |
tree | 0d7c27357dc9921b763e28bfe11c64a8aba2e179 | |
parent | c0cf7b4501efe579f0cbd6c2118c00df2ebc6a13 (diff) | |
download | bun-42eacaf3a9344355adb448fb83e9127c2c87e00d.tar.gz bun-42eacaf3a9344355adb448fb83e9127c2c87e00d.tar.zst bun-42eacaf3a9344355adb448fb83e9127c2c87e00d.zip |
Update installation guide in `development.md` (#3532)
* Update installation guide in `development.md`
* Updates
---------
Co-authored-by: Colin McDonnell <colinmcd94@gmail.com>
-rw-r--r-- | docs/project/development.md | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/docs/project/development.md b/docs/project/development.md index e50f53215..93327824f 100644 --- a/docs/project/development.md +++ b/docs/project/development.md @@ -41,9 +41,7 @@ $ brew install llvm@15 ``` ```bash#Ubuntu/Debian -# On Ubuntu 22.04 and newer, LLVM 15 is available in the default repositories -$ sudo apt install llvm-15 lld-15 clang-15 -# On older versions, +$ # LLVM has an automatic installation script that is compatible with all versions of Ubuntu $ wget https://apt.llvm.org/llvm.sh -O - | sudo bash -s -- 15 all ``` @@ -85,7 +83,7 @@ $ brew install automake ccache cmake coreutils esbuild gnu-sed go libiconv libto ``` ```bash#Ubuntu/Debian -$ sudo apt install cargo ccache cmake esbuild git golang libtool ninja-build pkg-config rustc +$ sudo apt install cargo ccache cmake git golang libtool ninja-build pkg-config rustc esbuild ``` ```bash#Arch @@ -94,7 +92,19 @@ $ pacman -S base-devel ccache cmake esbuild git go libiconv libtool make ninja p {% /codetabs %} -In addition to this, you will need either `bun` or `npm` installed to install the package.json dependencies. +{% details summary="Ubuntu — Unable to locate package esbuild" %} + +The `apt install esbuild` command may fail with an `Unable to locate package` error if you are using a Ubuntu mirror that does not contain an exact copy of the original Ubuntu server. Note that the same error may occur if you are not using any mirror but have the Ubuntu Universe enabled in the `sources.list`. In this case, you can install esbuild manually: + +```bash +$ curl -fsSL https://esbuild.github.io/dl/latest | sh +$ chmod +x ./esbuild +$ sudo mv ./esbuild /usr/local/bin +``` + +{% /details %} + +In addition to this, you will need an npm package manager (`bun`, `npm`, etc) to install the `package.json` dependencies. ## Install Zig @@ -107,7 +117,7 @@ $ zigup 0.11.0-dev.3737+9eb008717 ## Building -After cloning the repository, prepare bun to be built: +After cloning the repository, run the following command. The runs ```bash $ make setup |