newville at cars.uchicago.edu
Thu Sep 10 10:50:39 CDT 2015
Sorry for delay, took me a while to get around to trying out the new
On Tue, Sep 8, 2015 at 1:12 PM, Bruce Ravel <bravel at bnl.gov> wrote:
> On 09/08/2015 02:02 PM, Matt Newville wrote:
>> Any chance of trying out the suggestions in
>> https://github.com/bruceravel/demeter/issues/24 to try to avoid PATH
>> issues, and allow Demeter to be installed in the users directory (sans
>> admin privilege)?
> My intent was to address that with this commit:
> although without the check for the perl executable.
> Do the bat files that get generated still seem wrong to you?
That looks much better FWIW, I installed to C:\Demeter, not C:\Strawberry
because other tools I use (epics on windows) also often want to use
C:\Strawberry. Anyway, with that, the top of dathena.bat reads:
@rem = '--*-Perl-*--
IF NOT EXIST %DOTDIR% MD %DOTDIR%
if "%OS%" == "Windows_NT" goto WinNT
C:\Demeter\perl\bin\perl.exe -x -S "%0" %1 %2 %3 %4 %5 %6 %7 %8 %9 >
C:\Demeter\perl\bin\perl.exe -x -S %0 %* > "%APPDATA%\demeter\dathena.log"
if NOT "%COMSPEC%" == "%SystemRoot%\system32\cmd.exe" goto endofperl
if %errorlevel% == 9009 echo You do not have Perl in your PATH.
if errorlevel 1 goto script_failed_so_exit_with_non_zero_val 2>nul
which is much, much better. It appears the
'#!c:\strawberry\perl\bin\perl.exe' is just ignored (athena runs and even
shows a wxt gnuplot terminal on 64-bit Windows7), but shouldn't be removed
Two suggestions: First, if the apparently-generated-at-install time full
path for perl ("C:\Demeter\perl\bin\perl.exe" above) was replaced by
"perl.exe" (because, now you now know the path is correct), then the entire
"C:\Demeter" tree could be moved after installation, and all the batch
files (though not the shortcuts to the batch files generated at install
time) would work.
Second, if the default install location was (say) %APPDATA%\DemeterPerl
(%APPDATA%\demeter already being the DOTDIR equivalent). That would mean
the installation did not need Admin privileges.
Anyway, it's a big improvement and should avoid many of the PATH issues
we've seen recently.
--Matt Newville <newville at cars.uchicago.edu> 630-252-0431
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ifeffit