This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-05-29
Channels
- # announcements (4)
- # babashka (38)
- # beginners (66)
- # calva (35)
- # cider (3)
- # clj-on-windows (19)
- # cljs-dev (2)
- # clojure (29)
- # clojure-europe (15)
- # clojure-norway (2)
- # clojurescript (43)
- # clr (7)
- # community-development (6)
- # events (3)
- # hoplon (5)
- # lsp (23)
- # malli (7)
- # matrix (9)
- # nbb (53)
- # off-topic (5)
- # overtone (1)
- # practicalli (2)
- # re-frame (6)
- # reagent (17)
- # reitit (11)
- # specter (5)
- # tools-build (7)
- # xtdb (22)
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
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.
@U03JN22B596 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
@U04V15CAJ there is also this thread where I recommended using clj-msi as an option: https://clojurians.slack.com/archives/C053AK3F9/p1685368690591729
It seems like @U03JN22B596 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 @U03JN22B596, 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!
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
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 @U015879P2F8, changes to README look great!
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.