Octave for Microsoft Windows: Difference between revisions

(→‎Printing (installing Ghostscript): describe how to use the 64 bit Ghostscript)
Line 556: Line 556:
the Destination directory used in these instructions.
the Destination directory used in these instructions.


In order for Octave to find Ghostscript, its Destination directory used for the install must
In order for Octave to find Ghostscript, the directory containing Ghostscript's command line
be in the command shell's path.  This may be done by modifying the path variable via the
program must be in the command shell's path.  The name of Ghostscript's command
Control Panel, or by having Octave modify the path variable to include the Destination
line program may vary.  Some examples are {{Codeline|gswin32c.exe}}, {{Codeline|gswin64c.exe}},
directory.
{{Codeline|gs.exe}}, and {{Codeline|mgs.exe}}.
To directory containing Ghostscript's command line program may either be added to the command
shell's using Windows Control Panel, or by having Octave modify the {{Codeline|path}} variable to
include the directory where Ghostscript's command line programs resides.


For the latter, to following lines may be placed in the {{Codeline|<nowiki>~/.octaverc</nowiki>}} file.
For the latter, to following lines may be placed in the {{Codeline|<nowiki>~/.octaverc</nowiki>}}
file (where {{Codeline|~}} indicates the user's home folder).
The variable {{Codeline|<nowiki>gs_path</nowiki>}} should be set to the Destination
The variable {{Codeline|<nowiki>gs_path</nowiki>}} should be set to the Destination
directory where Ghostscript was installed.
directory where Ghostscript was installed.
Line 570: Line 574:
     setenv ('path', strcat (cmd_path, pathsep (), gs_path));
     setenv ('path', strcat (cmd_path, pathsep (), gs_path));
   endif
   endif
In this case, the value of {{Codeline|gs_path}} has been set to the location of Ghostscript's command
line program for the GPL's 8.15 version of Ghostscript.  The location for other versions may differ.
Please determine the location of the installed Ghostscript command line program and make the needed
adjustments to these instructions.


To set the path via the Control Panel,
To set the path via the Control Panel,
364

edits