root/cherokee/trunk/doc/basics_installation_windows.txt

Revision 2466, 5.1 kB (checked in by taher, 1 week ago)

--

Line 
1 == link:index.html[Index] -> link:basics.html[Getting started] -> link:basics_installation.html[Installation]
2
3 Installation on Windows
4 -----------------------
5
6 The latest Windows bundled release is available at the
7 link:http://www.cherokee-project.com/download/windows[Windows
8 download] section of the Cherokee Project website.
9
10 WARNING: The Windows build is currently broken. It will be fixed as
11 soon as possible. A Windows binary release will be available too.
12
13 [[quickstart]]
14 Quickstart
15 ~~~~~~~~~~
16 The installation process requires little explanation, as it is simply
17 a matter of pointing and clicking.
18
19 You have to check the desired components to be installed, select the
20 desired installation path and that's it.
21
22 However, if you want to try out the latest development release or
23 simply want to compile from source, you will need to setup a proper
24 building environment.
25
26 [[environment]]
27 Configuring the building the environment
28 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
29 Cherokee for Windows runs in fully native mode, but the environment
30 for its development has always been Unix/Linux. Building in
31 non-native mode (i.e., using Cygwin) would incur in a big loss of
32 performance, though it would be much simpler to maintain and build.
33
34 However, a big effort is done to ensure Cherokee's complete
35 cross-platform compatibility. To be able to build Cherokee you will
36 need a unix-like environment that provides the necessary tools listed
37 in the link:basics_requirements.html[requirements] section. Unfortunately
38 this environment is far from trivial to set up.
39
40 You can either follow these instructions on how to accomplish such
41 task, or simply download the link:http://cherokee-project.com/download/windows/Win32_Building_Environment.rar[Win32
42 preconfigured building environment bundle] provided by the
43 Cherokee-Project and skip the rest of this section, right to the
44 *building* part.
45
46 This is what you need to install. Check the
47 link:http://www.mingw.org/[MinGW] site to download most of the
48 software mentioned in the following lines.
49
50 .*MinGW*: minimalist GNU for Windows (GCC & binutils)
51
52     * Download MinGW release 5.1.4 at the time of this writing.
53     * Run it and select ‘Candidate’. Check base tools & g++
54     * Install in a directory with no spaces (the default directory
55       C:\MinGW is fine).
56
57
58 .*MSYS*: Minimal SYStem
59
60     * Download MSYS, tests were made with release 1.0.10
61     * Install it in the same directory as MinGW (remove “1.0″ from
62       the install path).
63     * Answer y, y, c:/MinGW
64     * You should add something like this to your ~/.profile to process
65       your preferences:
66 +
67 ------------------------------
68 if [ -f ${HOME}/.bashrc ] then
69   . ${HOME}/.bashrc
70 fi
71 ------------------------------
72
73 .*MSYS DTK*: Dev Toolkit
74
75     * Get DTK
76     * Install it in the same path as above
77
78 .*Update Autoconf & Automake*
79
80     * You might encounter problems if you do not have up to date
81     `Autoconf` and `Automake`. We recommend the usage of at least
82     versions 2.61 and 1.10.1, that are the ones we used.
83
84 .*Pthreads Win32*: POSIX Threads
85
86     * Cherokee will need these. Just download
87       link:ftp://sourceware.org/pub/pthreads-win32/dll-latest/[Pthreads-Win32]
88       and copy the appropriate files to /lib and /include
89
90
91 .*Python*
92
93     * You will need this, since both the build process and
94       Cherokee-Admin use Python. Just
95       link:http://python.org/download/[download] a Python Windows
96       installer, remember to include the directory in your path
97       environment variable, and you’re done.
98     * rxvt seems to be broken, which is most noticeable when you try
99       to run Python interactively, so just comment out its line in
100       msys.bat.
101
102
103 [[building]]
104 Building
105 ~~~~~~~~
106 . link:basics_download.html[Download] a fresh copy of Cherokee
107 . Configure the package for your system:
108 +
109 -------------------------------------------------------------------
110 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var  \
111 --enable-trace --enable-static-module=all --enable-static         \
112 --enable-shared=no --enable-beta --disable-readdir_r
113 -------------------------------------------------------------------
114
115 . Compile the package:
116 +
117 -----------------------------------------
118 make
119 -----------------------------------------
120
121 . Install the programs and any data files:
122 +
123 -----------------------------------------
124 make install
125 -----------------------------------------
126
127 [[advanced]]
128 Advanced parameters
129 ~~~~~~~~~~~~~~~~~~~
130
131 If you want to learn more about 'configure' you can run `./configure
132 --help`.
133
134 [grid="rows"]
135 ``~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
136 Parameter,             Description
137 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
138 `--with-wwwroot=DIR` , Specify the webserver root directory
139 `--disable-epoll`    , Disable epoll() support
140 `--disable-pthread`  , Disable threading support
141 `--disable-readdir_r`, Disable readdir_r usage
142 `--disable-ipv6`     , Disable IPv6 support
143 `--disable-pam`      , Disable PAM support
144 `--enable-trace`     , Allows debugging options
145 `--disable-admin`    , Stops cherokee-admin from installing
146 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
147
148 [[autostart]]
149 Autostart
150 ~~~~~~~~~
151 To be written
152
Note: See TracBrowser for help on using the browser.