Topic: PATH

I discovered today that I had lost ALL OF the pathnames from my PATH system variable - all, that is, except for the Simply Fortran path, which, in my case, is

C:\Program Files (x86)\Fortran\Simply\mingw\bin.

This is all that there was in my PATH variable.

This is not too much of a disaster, I think, because I have been able to type back in the most obvious pathnames and I daresay I'll find out one way or another is there were any less obvious ones I also need.

I've searched my various startup tricks with virtual drives to see if this is anything I've caused myself, and I don't think it is.  I therefore don't know how this has happened, but I am just wondering whether there is any possibility of an accidental error in the Simply Fortran 'install' process.  Perhaps the Simply Fortran installer replaces the path variable contents with its own pathname rather than extending the existing contents of the system path variable by appending its own pathname to the end.

Most probably there is no such error in the SF install process but I thought I should ask - just to eliminate this.

Re: PATH

John,

I can't apologize enough for this problem.  Looking through the installer code, it is likely that Simply Fortran is the culprit.  The installer script attempts to append the path to gfortran and its associated tools to the machine's path variable.  However, we missed a minor warning in the script code that performs this action that explicitly states that if the appended path exceeds 1024 characters, the script simply replaces the entire path string rather than restoring the original.

We're currently looking into a fix, and this problem should not be present in the 1.19 installer, which is currently being prepared.  Again, sorry for this relatively nasty side effect of installing Simply Fortran.

Jeff Armstrong
Approximatrix, LLC

Re: PATH

That's OK Jeff.  I've been able to restore the PATH by copying from another laptop on our company system.
On my home PC I'll have to work it out from 1st principles but I expect I can do it.

My PATH variable, with the Simply Fortran addition, is 598 chars long.

----
John

Re: PATH

Strange...  the PATH on my home PC is 599 chars long, yet I have installed Simply Fortran 1.18, and the Simply Fortran pathnames have apparently been successfully APPENDed to the original path, rather than replacing it.

Why did the Simply Fortran installer overwrite my path on this PC?

Could the fact that my PATH variable has pathnames for more than one drive have anything to do with it?
Here's what it contains:

C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SystemRoot%\System32_more;C:\Program Files (x86)\Common Files\Adobe\AGL;C:\Program Files (x86)\Common Files\Ulead Systems\MPEG;C:\Program Files (x86)\jZip;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Common Files\DivX Shared\;C:\Program Files (x86)\Windows Live\Shared;d:\Program Files (x86)\ Fortran\Simply\mingw\bin;d:\Program Files (x86)\Simply Fortran\mingw\bin

This is AFTER installing Simply Fortran on my home PC.
--
J.

Re: PATH

Thank you for such a fantastic blog. Where else could anyone get that kind of info written in such a perfect way? I have a presentation that I am presently working on, and I have been on the look out for such information..
{"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.8505600094795227, "perplexity": 2969.6516673516007}, "config": {"markdown_headings": false, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2020-24/segments/1590347389355.2/warc/CC-MAIN-20200525192537-20200525222537-00172.warc.gz"}