7 |
You have to have zlib, zlib-dev and m4 packages installed. |
You have to have zlib, zlib-dev and m4 packages installed. |
8 |
For gd-made statistics libgd2-dev should be installed. |
For gd-made statistics libgd2-dev should be installed. |
9 |
|
|
10 |
Mldonkey/> ./configure --disable-gui |
Mldonkey/> ./configure |
11 |
Mldonkey/> make |
Mldonkey/> make |
12 |
|
|
13 |
There is no additional 'make install' command. Copy the file 'mlnet' |
There is no additional 'make install' command. Copy the file 'mlnet' |
47 |
------------------- |
------------------- |
48 |
|
|
49 |
You have now two options to compile mldonkey: |
You have now two options to compile mldonkey: |
50 |
- Individually install Objective-Caml 3.08.3 and LablGTK 1.2.7 or LablGTK-2.4.0. |
- Individually install Objective-Caml 3.08.4, LablGTK 1.2.7 and/or LablGTK-2.4.0. |
51 |
Then, you can compile mldonkey. The instructions are given below at '1)'. |
Then, you can compile mldonkey. The instructions are given below at '1)'. |
52 |
- If you want to install ocaml and lablgtk only to compile mldonkey. You must |
- If you want to install ocaml and lablgtk only to compile mldonkey. You must |
53 |
have a good internet access (you want mldonkey after all :). You must have |
have a good internet access (you want mldonkey after all :). You must have |
65 |
------------------------------------------------------------------------ |
------------------------------------------------------------------------ |
66 |
1) Installing required tools: Objective-Caml 3.08.3 and LablGTK |
1) Installing required tools: Objective-Caml 3.08.3 and LablGTK |
67 |
|
|
68 |
1.1) Objective-Caml 3.08.3 (from http://pauillac.inria.fr/caml) |
1.1) Objective-Caml 3.08.4 (from http://pauillac.inria.fr/caml) |
69 |
|
|
70 |
~/tmp> wget http://caml.inria.fr/distrib/ocaml-3.08/ocaml-3.08.3.tar.gz |
~/tmp> wget http://caml.inria.fr/distrib/ocaml-3.08/ocaml-3.08.4.tar.gz |
71 |
~/tmp> tar zxf ocaml-3.08.3.tar.gz |
~/tmp> tar zxf ocaml-3.08.4.tar.gz |
72 |
~/tmp> cd ocaml-3.08.3 |
~/tmp> cd ocaml-3.08.4 |
73 |
|
|
74 |
~/tmp/ocaml-3.08.0> ./configure |
~/tmp/ocaml-3.08.4> ./configure |
75 |
~/tmp/ocaml-3.08.0> make world.opt |
~/tmp/ocaml-3.08.4> make world.opt |
76 |
~/tmp/ocaml-3.08.0> make install |
~/tmp/ocaml-3.08.4> make install |
77 |
|
|
78 |
1.2.1) LablGTK 1.2.7 for GTK1 |
1.2.1) LablGTK 1.2.7 for GTK1 |
79 |
(from http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgtk.html) |
(from http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgtk.html) |
98 |
|
|
99 |
2) Compiling mldonkey with GUI: |
2) Compiling mldonkey with GUI: |
100 |
|
|
101 |
To build GTK1 newgui: ./configure |
To build GTK1 newgui: ./configure --enable-gui=newgui1 |
102 |
To build GTK1 oldgui: ./configure --disable-newgui |
To build GTK1 oldgui: ./configure --enable-gui=oldgui |
103 |
To build GTK2 GUI: ./configure --enable-gtk2 |
To build GTK2 GUI: ./configure --enable-gui[=newgui2] |
104 |
lablgtk-1.2.7 and lablgtk-2.4.0 can both be installed at the same time. |
lablgtk-1.2.7 and lablgtk-2.4.0 can both be installed at the same time. |
105 |
|
|
106 |
~/tmp/mldonkey> make |
~/tmp/mldonkey> make |
109 |
and 'mlgui' (the interface) No 'make install' is provided. |
and 'mlgui' (the interface) No 'make install' is provided. |
110 |
|
|
111 |
You can disable all other p2p networks using the --disable-multinet option |
You can disable all other p2p networks using the --disable-multinet option |
112 |
with ./configure. Only edonkey support will then be compiled. |
with ./configure. Only edonkey support (including Overnet/Kademlia) |
113 |
|
will then be compiled. |
114 |
|
|
115 |
------------------------------------------------------------------------ |
------------------------------------------------------------------------ |
116 |
|
|
|
Using mldonkey: |
|
|
--------------- |
|
|
|
|
|
mldonkey binaries are normally distributed with only the content of the |
|
|
mldonkey/distrib/ directory. Consequently, all documentation files on how to |
|
|
use mldonkey are stored in this directory. You will also find default |
|
|
configuration files in this directory, and in particular, a list of servers |
|
|
for edonkey in the servers.ini file. |
|
|
|
|
|
See the distrib/Readme.txt and distrib/FAQ.html files for more information |
|
|
on how to use mldonkey. |
|
|
|
|
|
Note that you should execute mldonkey in the distrib/ directory, where a |
|
|
list of servers is present with other files. It will create other |
|
|
configuration files in this directory. mldonkey_gui has its own configuration |
|
|
file in the user directory (~/.mldonkey_gui.ini). I would advise you to move |
|
|
mldonkey, mldonkey_gui, mldonkey_gui2 and mlchat to distrib/, then move this |
|
|
directory where you want to put your downloads, and then remove mldonkey |
|
|
sources. |
|
|
|
|
|
You must NOT run mldonkey as root (or you should use the run_as_user |
|
|
option to change the user after the port has been bound). |
|
|
|
|
117 |
NOTES: |
NOTES: |
118 |
------ |
------ |
119 |
2002/12/18: To compile on MinGW |
To compile on MinGW read this guide: |
120 |
* configure: --enable-batch will not work, you must download and install ocaml |
http://mldonkey.berlios.de/modules.php?name=Wiki&pagename=Windows |
|
yourself |
|
|
* if ocamlopt/gcc fails to generate mldonkey.exe, add '-verbose -S' |
|
|
to the LIBS_opt in the Makefile. Use 'make &> log' to keep the |
|
|
commands, edit the 'log' file and remove all the commands except |
|
|
the 2 last 'as' and 'gcc' lines. Then use 'sh ./log' to rerun |
|
|
these commands, that should work this way :) |
|
|
* For a flawless compile these variables should be set |
|
|
(OCAMLDIR means the root directory of the Ocaml binaries): |
|
|
SET CAMLLIB=OCAMLDIR/lib |
|
|
SET CAMLP4LIB=OCAMLDIR/lib/camlp4 |
|
|
SET OCAMLLIB=OCAMLDIR/lib |
|
|
SET OCAMLRUNPARAM="l=256M" |
|
|
* On the MLDonkeyworld forum is a great thread with information about |
|
|
how to compile MLDonkey with MinGW: |
|
|
http://mldonkey.berlios.de/modules.php?name=Forums&file=viewtopic&t=1363 |
|