FreeBSD GR download link missing

Hi there,

I’m trying to install the GR plotting library on FreeBSD 12.0 (stable), but the build fails with the message (see below), of which the main complaint is:

Error opening archive: Failed to open 'downloads/gr-0.39.0-FreeBSD-x86_64.tar.gz'

In the GR specific deps directory the option for FreeBSD is missing in the build.jl file.

Is this something that can be easily solved?

Thanks in advance,
Rob.

Building GR → `~/.julia/packages/GR/KGODl/deps/build.log`
┌ Error: Error building `GR`: 
│   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
│                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
│ curl: (22) The requested URL returned error: 404 Not Found
│   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
│                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
│ curl: (22) The requested URL returned error: 404 Not Found
│   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
│                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
│ curl: (22) The requested URL returned error: 404 Not Found
│ tar: Error opening archive: Failed to open 'downloads/gr-0.39.0-FreeBSD-x86_64.tar.gz'
│ [ Info: Downloading pre-compiled GR 0.39.0 FreeBSD binary
│ [ Info: Using insecure connection
│ [ Info: Cannot download GR run-time
│ ERROR: LoadError: failed process: Process(`tar xzf downloads/gr-0.39.0-FreeBSD-x86_64.tar.gz`, ProcessExited(1)) [1]
│ Stacktrace:
│  [1] error(::String, ::Base.Process, ::String, ::Int64, ::String) at ./error.jl:42
│  [2] pipeline_error at ./process.jl:705 [inlined]
│  [3] #run#503(::Bool, ::Function, ::Cmd) at ./process.jl:663
│  [4] run(::Cmd) at ./process.jl:661
│  [5] top-level scope at /home/rob/.julia/packages/GR/KGODl/deps/build.jl:118
│  [6] include at ./boot.jl:317 [inlined]
│  [7] include_relative(::Module, ::String) at ./loading.jl:1044
│  [8] include(::Module, ::String) at ./sysimg.jl:29
│  [9] include(::String) at ./client.jl:392
│  [10] top-level scope at none:0
│ in expression starting at /home/rob/.julia/packages/GR/KGODl/deps/build.jl:63
└ @ Pkg.Operations /wrkdirs/usr/ports/lang/julia/work/julia-1.0.3/usr/share/julia/stdlib/v1.0/Pkg/src/Operations.jl:1097

Hi,
I have same situation.
Here running freebsd 12.1 atom 1.45 from ports.
Everything works well but I have problems
with building Plots
so I’m trying instructions from here:

https://github.com/jheinen/GR.jl/issues/268

but there is another problem
when starting (see instructions)
5. make
in freebsd
I have:
[freebsd@hostname ~/Downloads/gr/gr-master]$ make
make: “/usr/home/freebsd/Downloads/gr/gr-master/Makefile” line 56: Missing dependency operator
make: “/usr/home/freebsd/Downloads/gr/gr-master/Makefile” line 69: Need an operator
make: “/usr/home/freebsd/Downloads/gr/gr-master/Makefile” line 84: Need an operator

I hope to solve …

Dear Ionnic,

I asked at Github issue no 268 and user ko56 gave the following hints

Building on FreeBSD 12.1 is easy. Here is what I did:

    Get gr-master.zip from https://github.com/sciapp/gr

    cd ~/build
    unzip -q ../Downloads/gr-master.zip

    Edit lib/Preflight:
    a) #!/usr/local/bin/bash
    b) if [ -f /usr/local/bin/python3.7 ]

    Edit Makefile:

GRDIR = /opt/gr
CONFIG = xft=no

UNAME := $(shell uname)

    Edit gr-master/lib/gr3/gr3_internals.h:

#elif defined(linux) || defined(FreeBSD)
/* OpenGL Extension to the X Window System (GLX) on Linux */
#define GR3_USE_GLX
#include "gr3_glx.h"
#elif defined(_WIN32)

    make

    sudo gmake install

    In julia,

    ENV["GRDIR"] = "/opt/gr"
    ] add GR

I was very pleased to receive this info from ko56, but I have to admit that since I moved to use PGFPlotsX.jl exclusively I didn’t investigate any further.

If this works please report back so we can close this thread as solved

Rob.