I can answer that one... on ubuntu,
sudo apt-get install zlib1g-dev should fix the problem of the missing zlib.h Cheers, Germán Quoting Hieu Hoang <[EMAIL PROTECTED]>: > hi huy > > the missing files comes from the gzip library. > > this library should be installed by the linux distribution, for example, > on my computer, zlib.h is the folder > /usr/include/zlib.h > on redhat, i configure my computer as a 'developer's' machine rather > than a workstation to ensure that libraries and all the programming > tools are available. unfortunately, i don't know how to fix an unbuntu > installation. i suggest you look on the web for more information. > > > Hieu Hoang > www.hoang.co.uk/hieu > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Nguyen Tien Huy > Sent: 01 November 2007 18:07 > To: [email protected] > Subject: [Bulk] [Moses-support] Compile error > > > Dear moses-support, > > I got error when compiling. > I've building moses version 1.5.3 with gcc and g++ version 4.1 > ------------------------------------------------------------------------ > -------------------------------- > gzfilebuf.h:5:18: error: zlib.h: No such file or directory > gzfilebuf.h:75: error: 'gzFile' does not name a type > gzfilebuf.h: In constructor 'gzfilebuf::gzfilebuf(const char*)': > gzfilebuf.h:10: error: '_gzf' was not declared in this scope > gzfilebuf.h:10: error: 'gzopen' was not declared in this scope > gzfilebuf.h: In destructor 'virtual gzfilebuf::~gzfilebuf()': > gzfilebuf.h:15: error: '_gzf' was not declared in this scope > gzfilebuf.h:15: error: 'gzclose' was not declared in this scope > gzfilebuf.h: At global scope: > gzfilebuf.h:17: warning: unused parameter 'c' > gzfilebuf.h:24: warning: unused parameter 's' > gzfilebuf.h:24: warning: unused parameter 'num' > gzfilebuf .h:28: warning: unused parameter 'sp' > gzfilebuf.h:28: warning: unused parameter 'which' > gzfilebuf.h: In member function 'virtual int gzfilebuf::underflow()': > gzfilebuf.h:54: error: '_gzf' was not declared in this scope > gzfilebuf.h:54: error: 'gzread' was not declared in this scope > gzfilebuf.h: In member function 'virtual std::streamsize > gzfilebuf::xsgetn(char*, std::streamsize)': > gzfilebuf.h:71: error: '_gzf' was not declared in this scope > gzfilebuf.h:71: error: 'gzread' was not declared in this scope > make[2]: *** [InputFileStream.o] Error 1 > make[2]: *** Waiting for unfinished jobs.... > make[2]: Leaving directory `/home/nguyen/Project/moses/moses/src' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/nguyen/Project/moses' > make: *** [all] Error 2 > ------------------------------------------------------------------------ > -------------------------------- > Please help me compile moses. > Thanks > Huy. > > > _____ > > Explore the seven wonders of the world Learn more! > <http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBR > E> > > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. _______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
