📄 install
字号:
If you want to force the use of VAX C when both VAX C and DEC C are available, do "@make_unz vaxc" (or "@[.vms]make_unz vaxc"). To use GNU C (gcc) on either platform, do "@make_unz gnuc". (NOTE: Currently, gcc for VMS(AXP) is not yet available!) The command procedure MAKE_UNZ.COM now recognizes custom feature options supplied in the logical name LOCAL_UNZIP; details are explained in the comments at the top of MAKE_UNZ.COM. For repeated makes or other hacker-like tinkering with the sources, or to create a custom version of UnZip, you may use the included "MMS" makefile, DESCRIP.MMS. Copy it into the current directory, read the comments at the top of it and run MadGoat's free MMS clone "MMK" on it. Newer versions of DEC's MMS should work, too, but older ones apparently choke on some MMK-specific extensions in DESCRIP.MMS. (If somebody has an "older" version that works, let us know and we'll remove this caveat.) MS-DOS See the msdos\Contents file for notes regarding which makefile(s) to use with which compiler. In summary: pick one of msdos\makefile.* as appropriate, or (as noted above) use the OS/2 gccdos target for emx+gcc. There is also an mscdos cross-compilation target in os2\makefile.os2 and a sco_dos cross-compilation target in the Unix makefile. For Watcom 16-bit or 32-bit versions, see the comments in the OS/2 section below. After choosing the appropriate makefile and editing as necessary or desired, invoke the corresponding make utility. Microsoft's NMAKE and the free dmake and GNU make utilities are generally the most versatile. The makefiles in the msdos directory can be invoked in place ("nmake -f msdos\makefile.msc", for example). OS/2 Either GNU make, nmake or dmake may be used with the OS/2 makefile; all are freely available on the net. Do "nmake -f os2\makefile.os2", for example, to get a list of supported targets. More generally, read the comments at the top of the makefile for an explanation of the differences between some of the same-compiler targets. Win32 (WinNT or Win95) You will need Microsoft Visual C++ 2.x for Win95 or NT (Intel, MIPS, Alpha, PowerPC?), or Watcom C++ for Win95 or NT (Intel only). As an alternative for Intel platforms, GNU C (the emx/rsxnt port) is now supported as well. DEC C/C++ for NT/Alpha may or may not still work. For the Watcom compiler, use WMAKE and win32\makefile.wat; for the others, use NMAKE and win32\Makefile. With emx+gcc, a good choice is GNUMake 3.75 from the djgpp V2.01 distribution. WinCE (WinCE or WinNT) Only Microsoft Visual C++ 5.0 or later is supported. Use the included project file and check wince\README for details. AmigaDOS SAS/Lattice C and Manx Aztec C are supported. For SAS C 6.x do "smake -f amiga/smakefile all"; for Aztec C do "make -f amiga/makefile.azt all". The Aztec C version supports assembly-language versions of two routines; these are enabled by default. Atari TOS Turbo C is no longer supported; use gcc and the MiNT libraries, and do "make". Note that all versions of gcc prior to 2.5.8 have a bug affecting 68000-based machines (optimizer adds 68020 instructions). See atari\README for comments on using other compilers. Macintosh Metrowerks CodeWarrior Pro 4 with Universal Interfaces 3.1 is the only currently supported compiler, although the Mac Programmer's Workbench (MPW) and Think C were supported at one time and still have some hooks. Other Compilers may work too, no compiler specific instructions (pragma, header, macros, ...) were used in the code. For CodeWarrior Pro 4, un-BinHex the CodeWarrior project file and UnZip resource file (using Stuffit Expander or BinHex 4.0 or later), then open the project and click on the compile button. See ":macos:Contents" for the possible project targets. Link order of the standard libraries is very important: Link all sources first and all standard libraries last. Acorn (RISC OS) Extract the files from the archive and place in standard 'Acorn' C form (i.e., *.c, *.h and *.s become c.*, h.* and s.*, respectively), either using the UNZIP$EXTS environment variable and a pre-built UnZip binary, or using Spark[FS] and doing it manually. Then copy the Acorn.Makefile to the main UnZip directory and either type 'amu' or use the desktop make utility. VM/CMS Unpack all the files and transfer them with ASCII -> EBCDIC conver- sion to an appropriate directory/minidisk/whatever, then execute UNZVMC to compile and link all the sources. This may require C/370 version 2.1 or later and certain `nucleus extensions,' although UnZip 5.3 has been reported to compile fine with the `ADCYCLE C/370 v1.2 compiler.' Note that it will abend without access to the C/370 runtime library. See the README.CMS file for more details. MVS Unpack all the files and transfer them to an appropriate PDS with ASCII -> EBCDIC conversion enabled, then edit UNZMVSC.JOB as required, and execute it to compile and link all the sources. C/370 2.1 or later is required. See README.MVS for further details. [This is a new port and may need a little more work even to compile.] Human68K [This is a Japanese machine and OS.] It appears that GNU make and gcc are required; presumably just do "gmake -f human68k/Makefile.gcc" to build everything. This port has not been tested since the 5.12 release. TOPS-20 [No longer fully supported due to new, unported features, although patches are always accepted.] Unpack all files into the current directory only (including those in the zipfile's tops20 directory), then use make.mic and "do make". BeOS You can run the BeOS makefile in place by typing "make -f beos/Makefile". In fact, this is how the author tests it. Running the appropriate make utility should produce three executables on most systems, one for UnZip/ZipInfo, one for UnZipSFX, and one for fUnZip. (VMS is one prominent exception: fUnZip makes no sense on it. The Amiga produces a fourth executable called MakeSFX, which is necessary because Amiga self-extracting archives cannot be created by simple concatenation. If necessary the source amiga/makesfx.c can be compiled on other systems.) Read any OS-specific README files for notes on setting things up for normal use (especially for VMS) and for warnings about known quirks and bugs in various compilers (especially for MS-DOS). Also note that many OSes require a timezone variable to be set correctly (often "TZ"); Unix and VMS generally do so by default, Win95/NT do if set up properly, but other OSes generally do not. See the discussion of the -f and -u options in the UnZip man page (or unzip.txt). BeOS doesn't currently support timezone information at all, but this will probably be added soon. Then test your new UnZip on a few archives and let us know if there are problems (but *please* first make certain that the archives aren't actu- ally corrupted and that you didn't make one of the silly mistakes dis- cussed in the documentation). If possible, double-check any problems with PKUNZIP or with a previous version of UnZip prior to reporting a "bug." The zipfile itself may be damaged.To install:===========Unix The default prefix for the installation location is /usr/local (things go into the bin and man/man1 subdirectories beneath the prefix), and the default man-page extension is "1" (corresponding to man/man1, above). To install as per the defaults, do "make install"; otherwise do "make prefix=/your/path manext=your_extension install". (For Intel Unix flavors where the assembler CRC routines were used [ASM_CRC], use the install_asm target instead of the regular install target.) For example, to install in your home directory with "l" as the man-page extension (for "local"), do "make prefix=$HOME manext=l install". Permissions will be 755 for the executables and 644 for the man pages. In general root must perform in- stallation into a public directory. Do "rehash" if your shell requires it in order to find the new executables.VMS Install UnZip as foreign symbol by adding this to login.com: $ unzip == "$disk:[dir]unzip.exe" $ zipinfo == "$disk:[dir]unzip.exe ""-Z""" where "disk" and "dir" are the location of the UnZip executable; the "$" before the disk name is important, as are the double-double-quotes around the -Z. Some people, including the author, prefer a short alias such as "ii" instead of "zipinfo"; edit to taste. Optionally also install unzipsfx for use with the MAKESFX.COM command file. See vms/README (or [.VMS]README.) for details on this and for notes/warnings about zipfiles and UnZip under VMS.OS/2, MS-DOS, NT, Atari, Amiga Move or copy unzip.exe (or unzip.ttp, or UnZip, or whatever) to a direc- tory in your path; also possibly copy the UnZip executable to zipinfo.exe (or ii.exe), or else create an alias or a batch/command file for ZipInfo ("@unzip -Z %1 %2 %3 %4 %5 %6 %7 %8 %9" under MS-DOS). The latter is only relevant if NO_ZIPINFO was *not* defined, obviously... Under djgpp 2.x, zipinfo.exe is a 2K stub symbolically linked to unzip.exe.Acorn RISC OS Copy the executables unzip, funzip and zipinfo to somewhere in your Run$Path. See your Welcome manual if you don't know about Run$Path.BeOS The default prefix for the installation location is /boot/usr/local (things go into the bin and man/man1 subdirectories beneath the prefix), and the default man-page extension is "1" (corresponding to the man/man1, above). Of course, these Unix man-pages aren't useful until someone ports something that can format them... plain text versions are also installed with an extension of ".txt". To install, do a "make install", or to change the prefix, do "make prefix=/your/path install". For example, to install in /boot/bin, do "make prefix=/boot/bin install".Macintosh MacZip requires at least System 7 and a Macintosh with a minimum of a Motorola 68020 or PowerPC 601 processor. Other configurations may work but it is not tested at all. The application (MacZip) is distributed as a combination of zip and unzip in one program. The offical release is a fat binary with both regular 68K and native PowerPC versions included. Move the executable(s) somewhere--for example, drag it (or them) to your Applications folder. For easy access, make an alias in the Launcher Control Panel or directly on your desktop. This port supports also Apple-event.So you can install it in your WWW-Browser as a helper-app. Look into "macos/README.TXT" (or ":macos:README.TXT" on Mac) for further info.Human68K, TOPS-20, AOS/VS, MVS, VM/CMS, etc. Dunno, sorry...
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -