Closed sevberg closed 6 months ago
The error message indicates that the linker (ld
) cannot find the library -lz
, which is typically the zlib library. Make sure zlib is installed on your system and that the linker can locate it. You may need to install zlib development package (sudo apt-get install zlib1g-dev
) or adjust your linker settings to include the correct path to the zlib library.
hi @lovasoa, you're absolutely right 🤦. Installing zlib fixed it. I feel like a dummy... Anyway, thank you!
I've tried using this crate today, and for the most part it has gone very well. Thank you very much for the effort!
I have a simple problem that I've built from one of the examples, which runs fine with
cargo run
and gives the correct answer forx
=0,y=6
, andz=0.5
. So that tells me that linkers and libraries are set-up properlyI then wanted to do a portability test, i.e. compile a binary on one machine and run it on another (assuming the CBC libraries are present, of course). However when trying to build this with
cargo build --release
I encountered the following error, which I'm unsure of what to do with:I had actually originally intended to do my portability test with Highs (which also worked with
cargo run
, since AFAIK that should get packaged into the release, however I encountered the same error above. This is what leads me to believe that something is not configured right (I'm sure on my end) at the good_lp-level, rather than related to one particular solver. Nevertheless, I'm not sure how to proceed..If you could please help me understand what this error means, and how (or if?) I can get a good_lp model compiled, then I would be very grateful
In case it's helpful, I'm running this in a WSL2-Unbuntu environment, and I had to manually install the CBC libraries,
build-essential
, andclang
(which seemed necessary to use Highs, rather than CBC)