Asking by request to get a screenshot answer to figure out how to enable Sage in Texmaker as I apparently can't figure it out on my own.
1 Answers
First: Under "Options" select Configure Texmaker.
Running Sage isn't any of the options but we can redefine one of the commands so it calls Sage. I chose to redefine Metapost. Fill in the box with sage "%.sagetex.sage" as shown above.
Next: Click on Quickbuild.
Select "User" to define our own command and then select the "Wizard" button which will open up the window to select the commands.
Select pdflatex from the list on the left, click the "Add" button and it will appear on the right hand side. Then select metapost from the left, click "Add" to get it on the right (this will activate Sage) and continue process to get pdflatex followed by PDF Viewer. Press OK to finalize the command. Now pressing the arrow to the left of Quickbuild will run Quickbuild resulting in all 4 steps:

And I edited it to look like:
– Jason Jun 24 '15 at 05:33I also checked with a find command and that's the only asymptote folder with a latexmkrc file anywhere, so I assume that's the right one.
– Jason Jun 24 '15 at 05:41I then tried the same thing with metapost and ran that by itself. It threw up a ton more sage errors, but otherwise completed.
Then I made a user command of latexmk then metapost and I got the "Error: could not start the command."
– Jason Jun 24 '15 at 05:46For whatever it's worth this is on a chromebook using trusty chroot, and I did a complete powerwash and fresh reinstall, still with no luck.
– Jason Jun 24 '15 at 20:38First, I needed to use pdflatex instead of latexmk for that step, so quick build is "PDFlatex -> metapost -> PDFlatex -> PDFviewer"
Second, I needed " around the sage step, so it should read
sage "%.sagetex.sage"Since I had a space in my file name without realizing it, which is why it was throwing an error.
– Jason Jun 28 '15 at 21:00