Open Jonas231 opened 2 years ago
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.
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