# A question about SCIP in Julia

**URL:** <https://discourse.julialang.org/t/a-question-about-scip-in-julia/35842>\
**Category:** Optimization (Mathematical)\
**Tags:** question\
**Created:** [March 11, 2020, 1:43pm UTC](https://discourse.julialang.org/t/a-question-about-scip-in-julia/35842 "2020-03-11T13:43:39Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![abcde](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abcde/32/16180_2.png) [@abcde](https://discourse.julialang.org/u/abcde)\
**Post date:** [March 11, 2020, 1:43pm UTC](https://discourse.julialang.org/t/a-question-about-scip-in-julia/35842/1 "2020-03-11T13:43:39Z")

</div>

```julia
 Error: Error building `SCIP`: 
│ ERROR: LoadError: Unable to locate SCIP installation.
│ Tried:
│ scip.dll
│ Note that this must be downloaded separately from scip.zib.de.
│ Please set the environment variable SCIPOPTDIR to SCIP's installation path.
│ 
│ Stacktrace:
│ [1] error(::String) at .\error.jl:33
│ [2] top-level scope at C:\Users\dell\.julia\packages\SCIP\ZO1uK\deps\build.jl:48
│ [3] include at .\boot.jl:328 [inlined]
│ [4] include_relative(::Module, ::String) at .\loading.jl:1094
│ [5] include(::Module, ::String) at .\Base.jl:31
│ [6] include(::String) at .\client.jl:431
│ [7] top-level scope at none:5
│ in expression starting at C:\Users\dell\.julia\packages\SCIP\ZO1uK\deps\build.jl:47
└ @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.2\Pkg\src\backwards_compatible_isolation.jl:647
false

```

I tried so many ways,but I cannot find how to deal with it.Please, any help will be appreciated. Thanks

---

<div class="post-metadata">

**Author:** ![orialb](https://avatars.discourse-cdn.com/v4/letter/o/65b543/32.png) [@orialb](https://discourse.julialang.org/u/orialb)\
**Post date:** [March 11, 2020, 2:02pm UTC](https://discourse.julialang.org/t/a-question-about-scip-in-julia/35842/2 "2020-03-11T14:02:55Z")

</div>

> [@abcde](#):
>
> │ Please set the environment variable SCIPOPTDIR to SCIP’s installation path.

just to clarify, did you try doing this? It would be useful if you describe exactly how did you try to solve this problem.

Not sure if you saw but it seems that there are some previous posts about this problem here in discourse and in the github [repo](https://github.com/SCIP-Interfaces/SCIP.jl/issues?q=is%3Aissue+Error+building+%60SCIP%60+is%3Aclosed) that might help you.

---

<div class="post-metadata">

**Author:** ![abcde](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abcde/32/16180_2.png) [@abcde](https://discourse.julialang.org/u/abcde)\
**Post date:** [March 12, 2020, 5:12am UTC](https://discourse.julialang.org/t/a-question-about-scip-in-julia/35842/3 "2020-03-12T05:12:02Z")

</div>

I have already do this but it do not work 😩

---

<div class="post-metadata">

**Author:** ![JosiahPohl](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/josiahpohl/32/12012_2.png) [@JosiahPohl](https://discourse.julialang.org/u/JosiahPohl)\
**Post date:** [March 16, 2020, 4:27pm UTC](https://discourse.julialang.org/t/a-question-about-scip-in-julia/35842/4 "2020-03-16T16:27:42Z")

</div>

I’m not sure if this will be helpful for you, but when I was trying to get SCIP to work I found that using the installers (shown in the red box below) was much easier than trying to build from source (if that is what you were trying to do).

 ![Screen Shot 2020-03-16 at 10.24.18 AM](https://global.discourse-cdn.com/julialang/original/3X/f/f/ffece95462a0cec19c2c74c7f0c605929bca598e.png)

Cheers,  
J

---

<div class="post-metadata">

**Author:** ![umbe](https://avatars.discourse-cdn.com/v4/letter/u/f19dbf/32.png) [@umbe](https://discourse.julialang.org/u/umbe)\
**Post date:** [October 8, 2020, 1:26pm UTC](https://discourse.julialang.org/t/a-question-about-scip-in-julia/35842/5 "2020-10-08T13:26:08Z")

</div>

Excuse me if I revive this topic, but I’m having the same issue and I don’t know how to fix it…  
I used the installer that you mentioned (for windows) but the same error keeps coming out.  
Does anyone know a solution?

---

<div class="post-metadata">

**Author:** ![JosiahPohl](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/josiahpohl/32/12012_2.png) [@JosiahPohl](https://discourse.julialang.org/u/JosiahPohl)\
**Post date:** [October 9, 2020, 6:27pm UTC](https://discourse.julialang.org/t/a-question-about-scip-in-julia/35842/6 "2020-10-09T18:27:47Z")

</div>

Have you added the binary to your PATH? I’m not sure how to do it on windows, but I bet that has to be done manually as well.

---

<div class="post-metadata">

**Author:** ![umbe](https://avatars.discourse-cdn.com/v4/letter/u/f19dbf/32.png) [@umbe](https://discourse.julialang.org/u/umbe)\
**Post date:** [October 12, 2020, 1:21pm UTC](https://discourse.julialang.org/t/a-question-about-scip-in-julia/35842/7 "2020-10-12T13:21:30Z")

</div>

In the list that I find opening Path (in the system variables) is present C:\Program Files\SCIPOptSuite 7.0.1\bin  
In addition, I tried to add an user variable named SCIPOPTDIR (with value C:\Program Files\SCIPOptSuite 7.0.1) but nothing changed…

---

<div class="post-metadata">

**Author:** ![joaquimg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joaquimg/32/223_2.png) [@joaquimg](https://discourse.julialang.org/u/joaquimg)\
**Post date:** [October 12, 2020, 1:50pm UTC](https://discourse.julialang.org/t/a-question-about-scip-in-julia/35842/8 "2020-10-12T13:50:40Z")

</div>

What os the output of:

```julia
] build SCIP

```

?  
And what are your package versions?

```julia
] status

```

---

<div class="post-metadata">

**Author:** ![umbe](https://avatars.discourse-cdn.com/v4/letter/u/f19dbf/32.png) [@umbe](https://discourse.julialang.org/u/umbe)\
**Post date:** [October 13, 2020, 8:28am UTC](https://discourse.julialang.org/t/a-question-about-scip-in-julia/35842/9 "2020-10-13T08:28:41Z")

</div>

Ok, I have good news.  
The commands suggested by @joaquimg led to outputs without any kind of errors, therefore I tried again to load my optimization problem with SCIP as optimizer and JuMP managed to do it successfully. I think that the error that I kept receiving after the addition of the user variable SCIPOPTDIR was only due to the fact that Julia was working while I added the variable and a restart was needed.

For now, my problem seems to be solved, thank you very much for your support @JosiahPohl and @joaquimg!
