Installing gawk
There are no substantial differences when installing gawk on various Atari models. Compiled gawk executables do not require a large amount of memory with most awk programs and should run on all Motorola processor based models called further ST, even if that is not exactly right. In order to use gawk , you need to have a shell, either text or graphics, that does not map all the characters of a command line to upper-case. Maintaining case distinction in option flags is very important see section Command Line Options.
These days this is the default, and it may only be a problem for some very old machines. If your system does not preserve the case of option flags, you will need to upgrade your tools. Pipes are nice to have, but not vital. An initial port was done with gcc. You may actually prefer executables where int s are four bytes wide, but the other variant works as well. If you run out of memory compiling such a file, try reducing the optimization level for this particular file; this may help. With a reasonable shell Bash will do , and in particular if you run Linux, MiNT or a similar operating system, you have a pretty good chance that the configure utility will succeed.
Even if configure produced something, it might be advisable to compare its results with the sample versions and possibly make adjustments. This basically assumes the TOS environment with gcc. Modify these sections as appropriate if they are not right for your environment. Depending upon your particular combination of shell and operating system, you may wish to change the file to indicate that system is available. An executable version of gawk should be placed, as usual, anywhere in your PATH where your shell can find it.
While executing, gawk creates a number of temporary files. If either one is found, its value is assumed to be a directory for temporary files. This directory must exist, and if you can spare the memory, it is a good idea to put it on a RAM drive. Instead, you must use a comma to separate elements in the path. In some circumstances the OS routines for file handle pool processing lose track of certain events, causing the computer to crash, and requiring a reboot.
Often a warm reboot is sufficient. Fortunately, this happens infrequently, and in rather esoteric situations. Whenever it is possible that a file created by gawk will be used by some other program, use only backslashes. Also remember that in awk , backslashes in strings have to be doubled in order to get literal backslashes see section Escape Sequences.
Peter Krauss Peter Krauss 1 1 gold badge 3 3 silver badges 16 16 bronze badges. Try removing the dot at the end? Hi mosvy, all again. Not need sudo? You don't need sudo or install in your system directories they should be under the control of the distro, period. Then you should do the same with gawkextlib and the csv extension. That's pretty involved and there are a thousand way that could fail lack of development packages, etc.
Frankly, I don't see the point of it -- the csv format is no big deal, after all. And I'm not sure that you have to build gawk from source at all.
Show 2 more comments. Active Oldest Votes. This recipe worked for me right now. Improve this answer. I installed apt install autoconf.. Seems insane You don't need sudo at all for that. You do need libtool , autoconf , automake , development packages, compilers, etc. I won't turn this answer into a tutorial on how to set a complete development platform, sorry. See section Reporting Problems and Bugs , for the electronic mail addresses of the people who did the respective ports.
There are three ways to get GNU software:. The GNU software archive is mirrored around the world. The up-to-date list of mirror sites is available from the main FSF web site. Try to use one of the mirrors; they will be less busy, and you can usually find one closer to your site. The current patch level is 0, but when retrieving distributions, you should get the version with the highest version, release, and patch level. Note, however, that patch levels greater than or equal to 80 denote "beta" or non-production software; you might not want to retrieve such a version unless you don't mind experimenting.
You should consult a local expert. That's all there is to it! All of the tests should succeed. If the failure is not described there, please send in a bug report see section Reporting Problems and Bugs. This minor node is of interest only if you know something about using the C language and the Unix operating system. When using an ISO C compiler, function prototypes are used to help improve the compile-time checking.
The three things described by this file are: what header files are available, so that they can be correctly included, what supposedly standard functions are actually available in your C libraries, and various miscellaneous facts about your variant of Unix. It may do so by not exiting with an error when a library function is not available. If these steps do not work, please send in a bug report see section Reporting Problems and Bugs. Full instructions are given below. You must specify the location prefix for the installation directory.
It should work without modifications for VMS V4. To install gawk , all you need is a "foreign" command, which is a DCL symbol whose value begins with a dollar sign. For example:. Substitute the actual location of gawk.
After loading the help text,. Command line parsing and quoting conventions are significantly different on VMS, so examples in this book or from other sources often need minor changes. They are minor though, and all awk programs should run correctly. The VMS port of gawk includes a DCL -style interface in addition to the original shell-style interface see the help entry for details. One side-effect of dual command line parsing is that if there is only a single parameter as in the quoted string program above , the command becomes ambiguous.
When defining it, the value should be quoted so that it retains a single translation, and not a multi-translation RMS searchlist.
Then execute the following commands:. The second command will compile and link gawk. Under V1. These warnings can be ignored.
Once built, gawk will work like any other shell utility. The binary distribution will contain a separate file describing the contents. In particular, it may include more than one version of the gawk executable.
An sh -like shell as opposed to command. Users of Stewartson's shell on DOS should examine its documentation on handling of command-lines. In particular, the setting for gawk in the shell configuration may need to be changed, and the ignoretype option may also be of interest.
A list of targets will be printed if the make command is given without a target. Using make to run the standard tests and to install gawk requires additional Unix -like tools, including sh , sed , and cp.
Most of the tests will work properly with Stewartson's shell along with the companion utilities or appropriate GNU utilities. There are no substantial differences when installing gawk on various Atari models. Compiled gawk executables do not require a large amount of memory with most awk programs and should run on all Motorola processor based models called further ST, even if that is not exactly right. In order to use gawk , you need to have a shell, either text or graphics, that does not map all the characters of a command line to upper-case.
0コメント