Skip to content
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

problem running example "intro_to_forpy.F90" #43

Open
Jonas231 opened this issue Feb 15, 2022 · 2 comments
Open

problem running example "intro_to_forpy.F90" #43

Jonas231 opened this issue Feb 15, 2022 · 2 comments

Comments

@Jonas231
Copy link

Hello,
I am a Fortran beginner and would like to use forpy for some plotting using matplotlib and later pyvista.

I tried your first and easiest example:

gfortran -c forpy_mod.F90
gfortran intro_to_forpy.F90 forpy_mod.o python3-config --ldflags --embed

And a file a.out was created.
When I call ./a.out I get this error message:

./a.out: error while loading shared libraries: libpython3.9.so.1.0: cannot open shared object file: No such file or directory

Do you have an idea what to do next?
Best regards,
Jonas

@Jonas231
Copy link
Author

@Jonas231
Copy link
Author

Okay. I had to query: which python
Then use:
export LD_LIBRARY_PATH=/home/jonas/miniconda3/lib:$LD_LIBRARY_PATH

gfortran -c forpy_mod.F90
gfortran intro_to_forpy.F90 forpy_mod.o python3-config --ldflags --embed

./a.out

Now it works.

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

No branches or pull requests

1 participant