Coder Social home page Coder Social logo

Installation and run about njoy21 HOT 3 CLOSED

njoy avatar njoy commented on July 29, 2024
Installation and run

from njoy21.

Comments (3)

Snomstor avatar Snomstor commented on July 29, 2024

Done every step mentioned "Obtaining and Installing NJOY" page. All test passed.
While using command like njoy21 --version or any njoy21 command, getting following errors:

njoy21: error while loading shared libraries: libnjoy_c_bindings.so: cannot open shared object file: No such file or directory

Hello! How did you solve this problem?

from njoy21.

whaeck avatar whaeck commented on July 29, 2024

The error indicates that you probably moved the executable without the dynamic library that's associated to it.

You can also compile the code to produce a static executable, you can do this by adding some additional cmake commands:

cmake -D static_libraries=True -D static_njoy=True -D CMAKE_EXE_LINKER_FLAGS="-static" ../

That should avoid the issue entirely.

from njoy21.

Snomstor avatar Snomstor commented on July 29, 2024

The error indicates that you probably moved the executable without the dynamic library that's associated to it.

You can also compile the code to produce a static executable, you can do this by adding some additional cmake commands:

cmake -D static_libraries=True -D static_njoy=True -D CMAKE_EXE_LINKER_FLAGS="-static" ../

That should avoid the issue entirely.

Thanks) I'll try to use this command too. For now, I have found the next solution: I have just copied the file libnjoy_c_bindings.so from /bin/subprojects/njoy_c_bindings to /usr/lib.

from njoy21.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.