[Integrit-users] install program
Brought to you by:
ecashin
From: <RD...@ga...> - 2001-11-02 20:07:20
|
I'm trying to install integrit on HP-UX 10.20 and have run into a problem with the "install" program used in the Makefiles. From what I can see this problem also applies also to HP-UX 11.0 and AIX 4.2 (and maybe others). SGI IRIX appears to provide compatibility. I can work around the problem by manually creating needed directories. The exact line in the main Makefile (a similar one occurs in other Makefiles) is: $(INSTALL) -d -m 755 $(SBINDIR); \ The output to the screen when running "gmake install" is: creating directory /opt/integrit-2.03/sbin cp: illegal option -- d Usage: cp [-f|-i] [-p] [-e warn|force|ignore] source_file target_file cp [-f|-i] [-p] [-e warn|force|ignore] source_file ... target_directory cp [-f|-i] [-p] -R|-r [-e warn|force|ignore] source_directory ... target_directory The problem is the -d option. HP's don't have it. Neither does AIX 4.2. As far as I can see, you can't use "install" under those systems to create a directory; only to install files in existing directories. There is also a problem with the -s option. I've excerpted the man pages for install from a few systems to give more info. Under SGI IRIX 6.5: BSD/GNU compatibility (where the target file or directory is the last argument) is supported in case none of the mandatory arguments (-f, -F, or -dir) is provided. In this case the -s option means strip. the -s option normally has this meaning: -s Be silent. Older versions of install printed verbose information by default when installing. Install is now silent by default, but this option remains for compatibility. the -c and -d options: -c BSD old compatibility mode (ignored) -dir (or -d for BSD/GNU compatibility) Create directories named by concatenating $ROOT to the file arguments. When -dir is given, all the file arguments are taken as directories; files and directories may not both be installed with the same command. Under AIX 4.2, they provide two commands, install and installbsd. However, neither of them has a -d option for creating directories. install Command Syntax /usr/bin/install [ -c DirectoryA ] [ -f DirectoryB ] [ -i ] [ -m ] [ -M Mode ] [ -O Owner ] [ -G Group ] [ -S ] [ -n DirectoryC ] [ -o ] [ -s ] File [ Directory ... ] -s Suppresses the display of all but error messages. -S Causes the binary to be stripped after installation. installbsd Command Purpose Installs a command (BSD version of the install command). Syntax /usr/bin/installbsd [-c ] [-g Group ] [-m Mode ] [-o Owner ] [-s ] BinaryFile Destination -s Causes the file specified by the BinaryFile parameter to be stripped after installation. Under HP-UX 10.20 and 11.0 the man page has these options: install(1M) install(1M) NAME install - install commands SYNOPSIS /usr/sbin/install [-c dira] [-f dirb] [-i] [-n dirc] [-o] [-g group] [-s] [-u user] file [dirx ...] -- Ross Druker Rohm and Haas Co. RD...@Ro... Philadelphia, PA (215) 592-3281 The opinions expressed are mine and not those of Rohm and Haas Company. |