卸载/重新安装leiningen(clojure server)相关问题 [英] Uninstall/Reinstall leiningen(clojure server) related issues

查看:28
本文介绍了卸载/重新安装leiningen(clojure server)相关问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如我在这里询问并回答的那样,我发现运行 'sudo lein deps 会导致一些问题,迫使我运行 'sudo lein swank',这很烦人.而且 有人告诉我不要使用 sudo. 我使用的是 Mac OS X 10.6.4.

As I asked and answered here, I found that running 'sudo lein deps causes some problem that forces me to run 'sudo lein swank', which is annoying. And I was told not to use sudo. I use Mac OS X 10.6.4.

所以,我会尝试卸载并重新安装 leiningen.

So, I'll try to uninstall and reinstall leiningen.

  • 删除 ~/.m2 目录只是卸载,是否正确?

我按照此处中说明的步骤进行操作.

I followed the steps explained here.

  1. 将lein"复制到 ~/bin/lein 并使其可运行.
  2. 运行 'lein self-install',我看到 ~/.m2/repository 已安装.
  3. 使用 'http://github.com/technomancy/leiningen.git<下载 leiningen' 到 ~/bin/leinigen

  1. copy the 'lein' to ~/bin/lein and make it runnable.
  2. Run 'lein self-install', and I see ~/.m2/repository is installed.
  3. download leiningen using 'http://github.com/technomancy/leiningen.git' to ~/bin/leinigen

  • 在这个阶段,我不能运行 'lein help',而是运行 'sudo lein help'.这有什么问题吗?
  • At this stage, I can't run 'lein help', but 'sudo lein help'. What's wrong with this?

问题

  • 问:如何用leiningen完美卸载?
  • 问:为什么使用 'sudo' 会使 lein 正确?
  • 推荐答案

    是删除 .m2 然后 lein self-install 应该可以解决这个问题 :)

    yes removing .m2 and then lein self-install should fix this :)

    当您可以 sudo lein 时...它会在 root 拥有的 .m2 中创建文件,因此删除这些文件,然后将它们重新创建为正确的用户(您)应该修复它.您或许也可以将他们的用户改回您自己.

    when you can sudo lein ... it created files in .m2 owned by root so removing these and then recreating them as the proper user (you) should fix it. you could perhaps also just change the user on them back to yourself.

    chown username:users ~/.m2/*
    

    这篇关于卸载/重新安装leiningen(clojure server)相关问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆