Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Cython command 'gcc' failed with exit status 1

Hello,

Trying to use Cython from the Sage Notebook. I put in the following code from Planet Sage:

`%cython

def sum_cython(long n): cdef long i, s = 0 for i in range(n): s += i return s`

However, it fails with this error:

/usr/bin/ld: cannot find -lstdc++ collect2: ld returned 1 exit status error: command 'gcc' failed with exit status 1

I have libstdc++ 6 installed, so why is this happening?

Thank you.

Cython command 'gcc' failed with exit status 1

Hello,

Trying to use Cython from the Sage Notebook. I put in the following code from Planet Sage:

`%cython%cython

def sum_cython(long n): cdef long i, s = 0 for i in range(n): s += i return s`s

However, it fails with this error:

/usr/bin/ld: cannot find -lstdc++ collect2: ld returned 1 exit status error: command 'gcc' failed with exit status 1

I have libstdc++ 6 installed, so why is this happening?

Thank you.

Cython command 'gcc' failed with exit status 1

Hello,

Trying to use Cython from the Sage Notebook. I put in the following code from Planet Sage:

%cython

%cython
  

def sum_cython(long n): cdef long i, s = 0 for i in range(n): s += i return s

However, it fails with this error:

/usr/bin/ld: cannot find -lstdc++ collect2: ld returned 1 exit status error: command 'gcc' failed with exit status 1

I have libstdc++ 6 installed, so why is this happening?

Thank you.