Re: mldonkey compile on debian 5.0.1
Patrick Ru wrote:
> *Dears:*
> **
Your email is unreadable due to these lines with stars.
It is really awful! Can't you get rid of them?
> * Step:*
> **
> *I am install debian with debian-501-i386-netinst.iso.*
> *then:*
> *apt-get install mldonkey-server -y*
> *It will install the mlnet (version:2.9.5) to /usr/bin with size about 4Mb. and
> will install mldonkey-server to /etc/init.d/ and other config file.*
> **
> *but if I do:*
> *apt-get install ssh telnet -y
> apt-get install gcc g++ make patch locales -y
> apt-get install autoconf bzip2 libbz2-dev ocaml ocaml-native-compilers
> zlib1g-dev m4 libgd2-xpm libgd2-xpm-dev libmagic-dev mime-support -y
> wget
> http://ftp.de.debian.org/debian/pool/main/m/mldonkey/mldonkey_2.9.5.orig.tar.gz*
> *wget
> http://ftp.de.debian.org/debian/pool/main/m/mldonkey/mldonkey_2.9.5-2+lenny1.diff.gz*
> *tar -zxvf mldonkey_2.9.5.orig.tar.gz*
> *gunzip mldonkey_2.9.5-2+lenny1.diff.gz*
> *cd mldonkey_2.9.5*
> *patch -p1 -N < ../mldonkey_2.9.5-2+lenny1.diff*
> *./configure*
> *make
> It will compile a mlnet file with size more the 8Mb. *
Did you strip the produced binary?
(man strip)
> *If I use :*
> ./configure \
> --enable-gui \
> --enable-directconnect \
> --disable-magic \
> --disable-fasttrack
> *after compile, the mlnet file also has about 8Mb.*
Did you strip the produced binary?
> *what is the differen with the install using apt-get?*
> **
One difference is that binaries in Debian packages are usually stripped.
> *after compile, what command/script can I use to install the mldonkey-server to
> the system or other machine? must I make the deb pack?*
> **
Better is to install to Debian package produced as I told you in my last
email.
Cheers,
>
> *From:* Mehdi Dogguy <mailto:mehdi.dogguy@pps.jussieu.fr>
> *Sent:* Tuesday, May 26, 2009 07:26 PM
> *To:* Patrick Ru <mailto:patrick.ru@hotmail.com>
> *Cc:* debian-ocaml-maint@lists.debian.org
> <mailto:debian-ocaml-maint@lists.debian.org> ; dogguy@pps.jussieu.fr
> <mailto:dogguy@pps.jussieu.fr>
> *Subject:* Re: mldonkey compile on debian 5.0.1
>
> Patrick Ru wrote:
>> *Dears:*
>> **
>> *I have install the mldonkey in debian 5.0.1 by apt-get install mldonkey-server,
>> and the version is 2.9.5. and the mlnet file size is about 4Mb.*
>> **
>> *but if I download the source code from
>> _http://packages.debian.org/zh-cn/lenny/mldonkey-server_ , and compile:*
>> *1. why the size is up to 9Mb?*
>
> I assume that it depends on how you configured mldonkey. In the debian
> package, we usually do:
>
> ./configure \
> --enable-gui \
> --enable-directconnect \
> --disable-magic \
> --disable-fasttrack
>
> If you are on a native-ocaml-architecture (probably i386 or amd64), You
> also have to strip the binaries.
>
>> *2. how to install same as use apt-get after compile? (include the
>> mldonkey-server script eg. and the mlnet location: /usr/bin)*
>> **
>> *And if I download the 3.0.0-2 from
>> http://packages.debian.org/zh-cn/sid/mldonkey-server, how to compile (with small
>> size) and install?*
>> * *
>
> To compile the package as we do:
> - dget -x
> http://ftp.debian.org/debian/pool/main/m/mldonkey/mldonkey_3.0.0-2.dsc
> - cd mldonkey-3.0.0/
> - To create the debian package (the one you're looking for):
> dpkg-buildpackage -us -uc
>
> Same steps can be used to compile mldonkey 2.9.5.
>
> You have to make sure that you have all the build-dependencies installed.
>
--
Mehdi Dogguy مهدي الدڤي
http://www.pps.jussieu.fr/~dogguy
Tel.: (+33).1.44.27.28.38
Reply to: