Dear moses-support
To Germán and Hieu Hoang : Thanks for your answer, I built pass that error.
And now i got another error.
-------------------------------------------------------------------
g++ -g -O2 -L/home/nguyen/Project/srilm/lib/i686 -o moses Main.o mbr.o
IOStream.o TranslationAnalysis.o -L../../moses/src -lmoses -loolm -ldstruct
-lmisc -lz
/usr/bin/ld: cannot find -lmisc
collect2: ld returned 1 exit status
-------------------------------------------------------------------
I built SRILM with machine-type is "i686" and I saw only 4 files (libdstruct.a,
liboolm.a, libflm.a, liblattice.a) in $SRILM/lib/i686 folder, but when I build
SRILM with machine-type is 'i686-m64' I saw 5 files (libdstruct.a, liboolm.a,
libflm.a, liblattice.a and libmisc.a)
How do I resolve this problem???
Thanks
Huy.
> Date: Fri, 2 Nov 2007 14:39:25 +0100
> From: [EMAIL PROTECTED]
> To: [email protected]
> Subject: Re: [Moses-support] [Bulk] Compile error
>
> 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
_________________________________________________________________
Connect to the next generation of MSN Messenger
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support