Changeset 3860
- Timestamp:
- 17 Jan 2009, 15:08:22 (16 years ago)
- Location:
- WAeUP_Doc/ExtendedInstructions
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_Doc/ExtendedInstructions/1InstallingZope.rst
r1617 r3860 20 20 installations from Zope instances. Usually, you only have *one 21 21 installation of a certain Zope version* installed (in case of WAeUP: 22 version 2.9. 3), while there might be *several Zope instances* installed22 version 2.9.8), while there might be *several Zope instances* installed 23 23 based on the one Zope installation, but located at different locations 24 24 in the filesystem. … … 47 47 five instances, which listen on five different ports. A browser is 48 48 connected to port 8082, which is served by the 'waeup'-instance, which 49 in turn deploys a Zope 2.9. 3installation (sharing it with two other49 in turn deploys a Zope 2.9.8 installation (sharing it with two other 50 50 instances). 51 51 … … 55 55 56 56 TODO 57 58 Installing Zope on MacOS X 59 -------------------------- 60 61 Mostly the same as on Linux (see below). 62 63 * Your home directory (~) is `/Users/user`. 64 65 * You need to install Developer Tools (XCode). 66 67 * You need to install wget on your own (perhaps use MacPorts or Fink) or use curl. 68 69 * Depending on your OS version you need to install an older Python version, 70 perhaps via MacPorts or Fink. 71 (*Don't touch Apple's default Python installation!*) 57 72 58 73 Installing Zope on Linux … … 74 89 :: 75 90 76 ~$ wget http://www.zope.org/Products/Zope/2.9. 3/Zope-2.9.3.tgz91 ~$ wget http://www.zope.org/Products/Zope/2.9.8/Zope-2.9.8-final.tgz 77 92 ~$ mkdir -p zope/base zope/build zope/pkgs zope/instances 78 ~$ cp Zope-2.9. 3.tgz zope/build79 ~$ mv Zope-2.9. 3.tgz zope/pkgs93 ~$ cp Zope-2.9.8-final.tgz zope/build 94 ~$ mv Zope-2.9.8-final.tgz zope/pkgs 80 95 ~$ cd zope/build 81 ~/zope/build$ tar -xzf Zope-2.9. 3.tgz82 ~/zope/build$ cd Zope-2.9. 383 ~/zope/build/Zope-2.9. 3$ ./configure --prefix=/home/user/zope/base/2_9_384 ~/zope/build/Zope-2.9. 3$ make85 ~/zope/build/Zope-2.9. 3$ make install86 ~/zope/build/Zope-2.9. 3$ /home/user/zope/base/2_9_3/bin/mkzopeinstance.py -d /home/user/zope/instances/myinstance1 -u user:secret87 ~/zope/build/Zope-2.9. 3$ /home/user/zope/instances/myinstance1/bin/zopectl start96 ~/zope/build$ tar -xzf Zope-2.9.8-final.tgz 97 ~/zope/build$ cd Zope-2.9.8-final 98 ~/zope/build/Zope-2.9.8-final$ ./configure --prefix=/home/user/zope/base/2_9_8 99 ~/zope/build/Zope-2.9.8-final$ make 100 ~/zope/build/Zope-2.9.8-final$ make install 101 ~/zope/build/Zope-2.9.8-final$ /home/user/zope/base/2_9_8/bin/mkzopeinstance.py -d /home/user/zope/instances/myinstance1 -u user:secret 102 ~/zope/build/Zope-2.9.8-final$ /home/user/zope/instances/myinstance1/bin/zopectl start 88 103 89 104 *Fig. 2: Zope install on Linux / Short version* … … 97 112 1. *Get the sources* 98 113 99 Get the Zope sources from http://www.zope.org/. For the100 WAeUP-portal you currently need the 2.9. 3version of Zope, which can101 be found here: http://www.zope.org/Products/Zope/2.9.3/Zope-2.9.3.tgz102 103 Using the commandline you might change to your home directory ( 'cd') and114 Get the Zope sources from `http://www.zope.org/`. For the 115 WAeUP-portal you currently need the 2.9.8 version of Zope, which can 116 be found here: `http://www.zope.org/Products/Zope/2.9.8/Zope-2.9.8-final.tgz` 117 118 Using the commandline you might change to your home directory (`cd`) and 104 119 do (the dollar-sign here and elsewhere denotes the commandline 105 120 prompt, the tilde in front of the dollar sign means: 'home directory'): … … 108 123 109 124 ~$ cd 110 ~$ wget http://www.zope.org/Products/Zope/2.9. 3/Zope-2.9.3.tgz111 --16:03:00-- http://www.zope.org/Products/Zope/2.9. 3/Zope-2.9.3.tgz112 => `Zope-2.9. 3.tgz'125 ~$ wget http://www.zope.org/Products/Zope/2.9.8/Zope-2.9.8-final.tgz 126 --16:03:00-- http://www.zope.org/Products/Zope/2.9.8/Zope-2.9.8-final.tgz 127 => `Zope-2.9.8-final.tgz' 113 128 Resolving www.zope.org... 63.240.213.171 114 129 Connecting to www.zope.org|63.240.213.171|:80... connected. … … 118 133 100%[====================================>] 8,010,113 203.30K/s ETA 00:00 119 134 120 16:03:50 (156.42 KB/s) - `Zope-2.9. 3.tgz' saved [8010113/8010113]135 16:03:50 (156.42 KB/s) - `Zope-2.9.8-final.tgz' saved [8010113/8010113] 121 136 122 137 … … 203 218 :: 204 219 205 ~$ cp Zope-2.9. 3.tgz zope/build220 ~$ cp Zope-2.9.8-final.tgz zope/build 206 221 207 222 Afterwards we put the sources into the pkgs-directory to keep it … … 210 225 :: 211 226 212 ~$ mv Zope-2.9. 3.tgz zope/pkgs227 ~$ mv Zope-2.9.8-final.tgz zope/pkgs 213 228 214 229 The command 'mv' *moves* a file to a different location, thereby … … 220 235 221 236 ~$ cd zope/build 222 ~/zope/build$ tar -xzf Zope-2.9. 3.tgz237 ~/zope/build$ tar -xzf Zope-2.9.8-final.tgz 223 238 224 239 The commandline options 'xzf' mean: e(x)tract the file, un(z)ip the 225 file and do the whole operation on the (f)ile Zope-2.9. 3.tgz.226 227 This creates a new subdirectory 'Zope-2.9. 3' with all required240 file and do the whole operation on the (f)ile Zope-2.9.8-final.tgz. 241 242 This creates a new subdirectory 'Zope-2.9.8-final' with all required 228 243 sources. 229 244 … … 234 249 :: 235 250 236 ~/zope/build$ cd Zope-2.9. 3251 ~/zope/build$ cd Zope-2.9.8-final 237 252 238 253 Here you can find a file configure, which is most important, to … … 242 257 :: 243 258 244 ~/zope/build/Zope-2.9. 3$ ./configure --help259 ~/zope/build/Zope-2.9.8-final$ ./configure --help 245 260 246 261 configure [--help] [--quiet] [--with-python=path] [--prefix=path] … … 255 270 256 271 Given no options, configure will search your PATH for a suitable 257 Python interpreter and use '/usr/local/Zope-2.9. 3' as a prefix.272 Python interpreter and use '/usr/local/Zope-2.9.8-final' as a prefix. 258 273 259 274 Basically, it tells you, that you can give a special Python … … 291 306 :: 292 307 293 ~/zope/build/Zope-2.9. 3$ ./configure --prefix=/home/user/zope/base/2_9_3308 ~/zope/build/Zope-2.9.8-final$ ./configure --prefix=/home/user/zope/base/2_9_8 294 309 295 310 Here we want Zope to be installed in 296 /home/user/zope/base/2_9_ 3. Note, that the path311 /home/user/zope/base/2_9_8. Note, that the path 297 312 /home/user/zope/base/ must already exist before executing the 298 above command, while the subdirectory '2_9_ 3' (yes, its a313 above command, while the subdirectory '2_9_8' (yes, its a 299 314 diretory name) should be created by the build process. 300 315 … … 322 337 :: 323 338 324 ~/zope/build/Zope-2.9. 3$ make339 ~/zope/build/Zope-2.9.8-final$ make 325 340 326 341 and, if everything worked fine: … … 328 343 :: 329 344 330 ~/zope/build/Zope-2.9. 3$ make install345 ~/zope/build/Zope-2.9.8-final$ make install 331 346 332 347 The first step, the call of 'make', takes the biggest amount of … … 358 373 :: 359 374 360 ~$ cd /home/user/zope/base/2_9_ 3361 362 Instead of '2_9_ 3' you must use the name given to the prefix375 ~$ cd /home/user/zope/base/2_9_8 376 377 Instead of '2_9_8' you must use the name given to the prefix 363 378 option of the 'configure'-script above. 364 379 … … 368 383 :: 369 384 370 ~/zope/base/2_9_ 3$ ls385 ~/zope/base/2_9_8$ ls 371 386 bin include lib skel zopeskel 372 ~/zope/base/2_9_ 3$ cd bin373 ~/zope/base/2_9_ 3/bin$ ls387 ~/zope/base/2_9_8$ cd bin 388 ~/zope/base/2_9_8/bin$ ls 374 389 analyze.py fstail.py requestprofiler.py zeoctl.py 375 390 checkbtrees.py fstest.py runzeo.py zeopack.py … … 393 408 :: 394 409 395 ~/zope/base/2_9_ 3/bin$ ./mkzopeinstance.py --help410 ~/zope/base/2_9_8/bin$ ./mkzopeinstance.py --help 396 411 mkzopeinstance.py: Create a Zope instance home. 397 412 … … 420 435 :: 421 436 422 ~/zope/base/2_9_ 3/bin$ ./mkzopeinstance.py -d /home/user/zope/instances/myinstance1 -u user:secret437 ~/zope/base/2_9_8/bin$ ./mkzopeinstance.py -d /home/user/zope/instances/myinstance1 -u user:secret 423 438 424 439 This takes only about one second. If you do not give a username … … 485 500 486 501 With growing version numbers of Zope also the Zope configuration 487 file grows larger and larger. For version 2.9. 3there are too many502 file grows larger and larger. For version 2.9.8 there are too many 488 503 options available in zope.conf, to discuss every single option 489 504 herein. … … 595 610 596 611 *Uli Fouquet* 612 613 (updated in 2009-01 to Zope 2.9.8, as used by current WAeUP portals, by Hraban)
Note: See TracChangeset for help on using the changeset viewer.