clj-on-windows

mandudeman 2023-05-29T16:00:43.455199Z

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

mandudeman 2023-05-29T16:01:00.279879Z

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

borkdude 2023-05-30T07:55:13.999569Z

@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

borkdude 2023-05-30T07:55:32.775719Z

If you want to have a thing that works in Windows without powershell, you can try scoop-clojure + clj-deps

lread 2023-05-30T11:48:01.174669Z

@borkdude there is also this thread where I recommended using clj-msi as an option: https://clojurians.slack.com/archives/C053AK3F9/p1685368690591729

borkdude 2023-05-30T11:48:50.652569Z

It seems like @wnovo2003 was trying to build clj-msi rather than just downloading + installing it

mandudeman 2023-05-30T11:52:40.853529Z

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.

lread 2023-05-30T11:55:32.377979Z

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

mandudeman 2023-05-30T11:55:42.208059Z

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!

lread 2023-05-30T11:56:20.986339Z

Ok, glad you have a solution that works for you!

mandudeman 2023-05-30T11:56:39.561299Z

Yes. Thanks a lot!

borkdude 2023-05-30T11:56:49.510009Z

That clj-msi site should probably emphasize that you should not run those build instructions, unless you are developing clj-msi

borkdude 2023-05-30T11:56:55.106349Z

cc @chuck.cassel

lread 2023-05-30T11:57:23.065929Z

Yeah, true, that would be helpful to newcomers for sure.

borkdude 2023-05-29T16:04:40.609389Z

Can you specify how you got here?

mandudeman 2023-05-30T00:55:47.705119Z

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

mandudeman 2023-05-30T04:49:31.469989Z

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.

chucklehead 2023-06-13T18:06:53.309149Z

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.

🙏 2
lread 2023-06-13T20:09:14.638569Z

Awesome-sauce @chuck.cassel, changes to README look great!