How am I going to resolve the issue below?
PS C:\Users\PC Workstation> clj
clj : The 'clj' command was found in the module 'ClojureTools', but the module could not be loaded. For more information, run
'Import-Module ClojureTools'.
At line:1 char:1
+ clj
+ ~
+ CategoryInfo : ObjectNotFound: (clj:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CouldNotAutoloadMatchingModule
PS C:\Users\PC Workstation> .\build-clojure-msi.ps1
.\build-clojure-msi.ps1 : The term '.\build-clojure-msi.ps1' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:1
+ .\build-clojure-msi.ps1
+ ~
+ CategoryInfo : ObjectNotFound: (.\build-clojure-msi.ps1:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
@wnovo2003 I was asking because I saw "clj-msi" and the wiki does not seem to mention clj-msi, so I wondered how that could be
If you want to have a thing that works in Windows without powershell, you can try scoop-clojure + clj-deps
@borkdude there is also this thread where I recommended using clj-msi as an option: https://clojurians.slack.com/archives/C053AK3F9/p1685368690591729
It seems like @wnovo2003 was trying to build clj-msi rather than just downloading + installing it
When I followed the instructions, I was really intending to install clj on Windows. After successfully doing what was written on the site, I tried to run the command clj and clojure. Both threw the same error.
Ah... for the msi @wnovo2003, the idea was to download and install it from https://github.com/casselc/clj-msi/releases/download/v1.11.1.1273-4/clojure-1.11.1.1323.msi
After reading Sean Corfield's response on my query, I realized that he was right, I could use WSL to run Clojure on Windows 10. Thus, I tried to install WSL2 and then Java and the other requirements to install Clojure. After heeding what Sean suggested, I was able to run Clojure without problems. Thanks a lot again!
Ok, glad you have a solution that works for you!
Yes. Thanks a lot!
That clj-msi site should probably emphasize that you should not run those build instructions, unless you are developing clj-msi
Yeah, true, that would be helpful to newcomers for sure.
Can you specify how you got here?
I used Ubuntu as my OS in my laptop and there was no problem installing leiningen and Clojure on it. But this time around, I tried to install Clojure in Windows 10 in my PC. After installing Java and other prequisites, I installed Clojure by following the instruction outlined in this site: https://github.com/clojure/tools.deps.alpha/wiki/clj-on-Windows
After, successfully following the directions, I tried to run clj or clojure in the Windows PowerShell but I got this error:
PS C:\Users\PC Workstation> clojure
clojure : The 'clojure' command was found in the module 'ClojureTools', but the module could not be loaded. For more information,
run 'Import-Module ClojureTools'.
At line:1 char:1
+ clojure
+ ~
+ CategoryInfo : ObjectNotFound: (clojure:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CouldNotAutoloadMatchingModule
I am ok now as I followed the recommendations given by Sean Corfield. I use WSL2 and from their installed Java, Leiningen and Clojure along with the other prerequisites.
Sorry, have been travelling/hiking without a computer recently and obviously missed out on some things. I just updated the docs to separate the build instructions and emphasize installation. Any other feedback is appreciated.
Awesome-sauce @chuck.cassel, changes to README look great!