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

HOW TO INSTALL D-2.1 SOURCE PACKAGE

1. Windows 2. Solaris 3. SunOS4.x 4. Linux

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 our 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, COPY 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, COPY 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 when you use the default file position. Make sure you can use >make 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:

There is no system central entry point for HTML files. You may add file:/opt/local/html/index.html or file:/opt/local/html/eng/index.html to your web browser's bookmark.

UNINSTALL:

Being super user,

>rm -r /opt/D-2.1

Erase PATH entry and bookmark pertaining D-2.1.

3. SunOS4.x

COPYING FILES:

(Current directory is where this README-src.txt file is). Being super user,

>install bin/* /usr/local/bin
>install -d /usr/local/html/D-2.1
>cp -r html/* /usr/local/html/D-2.1

SETTING PATH:

If /usr/local/bin is not already in your PATH, add it. Usually, it is set from each user's .profile or .cshrc (or .bashrc etc.) file.

MANUAL ENTRY:

There is no system central entry point for HTML files. 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.

UNINSTALL:

Being super user,

>cd /usr/local/bin
>rm Dcat Dproj Dfd Dfreq Dunbundle DfromLine \
DtoLine Dtail Dbundle Dgrep Dhead Dorder \
Drename Drc Dpaste Dextract DtoTex Dmeans \
Dpack Dunpack Dtie Duntie Dsort Djoin Dpr_lc \
Dselect Dupdate Ded Dpr Dfdp Drcp
>rm -r /usr/local/html/D-2.1

Erase PATH entry (if needed) or bookmark pertaining D-2.1.

4. Linux

COPYING FILES:

(Current directory is where this README-src.txt file is). Being super user, ???

>install bin/* /usr/local/bin
>install -d /usr/local/html/D-2.1
>cp -r html/* /usr/local/html/D-2.1

SETTING PATH:

(Usually no need, but) If /usr/local/bin is not already in your PATH, add it. Typically, it is set from each user's .bashrc? .profile or .cshrc (or .bashrc etc.) file.

MANUAL ENTRY:

It depends on the window system you are using. There is no system central entry point for HTML files. 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.

UNINSTALL:

Being super user,

>cd /usr/local/bin
>rm Dcat Dproj Dfd Dfreq Dunbundle DfromLine \
DtoLine Dtail Dbundle Dgrep Dhead Dorder \
Drename Drc Dpaste Dextract DtoTex Dmeans \
Dpack Dunpack Dtie Duntie Dsort Djoin Dpr_lc \
Dselect Dupdate Ded Dpr Dfdp Drcp
>rm -r /usr/local/html/D-2.1

Erase PATH entry (if needed) or bookmark pertaining D-2.1.