PredixDev / predix-rmd-ref-app

predix-rmd
Other
74 stars 98 forks source link

Not able to run installRefApp.py script on windows machine. #5

Closed priyabandaru closed 8 years ago

priyabandaru commented 8 years ago

Getting the below error on windows machine . \ Installing Reference Application **

Setting Redis config.predixRedis as redis-1

Setting Redis config.predixRedis as redis-5

Pulling Submodules

fatal: Not a git repository (or any of the parent directories): .git

fatal: Not a git repository (or any of the parent directories): .git

Build using maven setting : ~/.m2/settings.xml Maven Repo :

[ERROR] Error executing Maven.

[ERROR] The specified user settings file does not exist: D:\Predix20\Samples\predix-rmd-app\new\predix-rmd-ref-app-master\scripts~.m2\settings.xml

Maven build failed.

dianezhen commented 8 years ago

priyabandaru,

I think the install scripts are geared towards a *nix type platform, I had this same issue. I updated the scripts/refAppConfig.py script and changed line 69 'mvnsettings = ' to point to my user windows user directory specifically (eg C:/Users//.m2/settings.xml). It then worked for me.

Diane

priyabandaru commented 8 years ago

Thanks Diane , I will make that change. There are also windows user and they will face this issue .

dianezhen commented 8 years ago

priyabandaru, agreed. This concern has also been noted on the predix forum.

sankarnr commented 8 years ago

Thanks for letting us know. please use the install script as follows:

python installRefApp.py -s

I will update when the fix will be patched or released.

thanks.

sankarnr commented 8 years ago

the commandline usage is broken in my previous post:

python installRefApp.py -s maven-settings-xml-file-goes-here

priyabandaru commented 8 years ago

I will update the user about this option . Thank you

gstroup commented 8 years ago

windows users need cygwin for now.

turnerth commented 8 years ago

we just tested the latest version on windows and it's running fine. We now recommend to use git-bash on windows and will be updating tutorials to state that.