clojure之路:Emacs+clojure环境搭建,"File error: Cannot open load file, inversion" "clojure update-first"问题解决

  话说任何语言的学习,环境搭建是一个蛋疼的问题,网上google的n多文章,试了一边一边又一边,终于在某个下午搭建好列环境,基于linux系统环境搭建总结如下:

1.主要的参考文章:

  http://sunng.info/blog/2011/09/beginning-emacs-for-clojure/

2.注意事项:

  a).rpm -qa emacs查看emacs的版本,如果不是emace-24.*版本,则回出现“File error: Cannot open load file, inversion”问题,接着会导致所有的后续工作都无法成功,详情见https://github.com/technomancy/emacs-starter-kit/issues/155;果断rpm -e xxx --nodeps卸载当前的emacs版本,然后下载24.x版本,解压,./configure,make,make install;注意configure报错,则根据其提示加上--with-xx=no即可;

  b).更加令人头疼的事情是参考文章中的lein plugin install swank-clojure 1.3.2,从官网下载lein-2.0最新版本竟然"update-fisrt"错误,什么奇怪的问题都碰到了;之后google换其它安装方法死活不成功,终于在一遍遍的努力下,发现2.0版本和1.x版本差别很大,特别对plugin;果断换1.5.2版本:https://github.com/technomancy/leiningen/tree/1.5.2;然后lein slef-install;再lein plugin install swank-clojure 1.3.2;终于成功了,泪流满面。。。

3.其它资料链接:

  http://www.blogjava.net/killme2008/archive/2012/05/19/378535.html

感谢广大朋友的分享!

posted @ 2013-02-19 18:29  成金之路  阅读(683)  评论(0编辑  收藏  举报