RE: [sage-support] Can't run Cython's hello world example

2009-11-24 Thread Jorge E . ´Sanchez Sanchez
Robert: That was it!!! I've just added the flags recommended here (after making the test with distutils.sysconfig) and finally I got hw working. Best regards, Jorge > From: rober...@math.washington.edu > To: sage-support@googlegroups.com > Subject: Re: [sage-support] Can&

Re: [sage-support] Can't run Cython's hello world example

2009-11-23 Thread Robert Bradshaw
On Nov 23, 2009, at 9:56 PM, Robert Bradshaw wrote: > In any case, if you do "from sage.all import ..." you might have to > potentially link in every library that Sage builds (trust me, there's > a lot of them) to create a standalone executable with the --embed > option. This will work on OS X whe

Re: [sage-support] Can't run Cython's hello world example

2009-11-23 Thread Robert Bradshaw
On Nov 23, 2009, at 6:58 PM, Jorge E. ´Sanchez Sanchez wrote: > Robert: > >I am so sorry for bothering you again with my silly questions but > I am still walking in circles around the > correct compilation flags. Here's how I am succeded to build > hibehnel.py as executable, where hibehnel

RE: [sage-support] Can't run Cython's hello world example

2009-11-23 Thread Jorge E . ´Sanchez Sanchez
Robert: I am so sorry for bothering you again with my silly questions but I am still walking in circles around the correct compilation flags. Here's how I am succeded to build hibehnel.py as executable, where hibehnel.py is: sage subshell$ more hibehnel.py def hello_world(): import sys

Re: [sage-support] Can't run Cython's hello world example

2009-11-23 Thread Robert Bradshaw
On Nov 23, 2009, at 11:45 AM, Jorge E. ´Sanchez Sanchez wrote: >Robert: > >Now I am understanding, in the William Stein's example he could > get an executable hw: >Now I can in fact do: cython --embed hw.py without any complains >but when I try to gcc-compile, I got a message inv

RE: [sage-support] Can't run Cython's hello world example

2009-11-23 Thread Jorge E . ´Sanchez Sanchez
Robert: Now I am understanding, in the William Stein's example he could get an executable hw: Now I can in fact do: cython --embed hw.py without any complains but when I try to gcc-compile, I got a message involving the main (see below), so I thought that this feature is not work

Re: [sage-support] Can't run Cython's hello world example

2009-11-23 Thread Robert Bradshaw
On Nov 21, 2009, at 8:16 PM, Jorge E. ´Sanchez Sanchez wrote: > Hi Robert, > >just to tell you that I have built sage-4.2.1 from source (it > took my athlon 64bits 1Gb almost 5 hours), although I cannot embed a > main() with cython --embed hw.pyx I could generate the hw.so file > with t

RE: [sage-support] Can't run Cython's hello world example

2009-11-21 Thread Jorge E . ´Sanchez Sanchez
Hi Robert, just to tell you that I have built sage-4.2.1 from source (it took my athlon 64bits 1Gb almost 5 hours), although I cannot embed a main() with cython --embed hw.pyx I could generate the hw.so file with the setup.py and finally I could run the hw.so but not from the sage shell, b

Re: [sage-support] Can't run Cython's hello world example

2009-11-20 Thread Robert Bradshaw
On Nov 20, 2009, at 8:59 AM, Jorge E. ´Sanchez Sanchez wrote: > Thank you very much Robert, > >I recently upgrade my Ubuntu 9.04 to 9.10 and because I have no > problems with my binary Sage Version 4.1, Release Date: 2009-07-09 > installation I thought I could stay with it, (last time I up

RE: [sage-support] Can't run Cython's hello world example

2009-11-20 Thread Jorge E . ´Sanchez Sanchez
ry installation and the upgrade to Ubuntu 9.10, what would you recommend me in my circumstances. Jorge > From: rober...@math.washington.edu > To: sage-support@googlegroups.com > Subject: Re: [sage-support] Can't run Cython's hello world example > Date: Thu, 19 Nov 2009 19:1

Re: [sage-support] Can't run Cython's hello world example

2009-11-19 Thread Robert Bradshaw
On Nov 19, 2009, at 1:57 PM, Jorge E. ´Sanchez Sanchez wrote: > Hi dear sage-support group: > >I was working a Differential equations problem with few elements > in some regular 3D-mesh which needed not too much calculations but I > am upgrading it to a bigger system. Then I shall need to