Installation Problem of Ipopt

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?

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

You can find issues about this here and here. This comment from tkelman contains the code fragment that fixed it for me:

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)
1 Like

Its giving LoadError: ReadOnlyMemory Problem.

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