Linking of fortran program

Dear Fluka expert,
I am getting the following error while linking the file with lfluka. The compilation was found OK.
- Linking: /usr/local/fluka/bin/lfluka -o sour_n source_newgen_regionsource.o
gfortran -o sour_n -fuse-ld=bfd source_newgen_regionsource.o -L/usr/local/fluka/lib -lfluka -lstdc++ -lz
/usr/bin/ld.bfd: cannot find -lz: No such file or directory
collect2: error: ld returned 1 exit status
Please help how to avoid this error.
With regards,
Sujoy

Dear Sujoy,

you are missing the package: zlib1g-dev (Ubuntu) / zlib-devel (Fedora).

Cheers,
David

Thanks a lot @horvathd . This solved the problem.

With regards,
Sujoy