Skip to content

Conversation

@nalundgaard
Copy link

@nalundgaard nalundgaard commented Sep 2, 2022

Problem

On modern ubuntu, and probably many other Linux distributions, the gerbv DLL is not in /usr/local/lib/. For example, for me, it is at /usr/lib/x86_64-linux-gnu/libgerbv.so.1. This was hard-coded for some reason in 1288e13, but the real fix for the problem was in ea39c55, raising an exception when the library can't be identified. If it was identified, hardcoding the path is unlikely to help, and very likely to break things, as it does for me.

Solution

This change makes the library load correctly on linux by removing the check and just letting find_library and CDLL do their thing, as they were implemented to do.

**Problem**

On modern ubuntu, and probably many other Linux distributions, the `gerbv` DLL is *not* in `/usr/local/lib/`. For example, for me, it is at `/usr/lib/x86_64-linux-gnu/libgerbv.so.1`.  This was hard-coded for some reason in 1288e13, but the real fix for the problem was in ea39c55, raising an exception when the library can't be identified. If it was identified, hardcoding the path is unlikely to help, and very likely to break things, as it does for me. This change makes the library load correctly on linux.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant