-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kim-api installed from source on a Rocky (RHEL clone) 8 fails to add Ercolessi Adams model #88
Comments
The kim-api uses the c++ standard routine |
I don't think it's obvious that it's an issue with our system as such, because the directory is created. It's only a problem because of KIM's assumption that a directory created this way is an acceptable place to put a shared library to be dynamically loaded. I realize it's not the most common configuration, but it's not a crazy one. Setting |
Actually, looking deeper, there are other places in collections-management scripts that just use kim-api/utils/collections-management.in Line 205 in 431e641
And we have a kim-api/cpp/src/ghc-filesystem/filesystem.hpp Line 4598 in 431e641
that will use TMPDIR first and then check other env variables if it's not defined.
So, yes, I think setting |
Ah, OK now I understand more clearly: the system provides It seems that the C++ standard doesn't say anything about the permissions of the returned temp directory; POSIX doesn't require systems to provide So, yeah, it seems that the best that can be done is to document the expectations of the kim-api:
We'll leave this issue open as a reminder to implement this addition to the documentation. |
Sounds good. |
Following the instructions at https://openkim.org/doc/usage/obtaining-models/#installing_api to install from source, with some slight modifications, appears to work. The modifications are to set
-DCMAKE_INSTALL_PREFIX=${PWD}/../../installed-kim-api-2.3.0
, as the LAMMPS kim README suggests, and to skip thesudo
s.Using this installation to to install the Ercolessi-Adams model that the LAMMPS README refers to leads to an error. Our
/tmp
is mounted noexec, which I believe will also block shared libraries. Is there a way to set a differentTMPDIR
, in case that's the issue?The text was updated successfully, but these errors were encountered: