Cannot find -lz / -lstdc++: No such file or directory

Why i have this problem?
gfortran -o /home/ubuntu/Downloads/pathtofluka/fluka4-3.3//bin/fluka -fuse-ld=bfd -L/home/ubuntu/Downloads/pathtofluka/fluka4-3.3//lib -lfluka -lstdc++ -lz
/usr/bin/ld.bfd: cannot find -lz: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [makefile:43: /home/ubuntu/Downloads/pathtofluka/fluka4-3.3//bin/fluka] Error 1

Dear Andrea,

please hava a look at this topic:

Cheers,
David

A post was merged into an existing topic: Geometry viewer FLAIR

gfortran -o /home/ubuntu/Downloads/pathtofluka/fluka4-3.3//bin/fluka -fuse-ld=bfd -L/home/ubuntu/Downloads/pathtofluka/fluka4-3.3//lib -lfluka -lstdc++ -lz
/usr/bin/ld.bfd: cannot find -lstdc++: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [makefile:43: /home/ubuntu/Downloads/pathtofluka/fluka4-3.3//bin/fluka] Error 1

why i have this error? The package zlib1g-dev is already installed. Thank u

yes libz-dev is installed but don-t work

Dear Andrea,

please make sure you have the g++ package installed to solve the missing -lstdc++ issue.

Cheers,
David

1 Like