-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
73 lines (51 loc) · 3.04 KB
/
INSTALL
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
Installation Instructions
-------------------------
Usually the module should install automatically using PIP. Note since
the module is implemented in C, a C compiler and kernel-headers are
pre-requisite for installation from source.
When installing manually use the following steps:
python3 setup.py test
env PYTHONPATH=. python3 tests/test_ALL_smoke.py
env PYTHONPATH=. python3 tests/test_ALL_interactively.py
python3 setup.py install
If any step fails, regard the following instructions step by step.
Options:
-> Support for Solaris VxFS should be added automatically if the module
is installed. If not, #define or #undef SOLARIS_VXFS in myconfig.h
-> If you want support for AFS, you need the OpenAFS package
(tested with OpenAFS on (SuSE) Linux, HP-UX10, Solaris 2.6, 2.8, AIX 4.3
and IRIX 6.5).
The Makefile.PL tries to detect automatically if AFS is preset on a
system. If that fails, edit the Makefile.PL to always define $hasafs
(and drop me a mail).
1) On Linux systems make sure you have configured your kernel with quota
support. You also need the quota utilities and headers. E.g., with
the SuSE Linux 6.0 distribution you'll find them in package ap::quota.
If your distribution doesn't include the package you can get it from
<URL:http://sourceforge.net/projects/linuxquota>. See also (6) below.
Since 2019, SUN-RPC support has been split off from glibc in some
Linux distributions. If you run into compilation problems due to
missing header rpc/rpc.h, install package "libtirpc-dev"
2) Link or create the hints file.
a) Should be done by Makefile.PL for all supported systems. If not, and
there is a file below hints/ for your operating system (maybe for a
previous release), just create a link named "myconfig.h" to that file:
ln -s hints/my-os.h myconfig.h
b) Else, use hints/none.h to create a myconfig.h of your own. Check which
#includes you need in the online manuals. Contact me before you invest
a lot of time, it might already be done.
Edit Makefile.PL to maybe add/delete some libraries. Usually you'll
need only librpcsvc for the quota RPC mechanism. If you don't have
this library or it lacks the quota routines, #define MY_XDR in
myconfig.h to include the routines provided with this module. If you
don't have /usr/include/rpcsvc/rquota.h, include "include/rquota.h"
instead. If you don't need RPC at all, just define NO_RPC.
3) Generate the Makefile & compile: python3 setup.py test
4) Run tests/test_ALL_interactively.py to check if the module routines
do work correctly. Run the script once for user-quota and once
group-quota, and for different file-systems, as needed.
5) To install the module: "python3 setup.py install"
6) Before you start building for another OS, type "python3 setup.py clean"
Please email me with any adaption required in the hints files or setup.py for
getting the package to compile on your system. Please remember to include the
name of the OS and version numbers of OS (uname -rs) and quota module.