Comments (7)
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.
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 SCIPOPTDIR
s I've tried).
from scip.jl.
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.
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.
Setting the SCIPOPTDIR
to /usr
when installing using the .deb
as you suggested worked.
from scip.jl.
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.
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)
- SCIP craches due to symbol lookup error HOT 5
- Can I develop models in Julia and solve them in Python? HOT 6
- SCIP 8.0 support?! HOT 1
- SCIP EXCEPTION_ACCESS_VIOLATION In JuMP 1.1.0 and SCIP V0.11.3 on Windows 11 HOT 26
- How to trigger SCIPsolveConcurrent? HOT 3
- Multiple threads HOT 10
- SCIP not working on Windows HOT 4
- Crash When Optimizing HOT 15
- Get original variables from constraint
- Collect all feasible solutions HOT 4
- Cannot install globally in Windows HOT 1
- [EXCEPTION_ACCESS_VIOLATION] Julia 1.8.5 incompatibility with SCIP v0.11.12 HOT 1
- MultipleObjectiveAlgorithms usage HOT 1
- Implement LazyConstraint from ConstraintHandler HOT 4
- SCIP solver -- issue in "quadratic_constraints.jl". HOT 2
- Not solving the optimization model with the SCIP solver HOT 12
- `MathOptInterface.ScalarNonlinearFunction` not supported by the solver HOT 9
- A new release is probably warranted - `is_valid()` is broken in `v0.11.14`
- How to get ConstraintDual? HOT 2
- SCIP optimizer status likely ser incorrectly. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scip.jl.