If you have installed the Enhydra development environment on Windows, you've probably run into the limitation that the Cygwin tools appear to require everything to be installed on the C: drive. This FAQ describes this limitation in more detail and gives instructions on moving the Cygwin tools to another drive.
There are four main pieces of a Lutris Enhydra installation on Windows:
The Cygnus tools, Enhydra installation, and your Enhydra applications
must all be on the same drive. This restriction is caused by
the way the Cygnus tools map the root path of the directory tree.
The Cygnus tools take /usr/local
to be C:\usr\local
if the tools are installed on the C drive. You can refer to other drives with the syntax
//D/some_dir
, but this cross-drive syntax breaks down when trying to invoke
Java from within the Cygnus shell. The general solution is to put Cygnus, Enhydra,
and your applications
on one drive. If your JDK is on another drive, run the configure command with
the following syntax:
configure //D/jdk1.2.2
The default drive to install everything on is the system drive, which is often the C drive. The system drive is where your operating system is installed. For example, if you have Windows NT installed on the F drive then you can install everything on the F drive without further configuration. If you need to move everything to a non-system drive you have to edit the Windows registry to reset where the Cygnus tools think the root of the file system is. The remaining instructions below show how to do this.
X:/bin X:/enhydra X:/usr X:/tmp
X:\bin\bash.exe
where X is drive letter. Exit the shell once it starts.
X:\enhydra\Enhydra.bat
in Notepad. Change references to C: to the
appropriate drive letter. You also have to edit the shortcuts that point to
the Enhydra.bat
file. Right click on the short cut
X:\enhydra\EnhydraShell_95_98
or X:\enhydra\EnhydraShell_NT
depending on your operating system and edit the path to the Enhydra.bat
file to reflect the correct drive. If you had previously created a desktop shortcut to the
batch file that starts the shell, you will have to edit its properties to point
to the new location of the batch file. Right click on icon, select properties,
and edit the path to the executable under the Shortcut tab. This step is shown
in the figure below.
Figure 1: Editing the Cygwin shortcut target.
Figure 2: Starting the Windows Registry Editor.
In the Registry editor, begin by backing up your current registry information. Go to the Registry menu and select Export Registry File. Save this file and reimport the copy of the original registry in the event that something goes wrong.
My Computer/HKEY_CURRENT_USER/Software/Cygnus Solutions/CYGWIN.DLL setup/b15.0/mounts
.
Find the subkey that has the listing that contains the mappings for native to "C:" and for unix to "/".
This is in the 04 entry by default. Right click on the entry Native and select edit. Change it from "C:" to the
appropriate drive letter. An example of the registry editor is shown below.
Figure 3: Editing the Native entry in the Registry Editor.
/tmp
directory. If everything worked, you should be able to
run the mount command and see something like this:
Enhydra$ mount Device Directory Type Flags \\.\tape1: /dev/st1 native text!=binary \\.\tape0: /dev/st0 native text!=binary \\.\b: /dev/fd1 native text!=binary \\.\a: /dev/fd0 native text!=binary D: / native text!=binary Enhydra$