解决安装juno时出现Couldn't connect to Julia的问题

最近发现了一个好的数值计算语言,julia,关于它的介绍可以看这里:http://julia-zh-cn.readthedocs.org/en/latest/manual/introduction/

是一个集高速运算,语法简单易上手,出图精美于一身的语言,总之很强大。

作为它的IDE,juno是很好用的,juno基于lighttab。

短短几行就可以撸出这货:



julia的官网可以直接下载http://julialang.org/downloads/

有三个版本:

Julia (command line version)     命令行模式

Julia + Juno IDE bundles       带IDE的模式

Nightly builds      最新版本的julia,不保证稳定

起初当然是想着连同IDE一起下的比较省事,不过下载完解压好一登上去就Couldn't connect to Julia


方法一:下载juno(带IDE的模式)修改环境变量

解压juno后,添加环境变量LT_USER_DIR作为juno放置plugin的地方

我的是D:\juno\resources\app\plugins

然后打开juno耐心等待它初始配置julia,直至出现方法二中第五步的样子。


方法二:下载LightTab自行配置

看到juno官网上还是有篇教程的:http://junolab.org/docs/install-manual.html

不过顺序写的真心乱,我也是看了半天才看懂


下面开始说解决方法:

1、下载

lighttab:http://lighttable.com/

julia(command line version):http://julialang.org/downloads/

插件(plugin):

Juno:https://github.com/one-more-minute/Juno-LT/releases

Jewel:https://github.com/one-more-minute/Julia-LT/releases

June:https://github.com/one-more-minute/June-LT/releases

Reminisce:https://github.com/one-more-minute/Reminisce/releases

2、安装

解压lighttab

安装julia-0.3.11-win64.exe

3、配置环境变量

添加环境变量LT_USER_DIR,路径自己订,作为lighttab放置plugin的地方

把之前下载的四个插件解压出来放到你LT_USER_DIR设置的放置plugin的地方

4、配置lighttab

打开lighttab.exe,在view->command里输入show plugin manager查看可安装的插件

在lightlab 中输入 Pkg.status() 可以查看已经安装的plugin,检查前面安装的四个插件是否装好了

再输入Settings: User behaviors“default”改成“june-night”.(这是切换主题)

在 [:app :lt.objs.plugins/load-js "user_compiled.js"]下面添加

[:app :lt.objs.langs.julia/julia-path "你之前安装的julia.exe的路径"]

我的路径是"D:\\Julia-0.3.11\\bin\\julia.exe"

注意:这是windows下的路径配置其他系统参照:http://junolab.org/docs/install-manual.html

5、重启lighttab,耐心等待

开始出现一堆错误别管它,等着就成了:

Error loading JS file: D:\LightTable\plugins\Julia-LT-1.0.1\julia_compiled.js : Error: Cannot find module 'js\jquery-2.1.1.min.js'
bootstrap.js [29847]	lt.objs.plugins.__BEH__load_js
Error: Cannot find module 'js\jquery-2.1.1.min.js' at Function.Module._resolveFilename (module.js:341:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:367:17) at require (module.js:383:17) at window.require (eval at undefined, <anonymous>:1:112) at eval (D:%5CLightTable%5Cplugins%5CJulia-LT-1.0.1%5Cjulia_compiled.js:2299:5) at eval (native) at c (file:///D:/LightTable/core/node_modules/lighttable/bootstrap.js:21467:41) at a (file:///D:/LightTable/core/node_modules/lighttable/bootstrap.js:21475:18) at Function.lt.objs.plugins.__BEH__load_js (file:///D:/LightTable/core/node_modules/lighttable/bootstrap.js:29835:33)
bootstrap.js [29847]	lt.objs.plugins.__BEH__load_js
INFO: Couldn't find Jewel package, attempting installation...
INFO: Initializing package repository C:\Users\Administrator\.julia\v0.3
INFO: Cloning METADATA from git://github.com/JuliaLang/METADATA.jl
INFO: Cloning cache of Color from git://github.com/JuliaLang/Color.jl.git
INFO: Cloning cache of Compat from git://github.com/JuliaLang/Compat.jl.git
INFO: Cloning cache of Compose from git://github.com/dcjones/Compose.jl.git
INFO: Cloning cache of DataStructures from git://github.com/JuliaLang/DataStructures.jl.git
INFO: Cloning cache of Docile from git://github.com/MichaelHatherly/Docile.jl.git
INFO: Cloning cache of FactCheck from git://github.com/JuliaLang/FactCheck.jl.git
INFO: Cloning cache of FixedPointNumbers from git://github.com/JeffBezanson/FixedPointNumbers.jl.git
INFO: Cloning cache of Graphics from git://github.com/JuliaLang/Graphics.jl.git
INFO: Cloning cache of Iterators from git://github.com/JuliaLang/Iterators.jl.git
INFO: Cloning cache of JSON from git://github.com/JuliaLang/JSON.jl.git
INFO: Cloning cache of Jewel from git://github.com/one-more-minute/Jewel.jl.git
INFO: Cloning cache of JuliaParser from git://github.com/jakebolewski/JuliaParser.jl.git
INFO: Cloning cache of LNR from git://github.com/one-more-minute/LNR.jl.git
INFO: Cloning cache of Lazy from git://github.com/one-more-minute/Lazy.jl.git
INFO: Cloning cache of MacroTools from git://github.com/one-more-minute/MacroTools.jl.git
INFO: Cloning cache of Requires from git://github.com/one-more-minute/Requires.jl.git
INFO: Installing Color v0.4.7
INFO: Installing Compat v0.5.1
INFO: Installing Compose v0.3.13
INFO: Installing DataStructures v0.3.12
INFO: Installing Docile v0.5.16
INFO: Installing FactCheck v0.3.1
INFO: Installing FixedPointNumbers v0.0.10
INFO: Installing Graphics v0.1.0
INFO: Installing Iterators v0.1.8
INFO: Installing JSON v0.4.4
INFO: Installing Jewel v1.0.5
INFO: Installing JuliaParser v0.6.2
INFO: Installing LNR v0.0.1
INFO: Installing Lazy v0.9.1
INFO: Installing MacroTools v0.1.0
INFO: Installing Requires v0.1.3
INFO: Package database updated

最后出现connect to Julia的字样就说明连接成功了~~~

就酱~~~ Enjoy!





你可能感兴趣的:(juno,Julia)