I am trying to use SAGE for a cgi script but I have this error when running the 
cgi from the browser:

Error: environment variable $HOME is not set., referer: 
http://mysite.com/foo.cgi

Error setting environment variables by sourcing 
'/usr/local/sage-6.0-x86_64-Linux/src/bin/sage-env';, referer: 
http://mysite.com/foo.cgi

possibly contact sage-devel (see http://groups.google.com/group/sage-devel)., 
referer: http://mysite.com/foo.cgi

Premature end of script headers: foo.cgi, referer: http://mysite.com/foo.cgi


foo.cgi is a simple script to test SAGE as a cgi:

#!/usr/bin/env sage

print "Content-type: text/plain\n\n"

from sage.all import *
x=var('x')
print integrate(x**2,x)



I'm running Ubuntu 10.04.3 LTS with an Apache2 server. 

I've look for some other answers about this, but there are only like 2 
questions in other forums and none of them give a full answer. Any help will be 
appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to