# Installation Problem of Ipopt

**URL:** <https://discourse.julialang.org/t/installation-problem-of-ipopt/4105>\
**Category:** General Usage\
**Created:** [June 6, 2017, 12:14pm UTC](https://discourse.julialang.org/t/installation-problem-of-ipopt/4105 "2017-06-06T12:14:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gopal2017](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gopal2017/32/31747_2.png) [@gopal2017](https://discourse.julialang.org/u/gopal2017)\
**Post date:** [June 6, 2017, 12:14pm UTC](https://discourse.julialang.org/t/installation-problem-of-ipopt/4105/1 "2017-06-06T12:14:53Z")

</div>

If I use Julia installer 32 Bit I can install Ipopt by using command at Julia command prompt - Pkg.add(“Ipopt”) and it passes through Pkg.test(“Ipopt”). If I use Julia 64 bit I can’t install. Pkg.test(“Ipopt”) failed and gives ReadOnly Memory Problem. I am using Windows 10 64 bit. Both Julia 32 and 64 bit is working on it except Ipopt. There is no installation problem with Clp,Cbc,GLPK,NLopt. Why Ipopt?

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [June 6, 2017, 6:23pm UTC](https://discourse.julialang.org/t/installation-problem-of-ipopt/4105/2 "2017-06-06T18:23:00Z")

</div>

> [@gopal2017](#):
>
> Pkg.test(“Ipopt”) failed and gives ReadOnly Memory Problem

If you give the full error message it would be much easier to help you.

---

<div class="post-metadata">

**Author:** ![evanfields](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evanfields/32/1744_2.png) [@evanfields](https://discourse.julialang.org/u/evanfields)\
**Post date:** [June 6, 2017, 7:21pm UTC](https://discourse.julialang.org/t/installation-problem-of-ipopt/4105/3 "2017-06-06T19:21:11Z")

</div>

You can find issues about this [here](https://github.com/JuliaOpt/Ipopt.jl/issues/81) and [here](https://github.com/JuliaOpt/Ipopt.jl/issues/77). This [comment](https://github.com/JuliaOpt/Ipopt.jl/issues/77#issuecomment-289859732) from tkelman contains the code fragment that fixed it for me:

```julia
using WinRPM
pkgs = String[]
for pkg in eachline(WinRPM.installedlist)
    name = match(Regex("$(WinRPM.OS_ARCH)-(.*)"), last(split(pkg)))
    if name !== nothing && !isempty(WinRPM.lookup(name[1]))
        push!(pkgs, name[1])
    end
end
WinRPM.install(pkgs)

```

---

<div class="post-metadata">

**Author:** ![gopal2017](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gopal2017/32/31747_2.png) [@gopal2017](https://discourse.julialang.org/u/gopal2017)\
**Post date:** [June 7, 2017, 6:47am UTC](https://discourse.julialang.org/t/installation-problem-of-ipopt/4105/4 "2017-06-07T06:47:04Z")

</div>

Its giving LoadError: ReadOnlyMemory Problem.

---

<div class="post-metadata">

**Author:** ![gopal2017](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gopal2017/32/31747_2.png) [@gopal2017](https://discourse.julialang.org/u/gopal2017)\
**Post date:** [June 7, 2017, 7:46am UTC](https://discourse.julialang.org/t/installation-problem-of-ipopt/4105/5 "2017-06-07T07:46:53Z")

</div>

PLEASE CHECK DETAIL ERROR:  
INFO: Testing Ipopt  
ERROR: LoadError: LoadError: ReadOnlyMemoryError()  
in solveProblem(::Ipopt.IpoptProblem) at C:\Users\Krishnendu.julia\v0.5\Ipopt\src\Ipopt.jl:304  
in include\_from\_node1(::String) at .\loading.jl:488 (repeats 2 times)  
in process\_options(::Base.JLOptions) at .\client.jl:262  
in \_start() at .\client.jl:318  
while loading C:\Users\Krishnendu.julia\v0.5\Ipopt\test\hs071\_test.jl, in expression starting on line 118  
while loading C:\Users\Krishnendu.julia\v0.5\Ipopt\test\runtests.jl, in expression starting on line 5  
====================================================[ERROR: Ipopt]====================================================

failed process: Process(`'C:\Users\Krishnendu\AppData\Local\Julia-0.5.0\bin\julia' -Cx86-64 '-JC:\Users\Krishnendu\AppData\Local\Julia-0.5.0\lib\julia\sys.dll' --compile=yes --depwarn=yes --check-bounds=yes --code-coverage=none --color=yes --compilecache=yes 'C:\Users\Krishnendu\.julia\v0.5\Ipopt\test\runtests.jl'`, ProcessExited(1)) [1]

========================================================================================================================  
ERROR: Ipopt had test errors  
in #test#61(::Bool, ::Function, ::Array{AbstractString,1}) at .\pkg\entry.jl:740  
in (::Base.Pkg.Entry.#kw##test)(::Array{Any,1}, ::Base.Pkg.Entry.#test, ::Array{AbstractString,1}) at .\<missing\>:0  
in (::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#test,Tuple{Array{AbstractString,1}}})() at .\pkg\dir.jl:31  
in cd(::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#test,Tuple{Array{AbstractString,1}}}, ::String) at .\file.jl:48  
in #cd#1(::Array{Any,1}, ::Function, ::Function, ::Array{AbstractString,1}, ::Vararg{Array{AbstractString,1},N}) at .\pkg\dir.jl:31  
in (::Base.Pkg.Dir.#kw##cd)(::Array{Any,1}, ::Base.Pkg.Dir.#cd, ::Function, ::Array{AbstractString,1}, ::Vararg{Array{AbstractString,1},N}) at .\<missing\>:0  
in #test#3(::Bool, ::Function, ::String, ::Vararg{String,N}) at .\pkg\pkg.jl:258  
in test(::String, ::Vararg{String,N}) at .\pkg\pkg.jl:258
