Comments (6)
Indeed it's a problem with seeing the new shared library. You need to run ldconfig
after installing, so the list of shared libraries is updated. Cmake doesn't do it for us
Alternatively you could just build with static linking: cmake -DBUILD_SHARED_LIBS=OFF
. Building the highs binary with static linking by default would avoid this kind of issues.
root@7faabfc1d615:/HiGHS# highs
highs: error while loading shared libraries: libhighs.so.1: cannot open shared object file: No such file or directory
root@7faabfc1d615:/HiGHS# ldconfig
root@7faabfc1d615:/HiGHS# highs
Please specify filename in .mps|.lp|.ems format.
from highs.
You can also change the RPATH
for the highs executable like https://github.com/metab0t/highsbox/blob/edd84ac1767b9df82fba2cb635ea34ef87d95ab9/setup.py#L93
Ensure libhighs.so
is in the <your_highs_executable_path>/../lib
folder.
Run the following commands on Linux:
patchelf --set-rpath '$ORIGIN/../lib' <your_highs_executable_path>
On Mac, run:
install_name_tool -add_rpath '@loader_path/../lib' <your_highs_executable_path>
It is useful if you want to create a portable bundle of HiGHS without installing it in system directories.
from highs.
@silky this fix is included in the latest release v1.7.1. Closing this issue, please re-open it, or a new one, if you encounter any further issues.
from highs.
I have made an attempt to address this issue in branch rpath-bin:
https://github.com/ERGO-Code/HiGHS/pull/1745/files
Would you please check whether this removes both
the need to modify paths on linux @silky
the need for your patch, @metab0t
from highs.
@galabovaa naively following my initial instructions above, I now get
CMake Error at CMakeLists.txt:191 (cmake_policy):
Policy "CMP0138" is not known to this version of CMake.
on that branch :(
root@65347b9d05c1:/HiGHS# cmake --version
cmake version 3.22.1
from highs.
Thank you! I will edit cmake accordingly
from highs.
Related Issues (20)
- Build fails on macOS: `f951: Error: '-fno-fat-lto-objects' are supported only with linker plugin` HOT 3
- Get Column Cost HOT 1
- Spurious statement of Integer when writing model HOT 1
- primal_solution_status is reported as kSolutionStatusFeasible for infeasible model when solver=ipm and presolve=off
- How to Set a Partial MIP Solution using setSolution()? HOT 11
- Logging header not printed if `h.writeModel` or `h.writeSolution` called before a method using the HighsIO
- `Highs::writeModel("")` uses `HighsIO`, but `Highs::writeSolution("")` uses `fprintf` for stdout HOT 1
- HiGHS 1.7.1 HighsCallbackDataOut data type can no longer be accessed directly for mip_solution item. HOT 1
- Time limit solving Jeroslow MIP seems not to be triggered HOT 2
- Stop MIP solve on `simplex_iteration_limit` (or other LP iteration limit) - Access iteration count via callback? HOT 2
- CMake configuration fails with versions >3.23.0 and <3.24.0
- Longer runtimes for ILP models created with `addVariable` versus `addCol` HOT 4
- PInvokeStackImbalance exception when targetting .NET Framework (Windows)
- highspy API improvements and benchmark HOT 1
- Stream HiGHs solver output in pyomo HOT 1
- Add user cuts
- Running in Parallel gives unexpected result. HOT 9
- LeakSanitizer locates memory leaks in highs HOT 11
- linker error due to .res files from v1.7.0
- Add an option to obtain dual information from the best solution found in MIP problems HOT 2
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 highs.