# Problem when intall MathTexEngine v0.5.0

**URL:** <https://discourse.julialang.org/t/problem-when-intall-mathtexengine-v0-5-0/85817>\
**Category:** Visualization\
**Tags:** question, pkg, makie\
**Created:** [August 16, 2022, 11:32am UTC](https://discourse.julialang.org/t/problem-when-intall-mathtexengine-v0-5-0/85817 "2022-08-16T11:32:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhzhang](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zhzhang/32/218317_2.png) [@zhzhang](https://discourse.julialang.org/u/zhzhang)\
**Post date:** [August 16, 2022, 11:32am UTC](https://discourse.julialang.org/t/problem-when-intall-mathtexengine-v0-5-0/85817/1 "2022-08-16T11:32:54Z")

</div>

Hi all, I want to update the `MathTexEngine` from `0.4.3` to `0.5.0`. However, the `Pkg` threw these errors.

```julia
(@v1.7) pkg> add MathTeXEngine@0.5
   Resolving package versions...
ERROR: Unsatisfiable requirements detected for package StructArrays [09ab397b]:
 StructArrays [09ab397b] log:
 ├─possible versions are: 0.0.1-0.6.11 or uninstalled
 ├─restricted by compatibility requirements with GeometryBasics [5c1252a2] to versions: 0.3.0-0.6.11
 │ └─GeometryBasics [5c1252a2] log:
 │ ├─possible versions are: 0.1.0-0.4.3 or uninstalled
 │ ├─restricted to versions * by an explicit requirement, leaving only versions 0.1.0-0.4.3
 │ └─restricted by compatibility requirements with MathTeXEngine [0a4f8689] to versions: 0.4.1-0.4.3
 │ └─MathTeXEngine [0a4f8689] log:
 │ ├─possible versions are: 0.1.0-0.5.0 or uninstalled
 │ └─restricted to versions 0.5 by an explicit requirement, leaving only versions 0.5.0
 ├─restricted by compatibility requirements with GeometryBasics [5c1252a2] to versions: 0.6.0-0.6.11
 │ └─GeometryBasics [5c1252a2] log: see above
 └─restricted by compatibility requirements with StaticArrays [90137ffa] to versions: 0.0.1-0.5.1 or uninstalled — no versions left
   └─StaticArrays [90137ffa] log:
     ├─possible versions are: 0.8.0-1.5.4 or uninstalled
     ├─restricted by compatibility requirements with GeometryBasics [5c1252a2] to versions: 0.12.0-1.5.4
     │ └─GeometryBasics [5c1252a2] log: see above
     └─restricted by compatibility requirements with CairoMakie [13f3f980] to versions: 0.8.0-0.12.5, leaving only versions: 0.12.0-0.12.5
       └─CairoMakie [13f3f980] log:
         ├─possible versions are: 0.0.1-0.8.13 or uninstalled
         ├─restricted to versions * by an explicit requirement, leaving only versions 0.0.1-0.8.13
         ├─restricted by compatibility requirements with Makie [ee78f7c6] to versions: 0.0.1-0.6.2 or uninstalled, leaving only versions: 0.0.1-0.6.2
         │ └─Makie [ee78f7c6] log:
         │ ├─possible versions are: 0.9.0-0.17.13 or uninstalled
         │ ├─restricted to versions * by an explicit requirement, leaving only versions 0.9.0-0.17.13
         │ ├─restricted by compatibility requirements with MathTeXEngine [0a4f8689] to versions: 0.9.0-0.14.2 or uninstalled, leaving only versions: 0.9.0-0.14.2
         │ │ └─MathTeXEngine [0a4f8689] log: see above
         │ ├─restricted by compatibility requirements with GeometryBasics [5c1252a2] to versions: [0.9.0-0.12.0, 0.15.2-0.17.13] or uninstalled, leaving only versions: 0.9.0-0.12.0
         │ │ └─GeometryBasics [5c1252a2] log: see above
         │ └─restricted by compatibility requirements with AbstractPlotting [537997a7] to versions: [0.9.0-0.9.6, 0.13.0-0.17.13] or uninstalled, leaving only versions: 0.9.0-0.9.6
         │ └─AbstractPlotting [537997a7] log:
         │ ├─possible versions are: 0.9.0-0.18.3 or uninstalled
         │ ├─restricted by compatibility requirements with GeometryBasics [5c1252a2] to versions: 0.9.0-0.9.27 or uninstalled
         │ │ └─GeometryBasics [5c1252a2] log: see above
         │ ├─restricted by compatibility requirements with Makie [ee78f7c6] to versions: 0.9.0-0.9.27
         │ │ └─Makie [ee78f7c6] log: see above
         │ └─restricted by compatibility requirements with CairoMakie [13f3f980] to versions: 0.9.2-0.9.27
         │ └─CairoMakie [13f3f980] log: see above
         ├─restricted by compatibility requirements with GeometryBasics [5c1252a2] to versions: [0.0.1-0.1.3, 0.6.5-0.8.13] or uninstalled, leaving only versions: 0.0.1-0.1.3
         │ └─GeometryBasics [5c1252a2] log: see above
         └─restricted by compatibility requirements with Cairo [159f3aea] to versions: 0.1.1-0.8.13 or uninstalled, leaving only versions: 0.1.1-0.1.3
           └─Cairo [159f3aea] log:
             ├─possible versions are: 0.5.3-1.0.5 or uninstalled
             ├─restricted by compatibility requirements with CairoMakie [13f3f980] to versions: 0.5.3-1.0.5
             │ └─CairoMakie [13f3f980] log: see above
             └─restricted by compatibility requirements with Compat [34da2185] to versions: 0.7.0-1.0.5 or uninstalled, leaving only versions: 0.7.0-1.0.5
               └─Compat [34da2185] log:
                 ├─possible versions are: 1.0.0-4.1.0 or uninstalled
                 ├─restricted by compatibility requirements with DataFrames [a93c6f00] to versions: 1.0.0-3.45.0
                 │ └─DataFrames [a93c6f00] log:
                 │ ├─possible versions are: 0.11.7-1.3.4 or uninstalled
                 │ ├─restricted to versions * by an explicit requirement, leaving only versions 0.11.7-1.3.4
                 │ └─restricted by compatibility requirements with Compat [34da2185] to versions: 0.20.0-1.3.4 or uninstalled, leaving only versions: 0.20.0-1.3.4
                 │ └─Compat [34da2185] log: see above
                 └─restricted by compatibility requirements with DataStructures [864edb3b] to versions: 3.0.0-4.1.0, leaving only versions: 3.0.0-3.45.0
                   └─DataStructures [864edb3b] log:
                     ├─possible versions are: 0.9.0-0.18.13 or uninstalled
                     ├─restricted by compatibility requirements with StatsBase [2913bbd2] to versions: 0.9.0-0.18.13
                     │ └─StatsBase [2913bbd2] log:
                     │ ├─possible versions are: 0.24.0-0.33.21 or uninstalled
                     │ ├─restricted to versions * by an explicit requirement, leaving only versions 0.24.0-0.33.21
                     │ └─restricted by compatibility requirements with DataStructures [864edb3b] to versions: 0.33.1-0.33.21 or uninstalled, leaving only versions: 0.33.1-0.33.21
                     │ └─DataStructures [864edb3b] log: see above
                     └─restricted by compatibility requirements with MathTeXEngine [0a4f8689] to versions: 0.18.0-0.18.13
                       └─MathTeXEngine [0a4f8689] log: see above

```

From my understanding of the [`Pkg`’s doc about how to resolve conflicts](https://pkgdocs.julialang.org/dev/managing-packages/#conflicts), I thought that the main obstacle might be `CairoMakie`? For it limits `StaticArrays` to be `0.12.5`, far behind the latest `1.5.4`, which eventually hinders the update of `MathTexEngine`.

I am not sure if I was right. Any help or suggestions are appreciated.

Thanks!  
ZhZHANG

---

<div class="post-metadata">

**Author:** ![ffreyer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ffreyer/32/21569_2.png) [@ffreyer](https://discourse.julialang.org/u/ffreyer)\
**Post date:** [August 16, 2022, 11:50am UTC](https://discourse.julialang.org/t/problem-when-intall-mathtexengine-v0-5-0/85817/2 "2022-08-16T11:50:21Z")

</div>

Makie hasn’t updated to 0.5 yet. The update requires [jk/glyph indices by jkrumbiegel · Pull Request #2139 · JuliaPlots/Makie.jl · GitHub](https://github.com/JuliaPlots/Makie.jl/pull/2139) as far as I understand

---

<div class="post-metadata">

**Author:** ![zhzhang](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zhzhang/32/218317_2.png) [@zhzhang](https://discourse.julialang.org/u/zhzhang)\
**Post date:** [August 16, 2022, 11:56am UTC](https://discourse.julialang.org/t/problem-when-intall-mathtexengine-v0-5-0/85817/3 "2022-08-16T11:56:18Z")

</div>

I see… Thank you for the prompt reply!

---

<div class="post-metadata">

**Author:** ![digital\_carver](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/digital_carver/32/33818_2.png) [@digital\_carver](https://discourse.julialang.org/u/digital_carver)\
**Post date:** [August 16, 2022, 11:59am UTC](https://discourse.julialang.org/t/problem-when-intall-mathtexengine-v0-5-0/85817/4 "2022-08-16T11:59:12Z")

</div>

It seems like you’re installing the packages in the base environment `@v1.7`. If you don’t need `Makie` and `MathTexEngine` in the same project, you can create a separate environment for `MathTextEngine` and avoid the conflict. `import Pkg; Pkg.activate("your/project/folder"); Pkg.add("MathTexEngine")` will create the new environment in the project folder you specify and install `MathTexEngine` in that environment.

---

<div class="post-metadata">

**Author:** ![zhzhang](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zhzhang/32/218317_2.png) [@zhzhang](https://discourse.julialang.org/u/zhzhang)\
**Post date:** [August 16, 2022, 1:30pm UTC](https://discourse.julialang.org/t/problem-when-intall-mathtexengine-v0-5-0/85817/5 "2022-08-16T13:30:48Z")

</div>

I need to use `MathTexEngine` to print some LaTeX equations within `Makie`, so unfortunately, I cannot separate them into two environments. But I still learned to set different environments for different projects which might be helpful soon. Thank you!
