I am struggling to execute gnuplot scripts from Sublime2.
Gnuplot is installed and I can execute it from Terminal (OSX). My build configuration in Sublime 2 looks like this:
{
"cmd": ["gnuplot"]
}
when Building it get the following result:
[Errno 2] No such file or directory
[cmd: [u'gnuplot']]
[dir: /Users/macuser/Documents/Gnuplot]
[path: /usr/bin:/bin:/usr/sbin:/sbin]
[Finished]
How to I set up the build instructions in sublime so the script will be send to gnuplot with the current path as a working directory?
Thanks
I'm using Sublime Text 3 on OS X 10.9, and I solve the problem with the following procedure:
Open terminal and navigate to the Installed Packages on Sublime Text:
Copy the file Gnuplot.sublime-package and paste in Desktop.
Rename the file to Gnuplot.zip and extract the content to a folder, ex. Gnuplot.
Navigate to the folder, Gnuplot, open the file gnuplot.sublime-build with any text editor, like vim or, even, sublime text. Don't close the terminal window.
On
terminaltype:Copy the path and with the file gnuplot.sublime-build opened previously in step 4, append the following line path like this:
Save the file, and open terminal again. Type the following commands:
Restart sublime text 3, and it will work fine. Sorry with my bad english. LOL