I'll ask the obvious question... did you try "Blink.AtomShell.install()"?
Nice work getting as far as you did.

On Mon, Nov 7, 2016 at 3:35 PM, Kostas Oikonomou <
[email protected]> wrote:

> I am using Julia 0.5.0 on FreeBSD 11.  I've had a few problems trying to
> install the Plots and PlotlyJS packages:
>
> 1. Just after installing Plots, I had to make this fix in
> ~/.julia/v0.5/Plots/src/backends/web.jl, function open_browser_window:
>
>    @static if is_linux() || is_bsd()
>         return run(`xdg-open $(filename)`)
>    end
>
> 2. Now trying to install PlotlyJS.  HttpParser doesn't build, because in
> BinDeps.jl, function unpack_cmd(...), says
>
>    elseif extension == ".zip"
>        return (`unzip -x $file -d $directory`)
>
> The /usr/bin/unzip on FreeBSD doesn't understand "-x" (more precisely, it
> thinks
> it means "exclude").  GNU gunzip doesn't understand it either.  What
> "unzip" is
> this supposed to be?  I made an ugly hack to work around this.
>
>
> 3. In ~/.julia/v0.5/Blink/src/AtomShell/process.jl: I had to add is_bsd()
> to
>
> @static if is_apple()
>   const _electron = resolve("Blink", "deps/Julia.app/Contents/
> MacOS/Electron")
> elseif is_linux() || is_bsd()
>   const _electron = resolve("Blink", "deps/atom/electron")
> elseif is_windows()
>   const _electron = resolve("Blink", "deps", "atom", "electron.exe")
> end
>
> 4. After all this, I still get the error:
>
> julia> using Plots
> julia> plotlyjs()
> julia> plot(x -> x^2, rand(10))
> Error showing value of type Plots.Plot{Plots.PlotlyJSBackend}:
> ERROR: Cannot find Electron. Try `Blink.AtomShell.install()`.
>  in electron() at /usr/home/ko/.julia/v0.5/Blink/src/AtomShell/process.
> jl:53
>
>
> Thanks for any help.
>
>                 Kostas
>

Reply via email to