compiliation problem on Debian Jessie

About anything related to MARS.

compiliation problem on Debian Jessie

Postby rwendner » Tue Aug 02, 2016 2:59 pm

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 ?
rwendner
 
Posts: 154
Joined: Wed Jul 15, 2015 4:35 pm

Re: compiliation problem on Debian Jessie

Postby zhouxinwei » Tue Aug 02, 2016 4:20 pm

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.
zhouxinwei
 
Posts: 208
Joined: Thu Jul 09, 2015 7:12 pm

Re: compiliation problem on Debian Jessie

Postby rwendner » Tue Aug 02, 2016 5:20 pm

thank you!
this solved the problem - seems to be the only standard package that is not installed by default in Debian Jessie
rwendner
 
Posts: 154
Joined: Wed Jul 15, 2015 4:35 pm


Return to Other

Who is online

Users browsing this forum: No registered users and 1 guest

cron