# Installing Pardiso on Julia (Mac)

**URL:** <https://discourse.julialang.org/t/installing-pardiso-on-julia-mac/91014>\
**Category:** Optimization (Mathematical)\
**Tags:** installation\
**Created:** [November 29, 2022, 9:53pm UTC](https://discourse.julialang.org/t/installing-pardiso-on-julia-mac/91014 "2022-11-29T21:53:17Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![mb96](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mb96/32/45786_2.png) [@mb96](https://discourse.julialang.org/u/mb96)\
**Post date:** [November 29, 2022, 9:53pm UTC](https://discourse.julialang.org/t/installing-pardiso-on-julia-mac/91014/1 "2022-11-29T21:53:17Z")

</div>

Hi everyone,

I am trying to install Pardiso on Mac to be used through JuMP but I am a bit lost. I downloaded Pardison from the webpage and I have my academic license key but the file downloaded is “libpardiso600-MACOS-X86-64.dylib”. Do I need to place this file somewhere within my computer or /.Julia folder to be able to get it to work in Julia?

Thanks a lot and sorry if this issue is trivial but the usage manual from Pardiso project has little to non information about the installation process.

Miguel.

---

<div class="post-metadata">

**Author:** ![mb96](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mb96/32/45786_2.png) [@mb96](https://discourse.julialang.org/u/mb96)\
**Post date:** [November 29, 2022, 10:28pm UTC](https://discourse.julialang.org/t/installing-pardiso-on-julia-mac/91014/2 "2022-11-29T22:28:52Z")

</div>

As a follow up: this is what I get then I try to run JuMP with Pardiso as the linear solver:

 ![Captura de Pantalla 2022-11-29 a la(s) 17.27.53](https://global.discourse-cdn.com/julialang/original/3X/f/a/fa016236c1a1e37e30eddd4195dcbb2e583ae3a3.png)

Why is it looking at those weird locations?

---

<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:** [November 30, 2022, 1:45am UTC](https://discourse.julialang.org/t/installing-pardiso-on-julia-mac/91014/3 "2022-11-30T01:45:52Z")

</div>

Hi @mb96,

I assume you mean you want to use pardiso as the linear solver to Ipopt. You should be able to get it working as follows:

```julia
using JuMP
import Ipopt
model = Model(Ipopt.Optimizer)
set_optimizer_attribute(model, "linear_solver", "pardiso")
set_optimizer_attribute(model, "pardisolib", "/full/path/to/libpardiso600-MACOS-X86-64.dylib")

```

where you replace `/full/path/to` with the appropriate path. For example, `"/Users/miguelborrero/Desktop/libpardiso600-MACOS-X86-64.dylib"` if you placed the file on your desktop.

I need to update the instructions in the Ipopt.jl README. We’re in the process of simplifying things, so hopefully it’ll be a lot easier in future.

---

<div class="post-metadata">

**Author:** ![mb96](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mb96/32/45786_2.png) [@mb96](https://discourse.julialang.org/u/mb96)\
**Post date:** [November 30, 2022, 1:40pm UTC](https://discourse.julialang.org/t/installing-pardiso-on-julia-mac/91014/4 "2022-11-30T13:40:42Z")

</div>

Hi @odow,

Thanks a lot for the reply but this is not working. As show below, Julia does not recognize “pardisolib” as a valid option within Ipopt.

Here is how I set the option:

 ![Captura de Pantalla 2022-11-30 a la(s) 08.38.30](https://global.discourse-cdn.com/julialang/original/3X/6/e/6e2719bc335e5869b0eec98662c5f69455773702.png)

Here is the error message:

 ![Captura de Pantalla 2022-11-30 a la(s) 08.38.50](https://global.discourse-cdn.com/julialang/original/3X/6/c/6c3f301afa2583678d7d2c83d2f1ac695d7e46a4.png)

---

<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:** [November 30, 2022, 8:03pm UTC](https://discourse.julialang.org/t/installing-pardiso-on-julia-mac/91014/5 "2022-11-30T20:03:14Z")

</div>

Are you using a recent version of Ipopt? What is the output of `] status -m Ipopt_jll`?

Try updating your packages.

---

<div class="post-metadata">

**Author:** ![mb96](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mb96/32/45786_2.png) [@mb96](https://discourse.julialang.org/u/mb96)\
**Post date:** [November 30, 2022, 9:13pm UTC](https://discourse.julialang.org/t/installing-pardiso-on-julia-mac/91014/6 "2022-11-30T21:13:23Z")

</div>

![Captura de Pantalla 2022-11-30 a la(s) 16.13.05](https://global.discourse-cdn.com/julialang/original/3X/a/6/a68ce6585bc194141acc24f92d58c47dcc539535.png)

---

<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:** [November 30, 2022, 9:17pm UTC](https://discourse.julialang.org/t/installing-pardiso-on-julia-mac/91014/7 "2022-11-30T21:17:56Z")

</div>

You need a newer version of Ipopt to use `pardisolib` (a version that shows at least `v300.1400.XXX`; ignore the change from 3.14 to 300.1400, there are just some extra `00`).

Update your packages, and if that doesn’t help, do `] add Ipopt_jll@300.1400`

---

<div class="post-metadata">

**Author:** ![mb96](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mb96/32/45786_2.png) [@mb96](https://discourse.julialang.org/u/mb96)\
**Post date:** [December 1, 2022, 12:47am UTC](https://discourse.julialang.org/t/installing-pardiso-on-julia-mac/91014/8 "2022-12-01T00:47:03Z")

</div>

I did that and still getting the same problem. Here are the new versions:

 ![Captura de Pantalla 2022-11-30 a la(s) 19.45.49](https://global.discourse-cdn.com/julialang/original/3X/e/f/ef974f5a1fb27bbd5a7d048afa0a9bccbc43e2af.png)

Nevertheless, it still does not recognize “pardisolib” as an Ipopt option.

---

<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:** [December 1, 2022, 1:45am UTC](https://discourse.julialang.org/t/installing-pardiso-on-julia-mac/91014/9 "2022-12-01T01:45:37Z")

</div>

You have somehow installed a very old version of Ipopt that is not actually using Ipopt\_jll.

Do you have lots of other packages in your environment? You should use a new environment for each project. Don’t install a bunch of packages into the default environment; bad things can happen like this that lead to version conflicts.

You can work with projects like this:

```nohighlight
(base) oscar@Oscars-MBP /tmp % julia                
               _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.6.7 (2022-07-19)
 _/ |\ __'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

(@v1.6) pkg> activate /Users/Oscar/Documents/julia-projects/ipopt
  Activating new environment at `/Users/Oscar/Documents/julia-projects/ipopt/Project.toml`

(ipopt) pkg> st
      Status `~/Documents/julia-projects/ipopt/Project.toml` (empty project)

(ipopt) pkg> add Ipopt JuMP

... lots of stuff omitted ...

julia> exit()
(base) oscar@Oscars-MBP /tmp % julia
               _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.6.7 (2022-07-19)
 _/ |\ __'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

(@v1.6) pkg> st
      Status `~/.julia/environments/v1.6/Project.toml` (empty project)

(@v1.6) pkg> activate /Users/Oscar/Documents/julia-projects/ipopt
  Activating environment at `/Users/Oscar/Documents/julia-projects/ipopt/Project.toml`

(ipopt) pkg> st
      Status `~/Documents/julia-projects/ipopt/Project.toml`
  [b6b21f68] Ipopt v1.1.0
  [4076af6c] JuMP v1.4.0

```

---

<div class="post-metadata">

**Author:** ![mb96](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mb96/32/45786_2.png) [@mb96](https://discourse.julialang.org/u/mb96)\
**Post date:** [December 1, 2022, 5:08pm UTC](https://discourse.julialang.org/t/installing-pardiso-on-julia-mac/91014/10 "2022-12-01T17:08:29Z")

</div>

@odow Thanks a lot Oscar! It is really is a much better practice to do what you said.

I have done it and now I can set pardisolib as an option however I have now another problem:

 ![Screenshot 2022-12-01 at 12.05.14 PM](https://global.discourse-cdn.com/julialang/original/3X/a/d/ade3efebbed29e0ecc62f03a9cf757236b394ca6.png)

Apparently the .dylib file is not compatible with my architecture (I have M1 chip). I believe there’s not much more I can do here because Pardiso does not seem to have a file for “arm64” architecture. Has anyone ran into the same problem?

---

<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:** [December 1, 2022, 5:11pm UTC](https://discourse.julialang.org/t/installing-pardiso-on-julia-mac/91014/11 "2022-12-01T17:11:54Z")

</div>

Use the Rosetta build of Julia. I haven’t tried Pardiso on M1.

---

<div class="post-metadata">

**Author:** ![mb96](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mb96/32/45786_2.png) [@mb96](https://discourse.julialang.org/u/mb96)\
**Post date:** [December 1, 2022, 5:16pm UTC](https://discourse.julialang.org/t/installing-pardiso-on-julia-mac/91014/12 "2022-12-01T17:16:02Z")

</div>

Sorry, could you explain a bit more on what you mean by the Rosetta build of Julia?

---

<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:** [December 1, 2022, 5:18pm UTC](https://discourse.julialang.org/t/installing-pardiso-on-julia-mac/91014/13 "2022-12-01T17:18:16Z")

</div>

> could you explain a bit more on what you mean by the Rosetta build of Julia?

Oops. Sure 😄

Download and use the `macOS x86 (Intel or Rosetta)` version of Julia from: [Download Julia](https://julialang.org/downloads/). This should let you use the x86 version of Pardiso.

---

<div class="post-metadata">

**Author:** ![mb96](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mb96/32/45786_2.png) [@mb96](https://discourse.julialang.org/u/mb96)\
**Post date:** [December 1, 2022, 5:36pm UTC](https://discourse.julialang.org/t/installing-pardiso-on-julia-mac/91014/14 "2022-12-01T17:36:12Z")

</div>

@odow a quick stupid question: I have now 2 versions of Julia in my applications folder. When I type julia in the terminal it will direct me to the M1 architecture version. Is there a quick way to create a second command (e.g julia\_2) that opens the x86 one?

---

<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:** [December 1, 2022, 5:43pm UTC](https://discourse.julialang.org/t/installing-pardiso-on-julia-mac/91014/15 "2022-12-01T17:43:08Z")

</div>

Consider using juliaup instead: [GitHub - JuliaLang/juliaup: Julia installer and version multiplexer](https://github.com/JuliaLang/juliaup)

For example, I have:

```nohighlight
oscardowson@Oscars-Mac-mini ~ % juliaup status
 Default Channel Version Update 
-----------------------------------------------
       * release 1.8.3+0.aarch64         
          release~x64 1.8.3+0.x64    
         
oscardowson@Oscars-Mac-mini ~ % julia
               _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.8.3 (2022-11-14)
 _/ |\ __'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

julia> versioninfo()

Julia Version 1.8.3
Commit 0434deb161e (2022-11-14 20:14 UTC)
Platform Info:
  OS: macOS (arm64-apple-darwin21.3.0)
  CPU: 8 × Apple M1
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, apple-m1)
  Threads: 1 on 4 virtual cores

julia> exit()

oscardowson@Oscars-Mac-mini ~ % julia +release~x64
               _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.8.3 (2022-11-14)
 _/ |\ __'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

julia> versioninfo()
Julia Version 1.8.3
Commit 0434deb161e (2022-11-14 20:14 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin21.4.0)
  CPU: 8 × Apple M1
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, westmere)
  Threads: 1 on 8 virtual cores

```

---

<div class="post-metadata">

**Author:** ![mb96](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mb96/32/45786_2.png) [@mb96](https://discourse.julialang.org/u/mb96)\
**Post date:** [December 1, 2022, 5:59pm UTC](https://discourse.julialang.org/t/installing-pardiso-on-julia-mac/91014/16 "2022-12-01T17:59:07Z")

</div>

@odow Interesting. I have downloaded juliaup and julia x86 but the only versions that juliaup allow me to add are the x64:

![Screenshot 2022-12-01 at 12.58.22 PM](https://global.discourse-cdn.com/julialang/original/3X/4/0/406abb0578d98594a7b8c81b9ddf4761a78f2868.png)

---

<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:** [December 1, 2022, 6:00pm UTC](https://discourse.julialang.org/t/installing-pardiso-on-julia-mac/91014/17 "2022-12-01T18:00:31Z")

</div>

The `julia +release~x64` should work with your `x86_64` version of Pardiso.

---

<div class="post-metadata">

**Author:** ![mb96](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mb96/32/45786_2.png) [@mb96](https://discourse.julialang.org/u/mb96)\
**Post date:** [December 1, 2022, 9:54pm UTC](https://discourse.julialang.org/t/installing-pardiso-on-julia-mac/91014/18 "2022-12-01T21:54:39Z")

</div>

@odow It does thanks! Now I only need one last thing. It does not found my pardiso license. Where do I have to place it? Currently its in the same folder as the .dylib document. There’s a pardiso.lic file with the license number.

---

<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:** [December 1, 2022, 10:18pm UTC](https://discourse.julialang.org/t/installing-pardiso-on-julia-mac/91014/19 "2022-12-01T22:18:33Z")

</div>

> Where do I have to place it?

From the documentation: [https://pardiso-project.org/manual/manual.pdf](https://pardiso-project.org/manual/manual.pdf)

 ![image](https://global.discourse-cdn.com/julialang/original/3X/b/0/b0f3e9aebfbdc003016a15384981c24a3b5c300d.png)
