annotate README_os390.txt @ 39:c16898406ff2

synchorinize version 7.3.081
author one@zeus.cr.ie.u-ryukyu.ac.jp
date Fri, 17 Dec 2010 17:43:06 +0900
parents e170173ecb68
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
1 README_zOS.txt for version 7.3 of Vim: Vi IMproved.
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
2
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
3 This readme explains how to build Vim on z/OS. Formerly called OS/390.
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
4 See "README.txt" for general information about Vim.
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
5
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
6 Most likely there are not many users out there using Vim on z/OS. So chances
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
7 are good, that some bugs are still undiscovered.
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
8
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
9 Getting the source to z/OS:
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
10 ==========================
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
11
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
12 First get the source code in one big tar file and ftp it a binary to z/OS. If
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
13 the tar file is initially compressed with gzip (tar.gz) or bzip2 (tar.bz2)
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
14 uncompress it on your PC, as this tools are (most likely) not available on the
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
15 mainframe.
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
16
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
17 To reduce the size of the tar file you might compress it into a zip file. On
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
18 z/OS Unix you might have the command "jar" from java to uncompress a zip. Use:
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
19 jar xvf <zip file name>
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
20
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
21 Unpack the tar file on z/OS with
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
22 pax -o from=ISO8859-1,to=IBM-1047 -rf vim.tar
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
23
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
24 Note: The Vim source contains a few bitmaps etc which will be destroyed by
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
25 this command, but these files are not needed on zOS (at least not for the
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
26 console version).
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
27
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
28
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
29 Compiling:
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
30 ==========
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
31
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
32 Vim can be compiled with or without GUI support. For 7.3 only the compilation
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
33 without GUI was tested. Below is a section about compiling with X11 but this
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
34 is from an earlier version of Vim.
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
35
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
36 Console only:
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
37 -------------
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
38
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
39 If you build VIM without X11 support, compiling and building is nearly
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
40 straightforward.
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
41
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
42 Change to the vim directory and do:
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
43
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
44 # Don't use c89!
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
45 # Allow intermixing of compiler options and files.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
46
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
47 $ export CC=cc
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
48 $ export _CC_CCMODE=1
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
49 $./configure --with-features=big --without-x --enable-gui=no
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
50 $ cd src
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
51 $ make
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
52
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
53 There may be warnings:
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
54 - include files not found (libc, sys/param.h, ...)
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
55 - Redeclaration of ... differs from ...
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
56 -- just ignore them.
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
57
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
58 $ make test
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
59
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
60 This will produce lots of garbage on your screen (including error
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
61 messages). Don't worry.
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
62
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
63 If the test stops at one point in vim (might happen in test 11), just
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
64 press :q!
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
65
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
66 Expected test failures:
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
67 11: If you don't have gzip installed
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
68 24: test of backslash sequences in regexp are ASCII dependent
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
69 42: Multibyte is not supported on z/OS
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
70 55: ASCII<->EBCDIC sorting
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
71 57: ASCII<->EBCDIC sorting
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
72 58: Spell checking is not supported with EBCDIC
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
73 71: Blowfish encryption doesn't work
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
74
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
75 $ make install
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
76
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
77
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
78 With X11:
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
79 ---------
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
80
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
81 WARNING: This instruction was not tested with Vim 7.3.
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
82
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
83 There are two ways for building VIM with X11 support. The first way is simple
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
84 and results in a big executable (~13 Mb), the second needs a few additional
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
85 steps and results in a much smaller executable (~4.5 Mb). This examples assume
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
86 you want Motif.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
87
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
88 The easy way:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
89 $ export CC=cc
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
90 $ export _CC_CCMODE=1
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
91 $ ./configure --enable-max-features --enable-gui=motif
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
92 $ cd src
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
93 $ make
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
94
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
95 With this VIM is linked statically with the X11 libraries.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
96
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
97 The smarter way:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
98 Make VIM as described above. Then create a file named 'link.sed' with the
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
99 following content (see src/link.390):
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
100
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
101 s/-lXext *//g
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
102 s/-lXmu *//g
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
103 s/-lXm */\/usr\/lib\/Xm.x /g
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
104 s/-lX11 */\/usr\/lib\/X11.x /g
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
105 s/-lXt *//g
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
106 s/-lSM */\/usr\/lib\/SM.x /g
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
107 s/-lICE */\/usr\/lib\/ICE.x /g
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
108
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
109 Then do:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
110 $ rm vim
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
111 $ make
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
112
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
113 Now Vim is linked with the X11-DLLs.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
114
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
115 See the Makefile and the file link.sh on how link.sed is used.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
116
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
117