Unable to install PackageCompiler

I am not able to install PackageCompiler:

(v1.3) pkg> rm -m PackageCompiler
  Updating `~/.julia/environments/v1.3/Project.toml`
  [0cdbb3b1] - JuliaManager v0.1.1
  Updating `~/.julia/environments/v1.3/Manifest.toml`
  [0cdbb3b1] - JuliaManager v0.1.1
  [9b87118b] - PackageCompiler v0.6.4

(v1.3) pkg> add PackageCompiler
 Resolving package versions...
ERROR: Unsatisfiable requirements detected for package FixedPointNumbers [53c48c17]:
 FixedPointNumbers [53c48c17] log:
 ├─possible versions are: [0.5.0-0.5.3, 0.6.0-0.6.1, 0.7.0] or uninstalled
 ├─restricted to versions 0.5.3 by an explicit requirement, leaving only versions 0.5.3
 └─restricted by compatibility requirements with Colors [5ae59095] to versions: 0.6.0-0.6.1 — no versions left
   └─Colors [5ae59095] log:
     ├─possible versions are: [0.9.0, 0.9.2-0.9.6, 0.10.0, 0.11.0] or uninstalled
     └─restricted to versions 0.9.6 by an explicit requirement, leaving only versions 0.9.6

1 Like

This same error recently happened to me with my package. So, what I found was running update cleaned up dependency issues that I had no idea were happening. Not saying this is the case here, but it’s an obvious thing to try if you haven’t yet.

A crude workaround (given one is not doing anything special like tracking unregistered dependencies) is to delete the manifest file ~/.julia/environments/v1.3/Manifest.toml then proceed normally with (v1.3) pkg> add PackageCompiler.

Note the Pkg resolver in Julia 1.4 has been adjusted to avoid these kinds of errors in the first place.