[sage-support] [PROBLEM] I cannot run sage

2010-02-21 Thread Akshay Pande
Hi,

I recently installed sage (atom) and am running it on a netbook (eeePC
900HA) on Ubuntu Hardy. My problem is that whenever I run sage from
the installed folder I get the following output

--
| Sage Version 4.3.2, Release Date: 2010-02-06   |
| Type notebook() for the GUI, and license() for information.|
--
---
ImportError   Traceback (most recent call
last)

/home/akshay/Academics/sage/local/lib/python2.6/site-packages/IPython/
ipmaker.pyc in force_import(modname)
 64 reload(sys.modules[modname])

(some part omitted)

 26 from sage.libs.ntl.ntl_ZZ import (
 27  ntl_setSeed, \
 28  ntl_ZZ as ZZ,

ImportError: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not
found (required by /home/akshay/Academics/sage/local/lib/libgmpxx.so.
3)
Error importing ipy_profile_sage - perhaps you should run %upgrade?
WARNING: Loading of ipy_profile_sage failed.




Then I reach the SAGE prompt. I tried %upgrade but that didn't solve
the problem. Please help.

Warmly
Akshay Pande


-- 
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
URL: http://www.sagemath.org


[sage-support] Re: Sage Live CD (Alternativ based on Puppy Linux)

2010-02-21 Thread emil
Hi,
> Thank you very much for this nice project; now it will be easier to impress
> friends at the university about the capabilities of both SAGE and Linux. I
> would like to share a couple of observations (of course these may have to do
> only with Puppy itself):
>
Thanks you for the feedback

> 1- "Loading to RAM" took quite a while although my machine can be considered
> to be "new". Maybe user can be urged to be patient.

Normally Puppy Linux is just about 100 MB and loads completly to RAM
(if more then 256 MB RAM are found). The advantage is that
Applications open very very fast  and one can remove the CD while
working. The Sage Live CD is 700 MB and I changed the configuration,
that the complete sywstem is only loaded when more than 1.5 GB are
found. Maybe it is better to force Option
pfix=noram? This can be done by default. The loss of speed is not
really an issue, but of course the CD drive will be occupied.

> 2- SAGE worked without any problems. (Also, seeing LyX installed was a nice
> surprise!)

I tested Sage and it passed all tests (sage -testall) at my machine. I
was lucky to find a nice Linux package containing Lyx at just 169 MB
(this was made by member of puppy linux forum didik from indonesia).
Since there is some space left I could also include texmacs (I tested
it in the meantime, it works, but seems not as responsive than the
rest of the system)

> 3- I was not able to switch on touchpad clicking.
This is some puppy linux related stuff. A good source to tackle such
problems is the puppy linux forum which is in general helpfull and
competent. I found this thread about touchpads.
http://www.murga-linux.com/puppy/viewtopic.php?t=18339
You can edit the xorg.conf file by Menu>Setup>Xorg Video Wizard>Edit
xorg.conf


> 4- I was not able to connect to WEP secured wireless through none of the
> connection wizards (there were two different). It seemed to get IP number
> but no connection was actually established (I'm not an expert by the way!).

Hey I am no expert too. Maybe you try this HowTO
http://www.wikihow.com/Set-up-a-Wireless-Network-in-Puppy-Linux
Good Luck!

> 5- The screen was dim and I couldn't figure out how to make it brighter.

This can also be done in the Menu>Setup>Xorg Video Wizard>Gamma
Calibration

>
> Regards,
> Berkin

Please report back any quirks, bugs or also some things you like,

Current list to chage for the final release

1) fix localisation wizard for boot up
2) fix wallpapers to stretched
3) rework/complete build Html Help pages
3*) include texmacs
4*) change initial bootoption to noram
5*) include a wizard for swapspace

* I would like to have feedback on those changes






-- 
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
URL: http://www.sagemath.org


Re: [sage-support] [PROBLEM] I cannot run sage

2010-02-21 Thread David Kirkby
On 21 February 2010 08:10, Akshay Pande  wrote:
> Hi,
>
> I recently installed sage (atom) and am running it on a netbook (eeePC
> 900HA) on Ubuntu Hardy. My problem is that whenever I run sage from
> the installed folder I get the following output
>
> --
> | Sage Version 4.3.2, Release Date: 2010-02-06                       |
> | Type notebook() for the GUI, and license() for information.        |
> --
> ---
> ImportError                               Traceback (most recent call
> last)
>
> /home/akshay/Academics/sage/local/lib/python2.6/site-packages/IPython/
> ipmaker.pyc in force_import(modname)
>     64         reload(sys.modules[modname])
>
> (some part omitted)
>
>  26 from sage.libs.ntl.ntl_ZZ import (
>     27                  ntl_setSeed, \
>     28                  ntl_ZZ as ZZ,
>
> ImportError: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not
> found (required by /home/akshay/Academics/sage/local/lib/libgmpxx.so.
> 3)

> Warmly
> Akshay Pande

Did you download a binary for Sage, or did you download the source
code and build Sage from source? I suspect you downloaded the binary,
but I may be wrong.

Your system either lacks libstdc++.so.6, or its in a place which can't
be found. This is the C++ library that is used as part of gcc. I've
proposed before that this be included in the Sage distribution, though
whether it actually is done so I don't know.

What is the output of

$ g++ -v
$ which g++

If g++ is not installed on your system (unlikely but possible), then
you will need to install that.

I'd have a hunt around your system, and see if you can find a file
which at least starts with libstdc++. If you can find libstdc++.so,
then copy it to $SAGE_ROOT/local/lib. I would not advise putting it in
/usr/lib, despite the error message.

Dave

-- 
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
URL: http://www.sagemath.org


Re: [sage-support] [PROBLEM] I cannot run sage

2010-02-21 Thread Daniel Harris
On Sun, Feb 21, 2010 at 8:10 AM, Akshay Pande wrote:

> Hi,
>
> I recently installed sage (atom) and am running it on a netbook (eeePC
> 900HA) on Ubuntu Hardy. My problem is that whenever I run sage from
> the installed folder I get the following output
>
> --
> | Sage Version 4.3.2, Release Date: 2010-02-06   |
> | Type notebook() for the GUI, and license() for information.|
> --
> ---
> ImportError   Traceback (most recent call
> last)
>
> /home/akshay/Academics/sage/local/lib/python2.6/site-packages/IPython/
> ipmaker.pyc in force_import(modname)
> 64 reload(sys.modules[modname])
>
> (some part omitted)
>
>  26 from sage.libs.ntl.ntl_ZZ import (
> 27  ntl_setSeed, \
> 28  ntl_ZZ as ZZ,
>
> ImportError: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not
> found (required by /home/akshay/Academics/sage/local/lib/libgmpxx.so.
> 3)
> Error importing ipy_profile_sage - perhaps you should run %upgrade?
> WARNING: Loading of ipy_profile_sage failed.
>
>
>
Make sure that the version of ubuntu is compiled for the atom and not the
i386 version.

Dan

-- 
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
URL: http://www.sagemath.org


[sage-support] Re: Sage Live CD (Alternativ based on Puppy Linux)

2010-02-21 Thread emil
Hello Peter,

thanks for your feedback

On Feb 20, 6:46 pm, "Peter K.H. Gragert"  wrote:
> It works (this one:http://aghitza.org/misc/SageLivePupv02.iso on Vista)
> and seems to be very pretty for Windows users.
> But, at this moment I do not know enough about Puppy Linux ...it seems that
> one can save the state on
> a NTFS-drive ...(but yet very afraid to let it to be done)

Yes, NTFS drives are recognised. I copied and saved to NTFS drives now
for several months without problem. I even used the windows pagefile
"pagefile.sys" as swapfile (commands: mkswap pagefile.sys, swapon
pagefile.sys). But you are right - without open specifications a risk
remains.

However, the risk in creating a safefile is limited. Puppy Linux
writes the file only once (default size is 512 MB) inside this file it
has a Linux filesystem and if you run from CD, USB or frugal install
your personal files are saved there. I think I have an explanation
what is saved where in the HTML Help in the "Where is my C: drive "
section. Windows sees the file as a normal file which doesn't change
after its creation (with the exception if you resize it manually from
the Menu>Utility>Resize personal storage file). So if you create the
file, reboot to windows and perform a chkdsk /f everything should be
fine.

If possible I recommend to install the live cd to linux partition
(ext2 or ext 3, frugal install for the beginning). 10 GB is more than
enough. In addition one could choose to get 2 to 4 GB of a Linux swap
partition. This will be recognized and used at startup.

The Tool GParted Partition Manager is very convenient and easy to use.
If you get a warning sign for the windows NTFS partition you have to
fix the partition first.
Use chkdsk /f in command window inside windows and reboot (maybe twice
to get everything fixed). Howto is here:
http://www.howtogeek.com/howto/windows-vista/using-gparted-to-resize-your-windows-vista-partition/

>
> It started with a GERMAN keyboard, but I could  be changed to US-keyboard
> (though I had to gamble, Puppy-newbie ;-) ).

This is a BUG but can be easily fixed see other post

>
> Without giving the option=RAM, it seamed to load and load and load, such
> that I stopped (ctrl-alt-del seemed to do that) ... and using F2 to see
> options ...

Well, see post above, should be a feature, but maybe its better not to
load to ram by default.

>
> A friend of mine is interested and this seems to be a perfect way for an
> XP-PC...

Would be great if he likes it

>
> Peter
>
> 2010/2/20 emil 
>
> > On Feb 20, 12:37 pm, "Peter K.H. Gragert" 
> > wrote:
> > > Trying now Alex link ...
>
> > > 2010/2/20 PKHG 
>
> > > > I tried a download ... but got only 359 MB?
> > > > Trying to burn, complained about not correct lenght.
> > > > So the dowload is 'wrong' I suppose
> > > > Maybe share it at another 'host'?
> > > > Greetings
> > > > Peter
>
> > Hello Peter,
>
> > Thank's to Harald Schilly SageLivev02.ios is now mirrowed at the
> > official Download servers!
>
> > Link:http://www.sagemath.org/download-livecd.html
>
> > However, I would be very happy about feedback concerning:
>
> > * Bugs
> > * Localisation (it should be asked at first boot, but it might not)
> > * Hardware requirements (Processor, Memory - positiv and negativ
> > experiances)
> > * any Benchmarks
> > * Is there something missing (i.e. the jsmath-fonts .. )
>
> > and generally
> > * suggestions and feedback
>
> > thanks in advance
> > emil
>
> > Known Bugs:
> > 1)  Localisation menu is not called during first boot (german quertz
> > keyboard loaded by default)
> > Solve: Menu Setup>Mouse / Keyboard wizard>Advanced Xorg keyboard
> > configuration>Keyboard model> YOUR MODEL,
>
> > 2) Wallpaper not stretched for different screen resolutions
> > Solve Menu>Desktop>Nathan Wallpaper Setter> Choose STRETCHED Radio
> > Button
>
> > 3) Notbook in Browser window give Page Load Error
> > Solve: Wait till the sage server starts (in the console window) then
> > press Button Try again.
> > Comment: This should  happen only at first start after boot. If you
> > have a slow computer it might happen always.
> > In that case you could edit the script /usr/bin/sagen.sh . Change
> > sleep 3 to a higher value (or lower if good machine).
>
> > 4) Menu- > wallpaper.
>
> > On Feb 20, 12:37 pm, "Peter K.H. Gragert" 
> > wrote:
> > > Trying now Alex link ...
>
> > > 2010/2/20 PKHG 
>
> > > > I tried a download ... but got only 359 MB?
> > > > Trying to burn, complained about not correct lenght.
> > > > So the dowload is 'wrong' I suppose
> > > > Maybe share it at another 'host'?
> > > > Greetings
> > > > Peter
>
> > > > On 17 feb, 20:40, emil  wrote:
> > > > > Hi Jeff,
> > > > > sorry I wanted to post this on sage-devel originally and removed it,
> > > > > but then had no time to repost at sage devel (had to get membership
> > > > > first). Also sorry about any inconvenience with this download server.
> > > > > H. Schilly contacted me and maybe it will be available on the sa

Re: [sage-support] Re: Sage Live CD (Alternativ based on Puppy Linux)

2010-02-21 Thread Peter K.H. Gragert
Hi,
I allowed to save pup-431.sfs as well as a  pupsave*.2fs and now booting
(just the default)
works well and because I did in /etc/keyboard (or so) the US-keyboard, that
is OK too now ;-)

A problem is the WLAN , it sees it,seems to get an IP, but the encryption
key (router says:  WPA-PSK) and those other parameters
as 'managed' 'open' (radio buttons) give too much possibilities I will try
later again ...

Otherwise It looks 'great'
Indeed, easy access to the C: HD to exchange info ... nice.


Greets
Peter

-- 
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
URL: http://www.sagemath.org


[sage-support] Re: [PROBLEM] I cannot run sage

2010-02-21 Thread Akshay Pande
Dear David

I installed sage from a binary version. I indeed did not have g++
installed. But when I tried to install it via synaptic I got the
following error

W: Failed to fetch 
http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_2.6.24-26.64_i386.deb
  404 Not Found

This is a broken package or something I guess which is causing a
hindrance in installing g++. Is there a way to alternatively install g+
+, without synaptic?

Dear Dan

Oh that might be a problem too. I have the normal Ubuntu Hardy, not
UNR. But I'm running Adam's kernel on it, which effectively should
bring it to the same thing.

Warmly
Akshay

On Feb 21, 7:03 pm, Daniel Harris  wrote:
> On Sun, Feb 21, 2010 at 8:10 AM, Akshay Pande 
> wrote:
>
>
>
> > Hi,
>
> > I recently installed sage (atom) and am running it on a netbook (eeePC
> > 900HA) on Ubuntu Hardy. My problem is that whenever I run sage from
> > the installed folder I get the following output
>
> > --
> > | Sage Version 4.3.2, Release Date: 2010-02-06                       |
> > | Type notebook() for the GUI, and license() for information.        |
> > --
> > ---
> > ImportError                               Traceback (most recent call
> > last)
>
> > /home/akshay/Academics/sage/local/lib/python2.6/site-packages/IPython/
> > ipmaker.pyc in force_import(modname)
> >     64         reload(sys.modules[modname])
>
> > (some part omitted)
>
> >  26 from sage.libs.ntl.ntl_ZZ import (
> >     27                  ntl_setSeed, \
> >     28                  ntl_ZZ as ZZ,
>
> > ImportError: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not
> > found (required by /home/akshay/Academics/sage/local/lib/libgmpxx.so.
> > 3)
> > Error importing ipy_profile_sage - perhaps you should run %upgrade?
> > WARNING: Loading of ipy_profile_sage failed.
>
> Make sure that the version of ubuntu is compiled for the atom and not the
> i386 version.
>
> Dan

-- 
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
URL: http://www.sagemath.org


[sage-support] Re: Sage Live CD (Alternativ based on Puppy Linux)

2010-02-21 Thread emil


> > 5- The screen was dim and I couldn't figure out how to make it brighter.
>
> This can also be done in the Menu>Setup>Xorg Video Wizard>Gamma
> Calibration
>
>
Hi Berkin,

I have to correct my answer, obviously the Gamma calibration is not
working as expected. I will try to fix this but can't promise.
There is a possible fix with the programm xgamma (I tried it, worked
for me)

http://www.murga-linux.com/puppy/viewtopic.php?t=29447
cheers,
emil

-- 
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
URL: http://www.sagemath.org


[sage-support] Using CRT to speed up calculations over QQ

2010-02-21 Thread Jeff Stroomer
Sage Folks,

I am working on a problem that requires me to generate a large matrix
over QQ, and then calculate the row-echelon form.  I think there's a
good chance  I can speed up the calculations if I use the Chinese
Remainder Theorem to translate rationals into equivalent vectors of
small integers, then do modular arithmetic on the vectors, and at the
end translate the vectors back into rationals.

This is a pretty standard trick, so I thought I would see a way in
Sage to do this without writing the machinery myself.  But so far I
haven't found it.  Am I not looking in the right place, or is it
really not there?  Also, is it reasonable for me to think this is
likely to speed up the calculations?

Thanks for the help,

Jeff Stroomer

-- 
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
URL: http://www.sagemath.org


Re: [sage-support] Re: [Sage Bug Report] factoring a multivariate polynomial

2010-02-21 Thread Burcin Erocal
On Fri, 19 Feb 2010 05:51:46 -0800
William Stein  wrote:

> I am sending this to sage-support
> 
> On Thursday, February 18, 2010, Joerg Arndt  wrote:
> > The following doesn't finish in reasonable time:
> > 
> > var('E1, E2, E4, E5, E10, E20');
> > var( 'q' );
> > t=(E20^16*E5^8*q^4*E2^24 + (-E20^16*E5^8*q^4*E4^8*E1^16 + (-E10^24
> > + E20^8*E5^16)*E4^16*E1^8)) factor(t)
> > 
> >
> > Session:
> > % time sage < bug.sage
> > --
> > | Sage Version 4.3.2, Release Date: 2010-02-06
> >   | | Type notebook() for the GUI, and license() for information.
> >      |
> > --
> > ## (hitting ctrl-Z here as ctrl-C doesn't have any effect) sage:
> > Exiting SAGE (CPU time 1m19.28s, Wall time 1m21.25s). % kill %1
> > /opt/sage/sage < bug.sage  81.03s user 0.84s system 94% cpu 1:26.67
> > total ## (note: job doesn't finish within 10 minutes either)
> >
> >
> > IIRC versions 3.* of sage did not have this problem.
> >
> > Note: use ginac's routine, it should be quite fast.

We use Singular to factor symbolic expressions which can be represented
as multivariate polynomials over QQ. In this case Singular's
factorization routine is taking forever to finish, and CTRL-C doesn't
seem to kill it. We don't use _sig_on/_sig_off if there are <5
monomials for some reason. 

Earlier versions of Sage use maxima to factor symbolic expressions. I
called maxima directly using 

sage: t.._maxima_().factor()

and that is still running for >9 minutes now.


AFAIK, the Singular group is working to improve their multivariate
factorization routines. Maybe this will be one of the topics we work on
at Sage days 26 in Kaiserslautern.

Cheers,
Burcin

-- 
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
URL: http://www.sagemath.org


Re: [sage-support] Using CRT to speed up calculations over QQ

2010-02-21 Thread Burcin Erocal
Hi Jeff,

On Sun, 21 Feb 2010 13:28:09 -0800 (PST)
Jeff Stroomer  wrote:

> Sage Folks,
> 
> I am working on a problem that requires me to generate a large matrix
> over QQ, and then calculate the row-echelon form.  I think there's a
> good chance  I can speed up the calculations if I use the Chinese
> Remainder Theorem to translate rationals into equivalent vectors of
> small integers, then do modular arithmetic on the vectors, and at the
> end translate the vectors back into rationals.

Are you only interested in computing the echelon form?

Sage already implements 3 options, 'classical', 'padic',
'multimodular', which you can see in the documentation you get with

sage: M = random_matrix(QQ, 3)
sage: M.echelon_form?

> This is a pretty standard trick, so I thought I would see a way in
> Sage to do this without writing the machinery myself.  But so far I
> haven't found it.  Am I not looking in the right place, or is it
> really not there?  Also, is it reasonable for me to think this is
> likely to speed up the calculations?

The multi modular echelon form implementation is in
sage/matrix/misc.pyx starting at line 203. There is also some generic
machinery to do CRT lifting in the file sage/ext/multi_modular.pyx.


Cheers,
Burcin

-- 
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
URL: http://www.sagemath.org


[sage-support] Re: Using CRT to speed up calculations over QQ

2010-02-21 Thread Jeff Stroomer
Burcin,

Thanks - I never before saw the multimodular argument.  That's really
nice, and I like that fact that the default is to pick something
suitable.

But simply using the multimodular approach when echelonizing the
matrix isn't enough.  I have to do two steps - first, generate the
matrix, and then echelonize it.  Generating is potentially quite
expensive, so I'd like to use a multimodular approach there as well.
Generating consists of starting with a few "seed" values in the
matrix, and then repeatedly generating new matrix elements by
multiplying previously-generated elements by field elements.  So a
multimodular approach to the generation potentially saves me even more
than a multimodular approach echelon reduction.

I thought perhaps I could define my own multimodular ring as a
Cartesian product of several smaller modular rings, and then do the
generation cheaply.

Jeff


On Feb 21, 3:05 pm, Burcin Erocal  wrote:
> Hi Jeff,
>
> On Sun, 21 Feb 2010 13:28:09 -0800 (PST)
>
> Jeff Stroomer  wrote:
> > Sage Folks,
>
> > I am working on a problem that requires me to generate a large matrix
> > over QQ, and then calculate the row-echelon form.  I think there's a
> > good chance  I can speed up the calculations if I use the Chinese
> > Remainder Theorem to translate rationals into equivalent vectors of
> > small integers, then do modular arithmetic on the vectors, and at the
> > end translate the vectors back into rationals.
>
> Are you only interested in computing the echelon form?
>
> Sage already implements 3 options, 'classical', 'padic',
> 'multimodular', which you can see in the documentation you get with
>
> sage: M = random_matrix(QQ, 3)
> sage: M.echelon_form?
>
> > This is a pretty standard trick, so I thought I would see a way in
> > Sage to do this without writing the machinery myself.  But so far I
> > haven't found it.  Am I not looking in the right place, or is it
> > really not there?  Also, is it reasonable for me to think this is
> > likely to speed up the calculations?
>
> The multi modular echelon form implementation is in
> sage/matrix/misc.pyx starting at line 203. There is also some generic
> machinery to do CRT lifting in the file sage/ext/multi_modular.pyx.
>
> Cheers,
> Burcin

-- 
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
URL: http://www.sagemath.org


[sage-support] Problem compiling with cython

2010-02-21 Thread Oscar Gerardo Lazo Arjona
A friend of mine is having trouble compiling this Cython code in a 
notebook cell:



%cython
def resto(int n):
   lfact=[]
   cdef int i
   for i in range(1,n):
   if n%i ==0:
   lfact.append(i)
  
   tot=sum(lfact)

   return n-tot

puntos=[(i,resto(i)) for i in range(2,8131)]
print len(puntos)

produces this error in his machine:

Traceback (most recent call last):lfact=[]
 File "", line 1, in 
   
 File "/home/juan1489/Downloads/sage-4.2.1-linux-Ubuntu_9.10-i686-Linux/local/lib/python2.6/site-packages/sagenb/misc/support.py", line 511, in cython_import_all

   create_local_c_file=create_local_c_file)
 File 
"/home/juan1489/Downloads/sage-4.2.1-linux-Ubuntu_9.10-i686-Linux/local/lib/python2.6/site-packages/sagenb/misc/support.py",
 line 488, in cython_import
   create_local_c_file=create_local_c_file)
 File 
"/home/juan1489/Downloads/sage-4.2.1-linux-Ubuntu_9.10-i686-Linux/local/lib/python2.6/site-packages/sage/misc/cython.py",
 line 409, in cython
   raise RuntimeError, "Error compiling %s:\n%s\n%s"%(filename, log, err)
RuntimeError: Error compiling 
/home/juan1489/.sage/sage_notebook.sagenb/home/admin/0/code/sage17.spyx:
running build
running build_ext
building 
'_home_juan1489__sage_sage_notebook_sagenb_home_admin_0_code_sage17_spyx_0' 
extension
creating build
creating build/temp.linux-i686-2.6
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes 
-fPIC 
-I/home/juan1489/Downloads/sage-4.2.1-linux-Ubuntu_9.10-i686-Linux/local/include/csage/
 
-I/home/juan1489/Downloads/sage-4.2.1-linux-Ubuntu_9.10-i686-Linux/local/include/
 
-I/home/juan1489/Downloads/sage-4.2.1-linux-Ubuntu_9.10-i686-Linux/local/include/python2.6/
 
-I/home/juan1489/Downloads/sage-4.2.1-linux-Ubuntu_9.10-i686-Linux/local/lib/python2.6/site-packages/numpy/core/include
 
-I/home/juan1489/Downloads/sage-4.2.1-linux-Ubuntu_9.10-i686-Linux/devel/sage/sage/ext/
 -I/home/juan1489/Downloads/sage-4.2.1-linux-Ubuntu_9.10-i686-Linux/devel/sage/ 
-I/home/juan1489/Downloads/sage-4.2.1-linux-Ubuntu_9.10-i686-Linux/devel/sage/sage/gsl/
 -I/home/juan1489/.sage/sage_notebook.sagenb/home/admin/0/code 
-I/home/juan1489/Downloads/sage-4.2.1-linux-Ubuntu_9.10-i686-Linux/local/include/python2.6
 -c _home_juan1489__sage_sage_notebook_sagenb_home_admin_0_code_sage17_spyx_0.c 
-o 
build/temp.linux-i686-2.6/_home_juan1489__sage_sage_notebook_sagenb_home_admin_0_code_sage17_spyx_0.o
 -w -O2
creating build/lib.linux-i686-2.6
gcc -pthread -shared 
build/temp.linux-i686-2.6/_home_juan1489__sage_sage_notebook_sagenb_home_admin_0_code_sage17_spyx_0.o
 -L/home/juan1489/Downloads/sage-4.2.1-linux-Ubuntu_9.10-i686-Linux/local//lib/ 
-lmpfr -lgmp -lgmpxx -lstdc++ -lpari -lm -lcurvesntl -lg0nntl -ljcntl -lrankntl 
-lgsl -lgslcblas -latlas -lntl -lcsage -o 
build/lib.linux-i686-2.6/_home_juan1489__sage_sage_notebook_sagenb_home_admin_0_code_sage17_spyx_0.so
 -L/home/juan1489/Downloads/sage-4.2.1-linux-Ubuntu_9.10-i686-Linux/local//lib

/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status


error: command 'gcc' failed with exit status 1

__home_jua...0_code_sage17_spyx.c 
   __home_jua...ode_sage17_spyx.html 




It works fine on my machine though.

He is on an amd phenom 965 x4 a 3.4 Ghz processor, and Ubuntu 9.10 64 bits.

help! what's wrong?

thank you.

Oscar

--
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
URL: http://www.sagemath.org


[sage-support] Re: Problem compiling with cython

2010-02-21 Thread Oscar Lazo


On 21 feb, 21:50, Oscar Gerardo Lazo Arjona
 wrote:
> He is on an amd phenom 965 x4 a 3.4 Ghz processor, and Ubuntu 9.10 64 bits.

It turns out it is actually an Intel core 2 dou
 with ubuntu 9.10 32 bits

thanks

Oscar

-- 
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
URL: http://www.sagemath.org


[sage-support] Inverse in lazy power series

2010-02-21 Thread Kwankyu
Hi,

Is it possible to compute in Sage a lazy power series y in x
satisfying

y = x/(1-y)

? I know a recursive definition is possible in Sage lazy power series
module. What about the inverse 1/(1-y)?

Thank you in advance.

Kwankyu

-- 
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
URL: http://www.sagemath.org