kornelski / dssim

Image similarity comparison simulating human perception (multiscale SSIM in Rust)
https://kornel.ski/dssim
GNU Affero General Public License v3.0
1.07k stars 69 forks source link

won't run in Windows in Bash or PowerShell #95

Closed tomByrer closed 3 years ago

tomByrer commented 3 years ago

I have dssim.exe in the same directory as where I'm running my shells (root folder of VSCode project), & I keep getting the same error: bash: dssim: command not found & Powershell:

dssim : The term 'dssim' is not recognized as the name of a cmdlet, function, script file,    et, function, script file,                                                                t   
or operable program. Check the spelling of the name, or if a path was included, verify thah was included, verify that
the path is correct and try again.
At line:1 char:1
+ dssim                                                                                       
+ ~~~~~
    + CategoryInfo          : ObjectNotFound: (dssim:String) [], CommandNotFoundException  CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException 

In cmd.exe, I get the expected help when I run dssim, & works great with actual PNGs.

v3.0.0 dssim, Win10, VSCode

kornelski commented 3 years ago

You must put the executable in a directory that is searched when executables are run, usually specified as PATH environmental variable.

Alternatively, always specify absolute path to dssim.exe

tomByrer commented 3 years ago

Thanks for fast response! Sorry, I discovered the bug in bash when I put it in the same dir I have git installed; git works but not dssim.

edit: this does work; thanks for suggestion!

 /d/doc/prog/tb/img/chips-and-plaid (master)
$ D:/doc/prog/tb/img/chips-and-plaid/dssim.exe
You must specify at least 2 files to compare...