来自 USB 驱动器的 Clojure REPL
我现在正在尝试学习 Clojure,但这个周末要去我父母那里。他们有一台 Windows 笔记本电脑,但我不想安装任何东西...那么是否可以仅使用安装在 USB 驱动器上的文件来运行 Clojure REPL?
I'm trying to learn Clojure at the moment, but off to my parents this weekend. They have a Windows laptop, but I don't want to install anything...so is it possible to run a Clojure REPL solely with files installed on a USB drive?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
当然,这绝对有效。如果您将 Java 和 Clojure 安装到闪存驱动器上,它的工作方式与安装到普通硬盘驱动器上一样。
正如这篇博文建议您可以设置一个
clj.bat
文件:请记住,您父母的笔记本电脑不会设置任何环境变量(即 PATH),因此根据所有内容所在的位置,您需要对其进行调整以确保
java
已被识别,并且clojure.jar
位于类路径中。Sure, absolutely this will work. If you install both Java and Clojure onto a flash drive, it will work just the same as if you installed it onto a normal hard drive.
As this blog post recommends you can set up a
clj.bat
file:Just keep in mind that your parent's laptop won't have any environment variables set (i.e. PATH), so depending on where everything is located, you will need to tweak it to make sure
java
is recognized, andclojure.jar
is on the classpath.我遇到的最好的便携式 clojure“环境”是 Lisp Cabinet。
它提供了多个 lisp 环境的选项,但您也可以选择只有一个 clojure 环境。从网站上很难看出它是便携式的,但安装程序为您提供了将所有内容安装在一个文件夹中的选项,以获得完全便携式的体验。
编辑:对于 repl,当您启动它时,Lisp Cabinet 会为您提供适合您选择的环境的 emacs slime REPL(可能只是 clojure)。
The best portable clojure "environment" that I have come across is Lisp Cabinet.
It gives the option of multiple lisp environments, but you can choose to just have a clojure environment. It is a little dificult to discern from the website that it's portable, but the installer gives you the option of installing everything in one folder for a completely portable experience.
Edit: As for a repl, when you launch it, Lisp Cabinet gives you an emacs slime REPL for the environments that you choose (that would probably just be clojure).
您还可以在 USB 驱动器上安装 leiningen。然后致电
享受!
You could also install leiningen on the USB drive. Then call
Enjoy!