[ 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.
1. Windows 2. Solaris 3. SunOS4 4. Linux 5. Other platforms
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.
You need Microsoft Visual C/C++ with "cl", "nmake" besides "cmd.exe" (which means Windows2000 or later) with command extension switch on (which is default). Go to "src" directory.
> cd src
You may modify Makefile.win32 file, especially of which first two lines:
INSTALLDIR = c:\D-2.2\bin
HTMLDIR = c:\D-2.2\html
that 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.2".
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.2\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.
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.2\html\index.html" or "c:\D-2.2\html\eng\index.html" and name box with "D-2.2 manual" (or whatever you like).
Delete c:\D-2.2. 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.2.
You need FORTE DEVELOPPER or other "cc" and "make" environment. Go to "src" directory.
$ cd src
You may modify Makefile.solaris file. First two lines are:
INSTALLDIR= /opt/D-2.2/bin
HTMLDIR= /opt/D-2.2/html
These are directories to which executable files and manuals are installed. Other lines you may modify are found in the top part of this file. Then;
$ 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
You add /opt/D-2.2/bin to your PATH, usually by editing your .profile or .cshrc file.
You may add file:/opt/D-2.2/html/index.html or file:/opt/D-2.2/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.
Being super user if needed,
$ rm -r /opt/D-2.2
Erase PATH entry and bookmark pertaining to D-2.2.
Go to "src" directory.
$ cd src
You may modify Makefile.sunos4 file. First two lines are:
INSTALLDIR= /usr/local/bin
HTMLDIR= /usr/local/D-2.2/html
These are directories to which executable files and manuals are installed. Other lines you may modify are found in the top part of this file. Then;
$ make -f Makefile.sunos4
(Some warning messages will be printed). You may have to be super user here.
$ make -f Makefile.sunos4 install
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.
You may add file:/usr/local/html/D-2.2/index.html or file:/usr/local/html/D-2.2/eng/index.html to your web browser's bookmark. There are many other ways to make shortcut for documents. This is just a suggestion.
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.2.
Go to "src" directory.
$ cd src
You may modify Makefile.linux file. First two lines are:
INSTALLDIR= /usr/local/bin
HTMLDIR= /usr/local/D-2.2/html
These are directories to which executable files and manuals are installed. Other lines you may modify are found in the top part of this file. Then;
$ make -f Makefile.linux
(Some warning messages may be printed). You may have to be super user here.
$ make -f Makefile.linux install
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.
You may add file:/usr/local/html/D-2.2/index.html or file:/usr/local/html/D-2.2/eng/index.html to your web browser's bookmark. There are many other ways to make shortcut for documents. This is just a suggestion.
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.2.
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.