Closed maacl closed 9 years ago
What does running /usr/bin/env julia
print in your terminal?
On OSX you can run this from the Julia REPL to serve:
julia> using Escher
julia> cd(Pkg.dir("Escher", "examples"))
julia> escher_serve()
/usr/bin/env julia
produces:
() | A fresh approach to technical computing () | () () | Documentation: http://docs.julialang.org | | | Type "help()" for help. | | | | | | |/ ` | | | | || | | | (| | | Version 0.3.9 (2015-05-30 11:24 UTC) / |_'||_|'_| | Official http://julialang.org/ release |__/ | x86_64-apple-darwin13.4.0
Following the above I get:
julia> using Escher
julia> cd(Pkg.dir("Escher", "examples"))
julia> escher_serve()
ERROR: escher_serve not defined
This might be related to how I am trying running julia from the terminal.
I have only symlinked the julia executable from to usr/local/bin
:
ln -s /Applications/Julia-0.3.9.app/Contents/Resources/julia/bin/julia /usr/local/bin/
Do I need to do something more?
My bad, it should have been
Escher.escher_serve()
No your julia binary seems to be in the right place. How long did you wait before deciding escher --serve
does not work? it usually takes about a minute for the server to start up. (JIT compilation of dependencies)
julia> Escher.escher_serve()
ERROR: escher_serve not defined
Autocomplete also does not reveal any Escher.escher_serve() function.
I waited 15 mins (MacBook Air mid 2011) on the escher --serve call. First run outputted something about updating Docile cache, but subsequent runs have not.
Oh, well. It should have been:
using Escher
include(Pkg.dir("Escher", "src", "cli", "serve.jl"))
cd(Pkg.dir("Escher", "examples")) # or any other directory
escher_serve()
My bad again :{
I just nuked my julia install and started over. There is no escher_serve() function in the Escher package.
The code shown above worked for me on Linux and Mac... Could you verify again?
I could not reproduce this on OSX. reopen if problem persists.
Nothing is served using:
results in:
in ~/.julia/Escher/bin/escher/test results in:
I am running OSX, using Julia Version 0.3.9 (2015-05-30 11:24 UTC).