D-2.1 source package: D-commands; data processing utility

[ English | Japanese ]

Regular expression handler part is modified from Henry Spencer's V8 regexp(3).

This program is free software. You can redistribute, reuse or modify it freely unless you sell it commercially.

This program is distributed without any warranty.

Contact email: miyazawa@nii.ac.jp

See Release Note for the information of this version.

HOW TO INSTALL D-2.1 SOURCE PACKAGE

1. Windows 2. Solaris 3. SunOS4 4. Linux 4. Other platforms

0. General

This distribution has "src" directory containing source programs, and "html" directory containing manuals in HTML format. The first step of installation is to compile the source programs and the second step is to copy executable files and manuals into appropriate directory. The last step is to set the PATH value, so that you can use D-commands from your shell.

There are no hidden elements like "resources" or "registries" or "DLL" files you have to set.

Note that the instruction below is just an example of several possible solutions.

Uninstalling D is just to delete these files and erase the entry from PATH definition.

1. Windows

COMPILE and COPYING FILES:

You need Microsoft Visual C/C++ with "cl", "nmake" and "cmd.exe" (which means Windows2000 or later) with command extension switch on (which is default). Go to "src" directory.

> cd src

You may want to change Makefile.win32 file. The first two lines are:

INSTALLDIR = c:\D-2.1\bin
HTMLDIR = c:\D-2.1\html

These are directories to which executable files and manuals are installed.

> nmake /f Makefile.win32

(Some warning messages which can be ignored will be printed).

> nmake /f Makefile.win32 install

You may need administrator privilege to do these jobs. Ask your administrator, or you may use other disk position which you can use instead of "c:\D-2.1".

SETTING PATH:

Windows2000 or XP: From "Start" - "Settings" - "Control Panel", double click "System" and select "Advanced" tab, then click "Environment Variables" button. Select "path" in the User variables list and click "Edit" button. Add ";c:\D-2.1\bin" at the end and click "Ok" button.

Window95, 98 or ME users have to use other mechanisms for the PATH. Usually PATH is given from the "autoexec.bat" file and you have to change PATH command in the file.

It is not recommended to use D-commands under Windows95, 98 or ME due to the functional limitations of the shell (command.com) under DOS prompt, though most of commands work properly.

MANUAL ENTRY (OPTIONAL):

Click right button on "Start" and click "Open", double click "programs" and choose "New" - "Shortcut" from the "File" menu. Follow the wizard and fill the location box with "c:\D-2.1\html\index.html" or "c:\D-2.1\html\eng\index.html" and name box with "D-2.1 manual" (or whatever you like).

UNINSTALL:

Delete c:\D-2.1. Then erase entries from PATH and start menu just as the reverse procedure of installation. You can't use "Add or Remove Programs" in the control panel to uninstall D-2.1.

2. SOLARIS

COMPILE and COPYING FILES:

You need FORTE DEVELOPPER or other "cc" and "make" environment. Go to "src" directory.

$ cd src

You may want to change Makefile.solaris file. First two lines are:

INSTALLDIR= /opt/D-2.1/bin
HTMLDIR= /opt/D-2.1/html

These are directories to which executable files and manuals are installed.

$ make -f Makefile.solaris

(Some warning messages will be printed).

Here, you may need su command when you use the default file position. Make sure you can use make command from root account.

$ make -f Makefile.solaris install

SETTING PATH:

You add /opt/D-2.1/bin to your PATH, usually by editing your .profile or .cshrc file.

MANUAL ENTRY (OPTIONAL):

You may add file:/opt/D-2.1/html/index.html or file:/opt/D-2.1/html/eng/index.html to your web browser's bookmark. There are many other ways to make shortcut for documents. This is just a suggestion.

UNINSTALL:

Being super user if needed,

$ rm -r /opt/D-2.1

Erase PATH entry and bookmark pertaining to D-2.1.

3. SunOS4

COMPILE and COPYING FILES:

Go to "src" directory.

$ cd src

You may want to change Makefile.sunos4 file. First two lines are:

INSTALLDIR= /usr/local/bin
HTMLDIR= /usr/local/D-2.1/html

These are directories to which executable files and manuals are installed.

$ make -f Makefile.sunos4

(Some warning messages will be printed). You may have to be super user here.

$ make -f Makefile.sunos4 install

SETTING PATH:

If needed, add /usr/local/bin to your PATH. Usually, your PATH is set in your shell initializing script, such as .cshrc, .profile or .bashrc.

MANUAL ENTRY (OPTIONAL):

You may add file:/usr/local/html/D-2.1/index.html or file:/usr/local/html/D-2.1/eng/index.html to your web browser's bookmark. There are many other ways to make shortcut for documents. This is just a suggestion.

UNINSTALL:

If you keep Makefile.sunos4 (it can be in any directory and other source files are not necessary), being super user if needed, and use:

$ make -f Makefile.sunos4 uninstall

to remove binary files and html files. (You may remove empty directories produced by above operation). Then, remove your path entry and web browser's bookmark pertaining to D-2.1.

4. Linux

COMPILE and COPYING FILES:

Go to "src" directory.

$ cd src

You may want to change Makefile.linux file. First two lines are:

INSTALLDIR= /usr/local/bin
HTMLDIR= /usr/local/D-2.1/html

These are directories to which executable files and manuals are installed.

$ make -f Makefile.linux

(Some warning messages may be printed). You may have to be super user here.

$ make -f Makefile.linux install

SETTING PATH:

If needed, add /usr/local/bin to your PATH. Usually, your PATH is set in your shell initializing script, such as .bashrc, .profile or .cshrc.

MANUAL ENTRY (OPTIONAL):

You may add file:/usr/local/html/D-2.1/index.html or file:/usr/local/html/D-2.1/eng/index.html to your web browser's bookmark. There are many other ways to make shortcut for documents. This is just a suggestion.

UNINSTALL:

If you keep Makefile.linux (it can be in any directory and other source files are not necessary), being super user if needed, and use:

$ make -f Makefile.linux uninstall

to remove binary files and html files. (You may remove empty directories produced by above operation). Then, remove your path entry and web browser's bookmark pertaining to D-2.1.

5. Other Platforms

COMPILE and COPYING FILES:

In the src directory, Config_XXX.h files, where XXX is platform name, contain the platform dependent definitions for the C source programs. Corresponding Makefile.XXX defines file positions, compile command name and options for the platform. Study them well, then you have to create your Config_XXX.h and Makefile.XXX files for your platform.

Then, good luck! The author will welcome your suggestions, questions or comments.

Once you can compile successfully, other procedures will be obvious for you.