Problem with precompiling HTTP and LiveServer

Hi everyone!

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

(@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.

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:

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

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

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

@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. :slight_smile:

1 Like

You’re welcome! There’s also juliaup, a rustup inspired julia installer.

1 Like