X-Git-Url: http://git.osdn.net/view?p=mingw%2Fwebsite.git;a=blobdiff_plain;f=setup.html;h=391bb28824c2683b96b2f856d0fb5487f2417828;hp=9b7fb8fce5777283d9a6c5a32bac09000596ce94;hb=HEAD;hpb=28eeb330100a39cdd168202ea0abe2fa2bc72793
diff --git a/setup.html b/setup.html
index 9b7fb8f..391bb28 100644
--- a/setup.html
+++ b/setup.html
@@ -569,8 +569,39 @@ this, then the PATH
setting in the process environment
you should  modify the environment configuration,
as advised below.
-
If the preceding check indicates that +
Additionally,
+a number of MinGW applications — any comtemporary
+version of the GNU Debugger being a notable example — may
+require a definition of the HOME
environment variable.
+Typically,
+Unix
systems define this,
+to represent the path name of the current user’s
+default working directory,
+but MS‑Windows uses the USERPROFILE
variable
+for this purpose,
+so HOME
is not normally defined.
+
To check whether the HOME
variable is defined,
+or not:–
+
+C:\Users\me> echo %HOME% ++in a
Command
Prompt
console window;
+if HOME
has been suitably configured,
+this should produce output similar to:
++C:\Users\me> echo %HOME% +C:\Users\me ++but it is more likely to produce no output at all, +in which case you should consider adding a
HOME
variable
+definition to your environment variables configuration.
+If the preceding checks indicate that
the PATH
configuration needs to be adjusted,
+or that the HOME
variable has not been defined,
then you should proceed as follows:–
C:\MinGW\bin
,
with prefix substitution as required,
as its value.
HOME
variable,
+click the New
button, and create the requisite entry;
+it should be given a suitable value, which typically, could be to
+inherit the value of the USERPROFILE
variable.
+OK
button on each nested dialogue box,
as you walk focus back to the top level of the
Control
Panel
,
@@ -681,24 +717,26 @@ you should name this new “shortcut” as
or any similar alternative name of your own choice.
Target
of your new “shortcut” to:
-%comspec% /k path %PATH%;C:\MinGW\bin +%comspec% /c path %PATH%;C:\MinGW\bin&set HOME=%USERPROFILE%&%comspec%(with substitution for
C:\MinGW
, as appropriate,
if you chose an alternative prefix at installation time).
Alternatively, create a new MS‑Windows batch file,
(called C:\MinGW\mingw.bat
,
-for example), within which the:
+for example), with content similar to:
+set HOME=%USERPROFILE% path %PATH%;C:\MinGW\bin +%comspec%-
PATH
augmentation command is executed,
and set the “shortcut” Target
to:
-%comspec% /k C:\MinGW\mingw.bat +%comspec% /c C:\MinGW\mingw.bat(This latter alternative offers greater flexibility than the former, insofar as the batch file may be modified to accommodate configuration -options beyond the minimally required
PATH
augmentation).
+options beyond the minimally required PATH
augmentation,
+and the recommended HOME
variable assignment).