# Request help on PATHSolver.jl

**URL:** <https://discourse.julialang.org/t/request-help-on-pathsolver-jl/98335>\
**Category:** Optimization (Mathematical)\
**Tags:** package\
**Created:** [May 4, 2023, 4:48pm UTC](https://discourse.julialang.org/t/request-help-on-pathsolver-jl/98335 "2023-05-04T16:48:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shailesh](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@Shailesh](https://discourse.julialang.org/u/Shailesh)\
**Post date:** [May 4, 2023, 4:48pm UTC](https://discourse.julialang.org/t/request-help-on-pathsolver-jl/98335/1 "2023-05-04T16:48:26Z")

</div>

Hi,  
I wanted to solve complementarity problem using PATHSolver, and kept getting the error:  
“could not load library “./julia/datadeps/libpath50/libpath50.dylib”  
dlopen(.julia/datadeps/libpath50/libpath50.dylib, 0x0001): tried: ‘.julia/datadeps/libpath50/libpath50.dylib’ (mach-o file, but is an incompatible architecture (have ‘x86\_64’, need ‘arm64e’)), ‘/usr/local/lib/libpath50.dylib’ (mach-o file, but is an incompatible architecture (have ‘x86\_64’, need ‘arm64e’)), ‘/usr/lib/libpath50.dylib’ (no such file)” . Can someone please guide me through this? I get that it is saying ‘libpath50.dylib’ version is not compatible with my machine, but where can I find the compatible version? Thank you in advance,

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [May 4, 2023, 6:52pm UTC](https://discourse.julialang.org/t/request-help-on-pathsolver-jl/98335/2 "2023-05-04T18:52:21Z")

</div>

Are you using an M1 or M2? PATHSolver does not support that: [PATHSolver doesn't build on aarch64-apple-darwin · Issue #61 · chkwon/PATHSolver.jl · GitHub](https://github.com/chkwon/PATHSolver.jl/issues/61)

You’ll need to use the Rosetta build of Julia instead. (The “macOS x86 (Intel or Rosetta)” link from [Download Julia](https://julialang.org/downloads/.))

---

<div class="post-metadata">

**Author:** ![Shailesh](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@Shailesh](https://discourse.julialang.org/u/Shailesh)\
**Post date:** [May 4, 2023, 7:54pm UTC](https://discourse.julialang.org/t/request-help-on-pathsolver-jl/98335/3 "2023-05-04T19:54:39Z")

</div>

Thank you. With the Rosetta version, the solver worked.
