Coder Social home page Coder Social logo

Installation Path about scip.jl HOT 7 CLOSED

scipopt avatar scipopt commented on June 4, 2024
Installation Path

from scip.jl.

Comments (7)

rschwarz avatar rschwarz commented on June 4, 2024 1

You can choose any directory, but you should specify it already when building SCIPOptSuite (in the cmake call), so that the headers and libraries are installed to that location.

In your case, since you seem to be using Ubuntu, you don't actually need to build SCIPOptSuite from source. Instead, you could try downloading the .deb package from the SCIP homepage and simply install it. In that case, do not specify SCIPOPTDIR, or set it to /usr, since SCIP will then be installed system-wide.

from scip.jl.

vtjeng avatar vtjeng commented on June 4, 2024

Specifically, when I'm running Pkg.build("SCIP"), I get the error

make[1]: Entering directory '/home/ubuntu/.julia/v0.6/SCIP/deps/src/CSIP-0.5.2'
Creating symbolic links to headers and library within SCIPOPTDIR (/home/ubuntu/Downloads/scipoptsuite-6.0.0/scip/src/scip).
ERROR: no SCIP headers found in SCIPOPTDIR!
Makefile:68: recipe for target 'links' failed
make[1]: *** [links] Error 1
make[1]: Leaving directory '/home/ubuntu/.julia/v0.6/SCIP/deps/src/CSIP-0.5.2'
Makefile:95: recipe for target '/home/ubuntu/.julia/v0.6/SCIP/deps/src/CSIP-0.5.2/lib' failed
make: *** [/home/ubuntu/.julia/v0.6/SCIP/deps/src/CSIP-0.5.2/lib] Error 2
===============================================================================[ ERROR: SCIP ]===============================================================================


LoadError: failed process: Process(`make`, ProcessExited(2)) [2]
while loading /home/ubuntu/.julia/v0.6/SCIP/deps/build.jl, in expression starting on line 52

(make test passes, but the build fails for a variety of SCIPOPTDIRs I've tried).

from scip.jl.

rschwarz avatar rschwarz commented on June 4, 2024

Maybe try to specify a SCIPOPTDIR which is outside the directory where you extracted the tar.gz, just to make sure nothing is overwritten or otherwise confused. If you then (after building SCIPOptSuite) look into that directory, you should see files and dirs like bin/scip, include/, lib/.

from scip.jl.

vtjeng avatar vtjeng commented on June 4, 2024

When installing the .deb package and not specifying a SCIPOPTDIR:

julia> Pkg.add("SCIP")
INFO: Cloning cache of SCIP from https://github.com/SCIP-Interfaces/SCIP.jl.git
INFO: Installing SCIP v0.5.2
INFO: Building SCIP
===============================================================================[ ERROR: SCIP ]===============================================================================


LoadError: AssertionError: Environment variable `SCIPOPTDIR` not set!
while loading /home/ubuntu/.julia/v0.6/SCIP/deps/build.jl, in expression starting on line 11

=============================================================================================================================================================================


==============================================================================[ BUILD ERRORS ]===============================================================================


WARNING: SCIP had build errors.

 - packages with build errors remain installed in /home/ubuntu/.julia/v0.6
 - build the package(s) and all dependencies with `Pkg.build("SCIP")`
 - build a single package by running its `deps/build.jl` script

from scip.jl.

vtjeng avatar vtjeng commented on June 4, 2024

Setting the SCIPOPTDIR to /usr when installing using the .deb as you suggested worked.

from scip.jl.

vtjeng avatar vtjeng commented on June 4, 2024

I haven't yet had a chance to try your suggestion when compiling from sources, but as you point out, on Linux installing from .deb and setting SCIPOPTDIR to /usr allows Pkg.build to complete successfully.

from scip.jl.

rschwarz avatar rschwarz commented on June 4, 2024

That's good, I will close then.

I was under the impression that we have some code (in CSIP's Makefile?) that looks in /usr automatically when SCIPOPTDIR is not set, but maybe I'm mistaken.

from scip.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.