First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 14 years ago

Eviatar Bach gravatar image

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.

click to hide/show revision 2
No.2 Revision

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.

click to hide/show revision 3
No.3 Revision

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.