Thursday, 19 January 2017

Gnuplot/C On A Mac

I recently tried to install Gnuplot/C on a Mac.
I tried "sudo port install gnuplot +wxwidgets" but ran into the DNS problem : https://trac.macports.org/wiki/MisbehavingServers.
I doubt my ISP is going to change their ways at my request so I tried Brew instead :

$ Brew install gnuplot --with-wxmac

Perfect, lets test gnuplot :

$ gnuplot
gnuplot> plot sin(x)

Excellent, a nice little sinusoid.
Now let's test Gnuplot/C :

$ cd gnuplot_c/examples/
$ ./br.sh LinesAndPoints
sh: /dev/nul: Permission denied
sh: /dev/nul: Permission denied

Oops. Another quick search suggested :

$ sudo mknod /dev/nul c 1 3
$ sudo chmod 666 /dev/nul

Now let's test Gnuplot/C again :

$ ./br.sh LinesAndPoints

Excellent. All running nicely :-)

1 comment:

  1. This comment has been removed by the author.

    ReplyDelete