Page 1 of 1

compiliation problem on Debian Jessie

PostPosted: Tue Aug 02, 2016 2:59 pm
by rwendner
During the compilation with make V=D and make V=O we get the following error message

g++ -I. -Wall -fopenmp -c -O2 -o userO.o user.cpp
g++ -Wall -fopenmp -o marsO userO.o mpi-O.o -L. -lmars -lm -lz
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
Makefile:45: recipe for target 'marsO' failed
make: *** [marsO] Error 1

Can you please point us towards the source of the problem?
Is there a library missing ?

Re: compiliation problem on Debian Jessie

PostPosted: Tue Aug 02, 2016 4:20 pm
by zhouxinwei
The zlib library (for file compression) is missing, you need to install it on the system first.

We have no experience for Debian Jessie, but try installing zlib1g and zlib1g-dev using: apt-get install zlib1g zlib1g-dev.

Re: compiliation problem on Debian Jessie

PostPosted: Tue Aug 02, 2016 5:20 pm
by rwendner
thank you!
this solved the problem - seems to be the only standard package that is not installed by default in Debian Jessie