[sage-support] Re: Problem Sage 3.4 windows XP

2009-05-22 Thread gemili

I could solve the problem with a hint given by Prof. William Stein in
another discussion (just do a search for cd /usr/local; rm -rf
sage). The solution is to compile the sage source code within VMware
player on my own computer. I added line 0, 6 and 7 and changed some
comments:

0. Type manage and then sudo su to become root.
1. Delete /usr/local/sage by typing:
cd /usr/local; rm -rf sage
2. Download sage-3.4.2.tar by typing :
 wget http://sagemath.org/src/sage-3.4.2.tar
3. Extract it by typing:
  tar xvf sage-3.4.2.tar
4. Move it to be /usr/local/sage by typing:
  mv sage-3.4.2 sage
5. Start the compiling process by typing:
   cd sage; make
6. Wait several hours.
7. When it's done, you might remove the souce code (I didn't test
this):
  rm sage-3.4.2.tar

The make command run about 6 hours to compile on my 1.4 GHz
computer. Now sage-3.4.2 runs perfekt on the above mentioned five year
old Fujitsu-Siemens Livebook C1110D

Wouldn't it be a good idea to distribute SAGE in two versions
including a second one beeing compiled on a not so new comuter without
all those fixsr, sse2 flags. This second version might not run as fast
as the first one, but it will work. Or, (even if I don't know a lot
about UNIX,) I think that it should be possible to run the make
command with some options excluding the use of the problematic flags
to produce a more stable code even on a new computer (but I'm not
sure). Or I might support the project compiling the second version on
my computer.

But for now I'm happy. Thank you for helping!
Gemili
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: sage scripts

2009-05-22 Thread Dan Drake
On Thu, 21 May 2009 at 07:27PM -0700, flori wrote:
 The following two commands work now
 
 flor...@base:~/sage/sage-3.4$ sudo ./sage factor.sage 2006
 2 * 17 * 59
 
 and
 
 flor...@base:~/sage/sage-3.4$ sudo ./sage ./factor 2006
 2 * 17 * 59
 
 In the second case I changed the first line of the file to
 
 #! /path/to/sage -python
 
 as suggested by Kevin
 
 Nevertheless there is still the mess with the execute rights. I am a
 newbie in linux and therefore I am not sure what I am doing wrong.
 with
 
 chmod 777 factor
 
 I gave all right to everybody, but still if I try
 
 flor...@base:~/sage/sage-3.4$ ./sage ./factor 2006
 [Errno 13] Permission denied: '/home/florian/.sage//temp'
 
 Furthermore I can't start sage with the command sage I need to type
 
 sudo ./sage

My guess is that, when using sudo to run Sage, it created the 
$HOME/.sage/temp directory which is only writable by root.

You can fix this with the chown (change owner) command. From your home
directory, do

$ sudo chown -R florian:florian .sage

(Obviously, you have to be root to change the owner of a file from
root to someone else.) That will recursively change the owner of all the
files in the .sage directory to you. Then, don't ever run Sage using
sudo again!

Dan

-- 
---  Dan Drake dr...@kaist.edu
-  KAIST Department of Mathematical Sciences
---  http://mathsci.kaist.ac.kr/~drake


signature.asc
Description: Digital signature


[sage-support] Re: sage with tkinter (or some graphics backend?) on Mac OS X

2009-05-22 Thread mabshoff



On May 22, 7:30 am, Adam keflav...@gmail.com wrote:

Hi Adam,

 Thanks Michael.  I've tried doing as you said, but still no luck.

 export SAGE_MATPLOTLIB_GUI=yes
 ./sage -f python-2.5.2.p9 matplotlib-0.98.5.3rc0-svn6910.p3

 but I get the same error.  Any idea what else I should try?

See http://trac.sagemath.org/sage_trac/ticket/4970 - I still have to
touch the python.spkg for 4.0, so I might find time to integrate the
fix. No promises, but a reminder in a couple days might help ;)

 Thanks,
 Adam

Cheers,

Michael
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---