gcc

How do I compile Python 3.4 with custom OpenSSL?

How do I compile Python 3.4 with custom OpenSSL? Question: I have my own OpenSSL installation in a non-standard location (/my/path for the sake of this example) and I want Python 3.4 to build against that when I compile it against source. What I tried is this (directories abbreviated) CPPFLAGS=”-I/my/path/include -I/my/path/include/openssl” ./configure –prefix=/my/path/ I also …

Total answers: 3

Debugging the error "gcc: error: x86_64-linux-gnu-gcc: No such file or directory"

Debugging the error "gcc: error: x86_64-linux-gnu-gcc: No such file or directory" Question: I’m trying to build: https://github.com/kanzure/nanoengineer But it looks like it errors out on: gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/python2.7 -std=c99 x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -MT libstructcompare_a-structcompare.o -MD -MP -MF .deps/libstructcompare_a-structcompare.Tpo -c -o libstructcompare_a-structcompare.o `test -f ‘structcompare.c’ || echo …

Total answers: 10

Cygwin gcc issue – cannot find Python.h

Cygwin gcc issue – cannot find Python.h Question: So I downloaded Cygwin to build Matplotlib on Windows. Upon running python setup.py build I get a message saying Python.h cannot be found (pastebin). Looking in /usr/include/python2.7, I can clearly see Python.h exists. When I do: gcc -print-search-dirs I get paths to some Haskell folder outside of …

Total answers: 3

fatal error: Python.h: No such file or directory

fatal error: Python.h: No such file or directory Question: I am trying to build a shared library using a C extension file but first I have to generate the output file using the command below: gcc -Wall utilsmodule.c -o Utilc After executing the command, I get this error message: > utilsmodule.c:1:20: fatal error: Python.h: No …

Total answers: 35

out of memory issue in installing packages on Ubuntu server

out of memory issue in installing packages on Ubuntu server Question: I am using a Ubuntu cloud server with limited 512MB RAM and 20 GB HDD. Its 450MB+ RAM is already used by processes. I need to install a new package called lxml which gets complied using Cpython while installation and its a very heavy …

Total answers: 1

Error installing python-snappy: snappy-c.h: No such file or directory

Error installing python-snappy: snappy-c.h: No such file or directory Question: I am using amazon ec2 ubuntu 11.04 server sudo pip install python-snappy also I tried to downloaded package and entered “sudo python setup.py install” I got the error: running build running build_ext building ‘snappy’ extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC …

Total answers: 14

How to compile .c code from Cython with gcc

How to compile .c code from Cython with gcc Question: Now that I’ve successfully installed Cython on Windows 7, I try to compile some Cython code using Cython, but gcc makes my life hard. cdef void say_hello(name): print “Hello %s” % name Using gcc to compile the code throws dozens of undefined reference to -erros, …

Total answers: 2

How may I override the compiler (GCC) flags that setup.py uses by default?

How may I override the compiler (GCC) flags that setup.py uses by default? Question: I understand that setup.py uses the same CFLAGS that were used to build Python. I have a single C extension of ours that is segfaulting. I need to build it without -O2 because -O2 is optimizing out some values and code …

Total answers: 3