mesh icon indicating copy to clipboard operation
mesh copied to clipboard

Installation Issue with ImportError: libffi.so.6

Open jmz3 opened this issue 10 months ago • 1 comments

Hello! Thank you for sharing this great repo! I had an issue during installation:

System: Ubuntu 20.04 Python Version: 3.6.9, virtual environment created with conda

Steps:

$ conda create -n flame-test python=3.6.9
$ conda activate flame-test
$ BOOST_INCLUDE_DIRS=/usr/include/boost/ make all
# Normal outputs are skipped here
...
...
ImportError: libffi.so.6: cannot open shared object file: No such file or directory

make: *** [Makefile:6: all] Error 2

I have checked my system, looks like Ubuntu 20 doesn't have libffi6 supported. It has libffi7 instead. I have made sure boost is installed. Could you please help me to resolve this error?

jmz3 avatar Feb 14 '25 00:02 jmz3

I figured this out. If you are using Ubuntu 20.04 or higher, you have to use Python >=3.8 because it relies on libffi7, which is natively nested and supported by Ubuntu 20.04.

jmz3 avatar Feb 18 '25 04:02 jmz3

I got this error when I used python 3.8 on Ubuntu 20.04. Python 3.7 env works as stated in VOCA

Cdivyam avatar Mar 04 '25 18:03 Cdivyam