| 1 |
|
| 2 |
Just type |
| 3 |
|
| 4 |
./configure |
| 5 |
make |
| 6 |
|
| 7 |
and, as root: |
| 8 |
|
| 9 |
make install |
| 10 |
|
| 11 |
The "make install" will put cciss_vol_status into /usr/bin, |
| 12 |
and cciss_vol_status.8.gz into /usr/share/man/man8 |
| 13 |
|
| 14 |
To uninstall, as root: |
| 15 |
|
| 16 |
make uninstall |
| 17 |
|
| 18 |
This will remove /usr/share/man/man8/cciss_vol_status.8.gz |
| 19 |
and /usr/bin/cciss_voL_status |
| 20 |
|
| 21 |
=================================================== |
| 22 |
Notes that may help with getting things to compile: |
| 23 |
=================================================== |
| 24 |
|
| 25 |
Note: If configure complains about cciss_ioctl.h not compiling, |
| 26 |
it might be because in the kernel header, there is an attribute "__user" |
| 27 |
which configure fails to #define out of existence. (cciss_vol_status.c |
| 28 |
does do this.) You can safely ignore this warning from configure, as |
| 29 |
the cciss_vol_status code does #define __user precisely because of |
| 30 |
this. However, it may be the case, esp. if your distro is quite old |
| 31 |
that cciss_ioctl.h does not compile for another reason (see below). |
| 32 |
|
| 33 |
--- |
| 34 |
|
| 35 |
Note: If "make" gives you a message such as: |
| 36 |
WARNING: `aclocal-1.10' is needed, and you do not seem to have it handy on your |
| 37 |
system. You might have modified some files without having the |
| 38 |
proper tools for further handling them. Check the `README' file, |
| 39 |
it often tells you about the needed prerequirements for installing |
| 40 |
this package. You may also peek at any GNU archive site, in case |
| 41 |
some other package would contain this missing `aclocal-1.10' program. |
| 42 |
|
| 43 |
You can often get around this by doing the following: |
| 44 |
|
| 45 |
scameron@zuul:~/test/cciss_vol_status$ aclocal |
| 46 |
scameron@zuul:~/test/cciss_vol_status$ autoconf |
| 47 |
scameron@zuul:~/test/cciss_vol_status$ automake |
| 48 |
scameron@zuul:~/test/cciss_vol_status$ ./configure |
| 49 |
... |
| 50 |
scameron@zuul:~/test/cciss_vol_status$ make |
| 51 |
|
| 52 |
Or, you can try to sidestep autoconf and its ornery friends, and |
| 53 |
use linux_alternate_makefile.mk: |
| 54 |
|
| 55 |
make -f linux_alternate_makefile.mk |
| 56 |
|
| 57 |
and as root: |
| 58 |
|
| 59 |
make -f linux_alternate_makefile.mk install |
| 60 |
|
| 61 |
Or, you can dig around looking for aclocal-1.10 |
| 62 |
|
| 63 |
--- |
| 64 |
|
| 65 |
Note: Some old distros (e.g. debian Sarge) contain a broken |
| 66 |
version of include/linux/cciss_ioctl.h which doesn't compile at all. |
| 67 |
Your best bet here is to get a newer version of cciss_ioctl.h which |
| 68 |
doesn't have that problem. There are recent (circa 2010) cciss header |
| 69 |
files contained here, cciss_ioctl.h and cciss_defs.h. You can try |
| 70 |
using these instead of your distro's header files by doing the |
| 71 |
following: |
| 72 |
|
| 73 |
./configure CFLAGS=-DUSE_LOCAL_CCISS_HEADERS |
| 74 |
make |
| 75 |
|