# Problems to install CPLEX v 20.10

**URL:** <https://discourse.julialang.org/t/problems-to-install-cplex-v-20-10/53669>\
**Category:** New to Julia\
**Created:** [January 20, 2021, 2:06pm UTC](https://discourse.julialang.org/t/problems-to-install-cplex-v-20-10/53669 "2021-01-20T14:06:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![angeloaliano1](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Post date:** [January 20, 2021, 2:06pm UTC](https://discourse.julialang.org/t/problems-to-install-cplex-v-20-10/53669/1 "2021-01-20T14:06:47Z")

</div>

Dear all,  
I had the software CPLEX v 12.8 on my computer and I worked with Julia. Recently, I have removed this version and updated to version 20.10 of this software.  
In the instalation of new version I had installed on:  
 ![cplex](https://global.discourse-cdn.com/julialang/original/3X/3/e/3eeb3f729a85fafddfccd5c49ef25a9afe7c5702.png)  
The next step is set the path to Julia and run:

```julia
["CPLEX_STUDIO_BINARIES"] = "C:\Program Files\IBM\ILOG\CPLEX_Studio_Community201\opl\bin\x64_win64\cplex2010.dll"
import Pkg
Pkg.add("CPLEX")
Pkg.build("CPLEX")

```

However, the error message appears:

```julia
ERROR: syntax: invalid escape sequence

```

What am I doing wrong? Anyone can help me please?

When I build the package,the error message appears:

```julia
julia> Pkg.build("CPLEX")
   Building CPLEX → `C:\Users\Usuário\.julia\packages\CPLEX\DgohF\deps\build.log`
┌ Error: Error building `CPLEX`:
│ ERROR: LoadError: Unable to locate CPLEX installation. Note this must be downloaded separately. See the CPLEX.jl README for further instructions.        
│ Stacktrace:
│ [1] error(::String) at .\error.jl:33
│ [2] try_local_installation() at C:\Users\Usuário\.julia\packages\CPLEX\DgohF\deps\build.jl:64
│ [3] top-level scope at C:\Users\Usuário\.julia\packages\CPLEX\DgohF\deps\build.jl:80
│ [4] include(::String) at .\client.jl:457
│ [5] top-level scope at none:5
│ in expression starting at C:\Users\Usuário\.julia\packages\CPLEX\DgohF\deps\build.jl:77
└ @ Pkg.Operations D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\Operations.jl:942

```

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [January 20, 2021, 2:23pm UTC](https://discourse.julialang.org/t/problems-to-install-cplex-v-20-10/53669/2 "2021-01-20T14:23:21Z")

</div>

The backslash in strings needs to be escaped, so you should replace all `\` with `\\`. Alternatively, you can use the `raw"..."` string literal which does that for you:

```julia
raw"C:\Program Files\IBM\ILOG\CPLEX_Studio_Community201\opl\bin\x64_win64\cplex2010.dll"

```

---

<div class="post-metadata">

**Author:** ![AquaIndigo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aquaindigo/32/15820_2.png) [@AquaIndigo](https://discourse.julialang.org/u/AquaIndigo)\
**Post date:** [January 20, 2021, 2:34pm UTC](https://discourse.julialang.org/t/problems-to-install-cplex-v-20-10/53669/4 "2021-01-20T14:34:10Z")

</div>

It’s `ENV["CPLE_STUDIO_BINARIES"]` .

---

<div class="post-metadata">

**Author:** ![angeloaliano1](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Post date:** [January 20, 2021, 2:38pm UTC](https://discourse.julialang.org/t/problems-to-install-cplex-v-20-10/53669/5 "2021-01-20T14:38:33Z")

</div>

Not yet:

```julia
julia> Pkg.build("CPLEX")
   Building CPLEX → `C:\Users\Usuário\.julia\packages\CPLEX\DgohF\deps\build.log`
┌ Error: Error building `CPLEX`:
│ INFORMA��ES: n�o foi poss�vel localizar arquivos para o(s) padr�o(�es) especificado(s).
│ ERROR: LoadError: Unable to locate CPLEX installation. Note this must be downloaded separately. See the CPLEX.jl README for further instructions.
│ Stacktrace:
│ [1] error(::String) at .\error.jl:33
│ [2] try_local_installation() at C:\Users\Usuário\.julia\packages\CPLEX\DgohF\deps\build.jl:64
│ [3] top-level scope at C:\Users\Usuário\.julia\packages\CPLEX\DgohF\deps\build.jl:80
│ [4] include(::String) at .\client.jl:457
│ [5] top-level scope at none:5
│ in expression starting at C:\Users\Usuário\.julia\packages\CPLEX\DgohF\deps\build.jl:77
└ @ Pkg.Operations D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\Operations.jl:942

```

---

<div class="post-metadata">

**Author:** ![AquaIndigo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aquaindigo/32/15820_2.png) [@AquaIndigo](https://discourse.julialang.org/u/AquaIndigo)\
**Post date:** [January 20, 2021, 3:07pm UTC](https://discourse.julialang.org/t/problems-to-install-cplex-v-20-10/53669/6 "2021-01-20T15:07:49Z")

</div>

`ENV["CPLEX_STUDIO_BINARIES"] = "C:\\Program Files\\CPLEX_Studio1210\\cplex\\bin\\x86-64_win\\"` rather than the dll file.
