Search code examples
python-3.xcx-freeze

Python 3 cx-Freeze install


I tried to install cx_freeze, but when I run sudo python3 setup.py build I get an error:

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

I know that I can install it using synaptic but that installed cx_Freeze into Python 2.6 but I need cx_Freeze for Python 3. I use Ubuntu 10.04


Solution

  • Sounds like libffi isn't installed. Try:

    sudo apt-get install libffi-dev