-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathINSTALL
More file actions
119 lines (104 loc) · 3.14 KB
/
INSTALL
File metadata and controls
119 lines (104 loc) · 3.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
To build xvi on Linux systems:
Linux
-----
cd src
make -f makefile.pos
install -s xvi /usr/local/bin/
install xvi.help /usr/local/lib/
install ../doc/xvi.1 /usr/local/share/man/man1/
To make the Debian/Ubuntu package, say
apt-get install debhelper build-essential libncurses-dev
dpkg-buildpackage -rfakeroot
which will create you ../xvi*.deb that you can install with
dpkg -i ../xvi*.deb
To run the test suite ("make check") you will also need to
apt-get install expect tclsh
See test/README to run it without an X display.
To compile for smallest code size, install clang and use
make CC=clang OPTFLAG=-Os
Other versions of Unix
----------------------
makefile.aix
AIX (IBM's SysV-compatible UNIX)
makefile.bsd
Berkeley UNIXs systems from the 1980s including 4.[123]BSD for VAX.
On modern POSIX-compatible BSD systems use makefile.pos
makefile.hpx
HP UNIX (HP-UX) with GNU cc
makefile.pos
POSIX systems, including Linux and modern BSs,
makefile.q2t
QNX 2 in terminal mode, using the CII C86 ANSI Compiler
makefile.q2w
QNX 2 with Windows, using the CII C86 ANSI Compiler
makefile.q4t
QNX V4.1 (POSIX-conformant) in terminal mode, using Watcom C Compiler
makefile.sol
Solaris 2
makefile.sun
SunOS
makefile.sv
SunView
makefile.usg
System V UNIX
makefile.xen
Xenix on a 386
makefile.xwn
Xwn/termcap combined version under X11
MS-DOS
------
makefile.386
386 protected mode version using Zortech C 3.00 & PharLap DOS extender
makefile.bcc
Borland C/C++
makefile.msc
Microsoft C with Microsoft Macro Assembler (or compatible assembler)
and a public-domain version of "make" (not Microsoft's Make, which is
brain-dead)
makefile.qc
Microsoft Quick C (standalone version) & Microsoft's make utility
makefile.tc
Turbo C/C++ and TASM
makefile.zc2
Zortech C 2.18
makefile.zc3
Zortech C 3.00
MS-DOS clones
---------------
makefile.tos
Atari ST with Megamax or Lattice 5.0 C compiler
OS/2
----
makefile.os2
OS/2 with Microsoft's make, which is the stupidest make ever.
Installing required packages from source
----------------------------------------
xvi needs a termcap library and, to run the test suite, tcl and expect.
To install these from source code under your home directory:
# Termcap
wget https://ftp.gnu.org/gnu/termcap/termcap-1.3.1.tar.gz
gunzip < termcap*gz | tar xf -
(cd termcap* && ./configure --prefix=$HOME && make install)
# Tcl
wget http://prdownloads.sourceforge.net/tcl/tcl8.6.6-src.tar.gz
gunzip < tcl*gz | tar xf -
( cd tcl*/unix && ./configure --prefix=$HOME && make install )
# Find local versions. You can add these to .profile
export PATH=$HOME/bin:$PATH
export LD_LIBRARY_PATH=$HOME/lib
export TCL_LIBRARY=$HOME/lib/tcl8.6
export TCLLIBPATH=$HOME/lib
export MANPATH=$HOME/man:$MANPATH
# expect
wget https://downloads.sf.net/project/expect/Expect/5.45/expect5.45.tar.gz
gunzip < expect*gz | tar xf -
( cd expect*
# On aarch64, expect 5.45 needs tclconfig/config.sub modifying to add:
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
> | aarch64-* \
| avr-* \
| bs2000-* \
./configure --prefix=$HOME # --build=aarch64-suse-linux
make install
)