ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 04 Feb 2012 23:07:29 +0100Notebook errors when compiling Sage from sourcehttps://ask.sagemath.org/question/8692/notebook-errors-when-compiling-sage-from-source/Hi, everyone. I've been using the Sage binary on Kubuntu 11.10 and decided to try compiling Sage for better R support. It compiled, but the notebook is not working properly -- it gives me no output. I type in commands, click on "evaluate," and nothing happens, regardless of what the command was. No confirmations, no graphs, no error messages, no nothing. The binary works, but not what I compiled from source.
My system is using the 3.0.0-12-generic kernel, and I have all the packages (build-essential, gfortran, M4, bison) mentioned in the installation guide. I made sure to explicitly set the path to gfortran (export SAGE_FORTRAN=/usr/bin/gfortran). I couldn't find libgfortran.so, however, so I couldn't set SAGE_FORTRAN_LIB.
Any suggestions? I appreciate the help given on my last question a while back, and am hoping the Sage community can field this one again.Thu, 02 Feb 2012 19:23:05 +0100https://ask.sagemath.org/question/8692/notebook-errors-when-compiling-sage-from-source/Comment by Rubin for <p>Hi, everyone. I've been using the Sage binary on Kubuntu 11.10 and decided to try compiling Sage for better R support. It compiled, but the notebook is not working properly -- it gives me no output. I type in commands, click on "evaluate," and nothing happens, regardless of what the command was. No confirmations, no graphs, no error messages, no nothing. The binary works, but not what I compiled from source.</p>
<p>My system is using the 3.0.0-12-generic kernel, and I have all the packages (build-essential, gfortran, M4, bison) mentioned in the installation guide. I made sure to explicitly set the path to gfortran (export SAGE_FORTRAN=/usr/bin/gfortran). I couldn't find libgfortran.so, however, so I couldn't set SAGE_FORTRAN_LIB.</p>
<p>Any suggestions? I appreciate the help given on my last question a while back, and am hoping the Sage community can field this one again.</p>
https://ask.sagemath.org/question/8692/notebook-errors-when-compiling-sage-from-source/?comment=20348#post-id-20348Good question. It looks like how I was launching the notebook was causing things to act funny. I had redone my server from scratch and accidentally was using the command from Jason Grout's sage server wiki. But since I never set up those sage user accounts that he did, I didn't need all the server_pool and ulimit options. Removing those and invoking sage with just "sage -c "notebook(interface='localhost', directory='./sage_notebook.sagenb',port=8000, accounts=False, timeout=3600, open_viewer=False)" " is getting my outputs back. Thanks!Sat, 04 Feb 2012 09:02:12 +0100https://ask.sagemath.org/question/8692/notebook-errors-when-compiling-sage-from-source/?comment=20348#post-id-20348Comment by kcrisman for <p>Hi, everyone. I've been using the Sage binary on Kubuntu 11.10 and decided to try compiling Sage for better R support. It compiled, but the notebook is not working properly -- it gives me no output. I type in commands, click on "evaluate," and nothing happens, regardless of what the command was. No confirmations, no graphs, no error messages, no nothing. The binary works, but not what I compiled from source.</p>
<p>My system is using the 3.0.0-12-generic kernel, and I have all the packages (build-essential, gfortran, M4, bison) mentioned in the installation guide. I made sure to explicitly set the path to gfortran (export SAGE_FORTRAN=/usr/bin/gfortran). I couldn't find libgfortran.so, however, so I couldn't set SAGE_FORTRAN_LIB.</p>
<p>Any suggestions? I appreciate the help given on my last question a while back, and am hoping the Sage community can field this one again.</p>
https://ask.sagemath.org/question/8692/notebook-errors-when-compiling-sage-from-source/?comment=20360#post-id-20360It sounds like you might want to post a link to the build log. Did the build actually finish? It sounds like you are able to try to launch the notebook - what command are you using for this.Thu, 02 Feb 2012 20:58:17 +0100https://ask.sagemath.org/question/8692/notebook-errors-when-compiling-sage-from-source/?comment=20360#post-id-20360Answer by kcrisman for <p>Hi, everyone. I've been using the Sage binary on Kubuntu 11.10 and decided to try compiling Sage for better R support. It compiled, but the notebook is not working properly -- it gives me no output. I type in commands, click on "evaluate," and nothing happens, regardless of what the command was. No confirmations, no graphs, no error messages, no nothing. The binary works, but not what I compiled from source.</p>
<p>My system is using the 3.0.0-12-generic kernel, and I have all the packages (build-essential, gfortran, M4, bison) mentioned in the installation guide. I made sure to explicitly set the path to gfortran (export SAGE_FORTRAN=/usr/bin/gfortran). I couldn't find libgfortran.so, however, so I couldn't set SAGE_FORTRAN_LIB.</p>
<p>Any suggestions? I appreciate the help given on my last question a while back, and am hoping the Sage community can field this one again.</p>
https://ask.sagemath.org/question/8692/notebook-errors-when-compiling-sage-from-source/?answer=13232#post-id-13232When it comes to just better R support, you could just follow the directions in Jason Grout's comment at [this question](http://ask.sagemath.org/question/192/compiling-r-with-png-support). Basically, install a couple other packages and then force rebuild Sage.
Incidentally, we just upgraded R in Sage to 2.14.0.Thu, 02 Feb 2012 21:01:36 +0100https://ask.sagemath.org/question/8692/notebook-errors-when-compiling-sage-from-source/?answer=13232#post-id-13232Comment by kcrisman for <p>When it comes to just better R support, you could just follow the directions in Jason Grout's comment at <a href="http://ask.sagemath.org/question/192/compiling-r-with-png-support">this question</a>. Basically, install a couple other packages and then force rebuild Sage. </p>
<p>Incidentally, we just upgraded R in Sage to 2.14.0.</p>
https://ask.sagemath.org/question/8692/notebook-errors-when-compiling-sage-from-source/?comment=20344#post-id-20344That's to be expected; "raw" R requires that you open and close a graphics device to plot, so you would have to do that too. See my comment toward the bottom of http://ask.sagemath.org/question/1102/using-r-in-sage-can-not-plot-errors-of-x11-and-png.Sat, 04 Feb 2012 20:42:41 +0100https://ask.sagemath.org/question/8692/notebook-errors-when-compiling-sage-from-source/?comment=20344#post-id-20344Comment by Rubin for <p>When it comes to just better R support, you could just follow the directions in Jason Grout's comment at <a href="http://ask.sagemath.org/question/192/compiling-r-with-png-support">this question</a>. Basically, install a couple other packages and then force rebuild Sage. </p>
<p>Incidentally, we just upgraded R in Sage to 2.14.0.</p>
https://ask.sagemath.org/question/8692/notebook-errors-when-compiling-sage-from-source/?comment=20343#post-id-20343That did the trick! Thank you very much!Sat, 04 Feb 2012 23:07:29 +0100https://ask.sagemath.org/question/8692/notebook-errors-when-compiling-sage-from-source/?comment=20343#post-id-20343Comment by Rubin for <p>When it comes to just better R support, you could just follow the directions in Jason Grout's comment at <a href="http://ask.sagemath.org/question/192/compiling-r-with-png-support">this question</a>. Basically, install a couple other packages and then force rebuild Sage. </p>
<p>Incidentally, we just upgraded R in Sage to 2.14.0.</p>
https://ask.sagemath.org/question/8692/notebook-errors-when-compiling-sage-from-source/?comment=20345#post-id-20345Looks like when I select Sage as the interpreter in the notebook I get an output, for example "r.plot(r.rnorm(100))" gives me the right graph (along wit the response "null device 1"). But selecting R as the interpreter in the notebook and then evaluating "plot(rnorm(100))" gives no output. Sat, 04 Feb 2012 09:36:12 +0100https://ask.sagemath.org/question/8692/notebook-errors-when-compiling-sage-from-source/?comment=20345#post-id-20345Comment by Rubin for <p>When it comes to just better R support, you could just follow the directions in Jason Grout's comment at <a href="http://ask.sagemath.org/question/192/compiling-r-with-png-support">this question</a>. Basically, install a couple other packages and then force rebuild Sage. </p>
<p>Incidentally, we just upgraded R in Sage to 2.14.0.</p>
https://ask.sagemath.org/question/8692/notebook-errors-when-compiling-sage-from-source/?comment=20347#post-id-20347Now that I can see my output, I see that the version of R I compiled is not giving the usual "Error in png() : X11 is not available" error when I try to make a graph, which is good. "r.eval('capabilities("png")')" and "r.eval('capabilities("X11")')" both come up true. But I'm not seeing any graphs when I try to use R for plotting -- I get no output or errors. 2D and 3D plots with Sage display properly, though.Sat, 04 Feb 2012 09:16:16 +0100https://ask.sagemath.org/question/8692/notebook-errors-when-compiling-sage-from-source/?comment=20347#post-id-20347