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