# Problem with precompiling HTTP and LiveServer

**URL:** <https://discourse.julialang.org/t/problem-with-precompiling-http-and-liveserver/85184>\
**Category:** General Usage\
**Tags:** question\
**Created:** [August 2, 2022, 6:27pm UTC](https://discourse.julialang.org/t/problem-with-precompiling-http-and-liveserver/85184 "2022-08-02T18:27:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![paniash](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/paniash/32/38470_2.png) [@paniash](https://discourse.julialang.org/u/paniash)\
**Post date:** [August 2, 2022, 6:27pm UTC](https://discourse.julialang.org/t/problem-with-precompiling-http-and-liveserver/85184/1 "2022-08-02T18:27:03Z")

</div>

Hi everyone!

I’m trying to install HTTP and LiveServer in my default environment but I seem to be getting the following error message:

```julia
(@v1.7) pkg> add HTTP
  Installing known registries into `~/.julia`
    Updating registry at `~/.julia/registries/General.toml`
   Resolving package versions...
   Installed IniFile ──────────── v0.5.1
   Installed CodecZlib ────────── v0.7.0
   Installed SimpleBufferStream ─ v1.1.0
   Installed LoggingExtras ────── v0.4.9
   Installed MbedTLS ──────────── v1.1.2
   Installed TranscodingStreams ─ v0.9.6
   Installed URIs ─────────────── v1.4.0
   Installed HTTP ─────────────── v1.2.0
    Updating `~/.julia/environments/v1.7/Project.toml`
  [cd3eb016] + HTTP v1.2.0
    Updating `~/.julia/environments/v1.7/Manifest.toml`
  [944b1d66] + CodecZlib v0.7.0
  [cd3eb016] + HTTP v1.2.0
  [83e8ac13] + IniFile v0.5.1
  [e6f89c97] + LoggingExtras v0.4.9
  [739be429] + MbedTLS v1.1.2
  [777ac1f9] + SimpleBufferStream v1.1.0
  [3bb67fe8] + TranscodingStreams v0.9.6
  [5c2747f8] + URIs v1.4.0
  [56f22d72] + Artifacts
  [2a0f44e3] + Base64
  [ade2ca70] + Dates
  [b77e0a4c] + InteractiveUtils
  [8f399da3] + Libdl
  [56ddb016] + Logging
  [d6f4376e] + Markdown
  [ca575930] + NetworkOptions
  [de0858da] + Printf
  [9a3f8284] + Random
  [ea8e919c] + SHA
  [9e88b42a] + Serialization
  [6462fe0b] + Sockets
  [8dfed614] + Test
  [cf7118a7] + UUIDs
  [4ec0a83e] + Unicode
  [c8ffd9c3] + MbedTLS_jll
  [14a3606d] + MozillaCACerts_jll
  [83775a58] + Zlib_jll
Precompiling project...
  ✗ HTTP
  9 dependencies successfully precompiled in 4 seconds
  1 dependency errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the package

```

A similar error message pops up when installing LiveServer. I uninstalled all previous packages, cleared cache files and reinstalled Julia again from scratch but I keep getting the same errors. Any suggestions on how I can fix this? Thanks.

---

<div class="post-metadata">

**Author:** ![paniash](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/paniash/32/38470_2.png) [@paniash](https://discourse.julialang.org/u/paniash)\
**Post date:** [August 3, 2022, 7:52am UTC](https://discourse.julialang.org/t/problem-with-precompiling-http-and-liveserver/85184/2 "2022-08-03T07:52:42Z")

</div>

I’m using Julia v1.7.3-3 on Arch Linux. I’ve also tried the following:

1. Remove the entire `~/.julia` directory.
2. `mkdir new-dir && cd new-dir`
3. Launch Julia REPL and `] activate .`
4. Install HTTP `] add HTTP`.

I get the same error:

```julia
Precompiling project...
  ✗ HTTP
  9 dependencies successfully precompiled in 4 seconds
  1 dependency errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the package

```

---

<div class="post-metadata">

**Author:** ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Post date:** [August 3, 2022, 8:04am UTC](https://discourse.julialang.org/t/problem-with-precompiling-http-and-liveserver/85184/3 "2022-08-03T08:04:00Z")

</div>

> [@paniash](#):
>
> I’m using Julia v1.7.3-3 on Arch Linux. I’ve also tried the following:

How did you install julia? If you installed via pacman, that one is known broken, as the pacman maintainers don’t really care for us shipping patched dependencies. See the archwiki for more info.

[https://wiki.archlinux.org/title/Julia#Installation](https://wiki.archlinux.org/title/Julia#Installation)

Does the error also happen with official binaries? What error do you get when you then do `using HTTP`?

---

<div class="post-metadata">

**Author:** ![paniash](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/paniash/32/38470_2.png) [@paniash](https://discourse.julialang.org/u/paniash)\
**Post date:** [August 3, 2022, 8:09am UTC](https://discourse.julialang.org/t/problem-with-precompiling-http-and-liveserver/85184/4 "2022-08-03T08:09:39Z")

</div>

@Sukera Thanks a lot! I wasn’t aware of this pacman issue. As mentioned in the wiki, I installed `julia-bin` from the AUR and HTTP precompiles just fine!

Thanks for the help. 🙂

---

<div class="post-metadata">

**Author:** ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Post date:** [August 3, 2022, 8:11am UTC](https://discourse.julialang.org/t/problem-with-precompiling-http-and-liveserver/85184/5 "2022-08-03T08:11:41Z")

</div>

You’re welcome! There’s also [`juliaup`](https://github.com/JuliaLang/juliaup), a rustup inspired julia installer.
