I have a source code written in Fortran 90: sourcecode.f90
It needs Lapack libraries for compilation so, I compile the source code with this command:
gfortran -o executable.exe sourcecode.f90 -llapack
When I run this executable file in Ubuntu terminal using:
everything runs fine. But when I try to run the same executable file in an Octave script with the line:
I get this error in the Octave command window:
./executable.exe: error while loading shared libraries: liblapack.so.3: cannot open shared object file: No such file or directory
Can anyone help me understand why this is happening? I need to run executable.exe in Octave for a larger code, but because of this, I'm unable to do so.
I'm using Ubuntu 18.04 with Octave 5.2.0.