95 questions
1 vote
1 answer
104 views
Package libffi-dev has no installation candidate on Raspberry pi-os bookworm 12
Some context, I am using a raspberry pi 5 running pi-os bookworm 12. I have a coral ai usb accelerator, and I am trying to run a tflite model on it. Due to pycoral only supporting versions 3.6 to 3.9, ...
2 votes
1 answer
1k views
rvm install 3.4.1 failing with missing libffi
I have been given the onerous task of updating a legacy 2.7.1 ruby application to 3.4.1. I'm working through some installation notes trying to install 3.4.1 on Ubunbtu 22.04LTS I've run through some ...
0 votes
0 answers
50 views
Is there a way to install libffi files manually? (toolchain build kivy does not work)
I'm trying to package my Kivy app for iOS following this When I need to use toolchain build kivy, I get all kinds of different errors. Now I am stuck on building libffi. I have gotten all kinds of ...
1 vote
0 answers
281 views
Error when installing rpy2 with pip, cannot find libffi.a
I am working on Rocky Linux and I want to work with R through python. I have already installed R successfully. Now I want to install rpy2, and pip install rpy2 fails with error: creating build/temp....
0 votes
0 answers
162 views
Tensorflow crashing with libffi.so.6 error
I am trying to run tensor flow in Python 3.7.4 and TensorFlow 2.16.1. As soon as I try to import Tensorflow, it crashes with the following error - ImportError: libffi.so.6: cannot open shared object ...
1 vote
0 answers
57 views
Forcing gcc to use /usr/gnu/bin/ld or /usr/gld rather than /usr/ld on Solaris 11.3 (Sparc)
I am trying to build libffi-3.4.5. The README file states that I must use GNU as and ld. On Solaris 11.3, these are either /usr/gas (or /usr/gnu/bin/as) and /usr/gld (or /usr/gnu/bin/ld). Short of ...
1 vote
1 answer
871 views
Shared Library files not found when building Python from source as non-root user
I am trying to build Python3.12 from source as a non-root user on Linux. I am aware that it need openssl (for pip) and the libffi headers, which I have attempted to build from source as well. Doing ...
1 vote
1 answer
4k views
Unknown dependency "pin-1" prevents conda installation
I'm trying to downgrade libffi=3.3 because of a bug I'm encountering (see very end). conda install libffi==3.3 -n mismatch Channels: - defaults Platform: linux-64 Collecting package metadata (...
0 votes
0 answers
2k views
pyenv BUILD FAILED - The Python ctypes extension was not compiled. Missing the libffi lib?
This problem occurs when installing Python 3.6.8. But version 3.6.10 installs successfully. pyenv install 3.6.8 Downloading Python-3.6.8.tar.xz... -> https://www.python.org/ftp/python/3.6.8/Python-...
3 votes
0 answers
80 views
libffi.so link issue for Haskell compiled executable on Linux platforms
I am working on a Haskell project where the final executable is dependent on the libffi.so.6 if it's being compiled on Ubuntu 18 and if I run it on Ubuntu 20 machine it fails stating it couldn’t find ...
1 vote
0 answers
85 views
C convert array to a arguments for a function [duplicate]
I have a list of arguments of different types: value_info args_array[10]; value_info is defined as follows: typedef int int_type; typedef float float_type; typedef double double_type; typedef bool ...
0 votes
1 answer
161 views
No Public Key for Libffi-devel
I'm trying to install some files I pulled into an offline system, but I am missing a key file. When I try to do sudo yum localinstall libffi-devel-3.0.13-19.el7.x86_64.rpm I am met with error warning: ...
0 votes
1 answer
186 views
FFI: how to pass pointers in C to C functions?
I am struggling with libffi (Function Foreign Interface library), probably, due to the lack of C experience. I have the following program that calls a function my_func dynamically using libffi: #...
1 vote
0 answers
88 views
How to specify "double *" type in libffi?
I need to dynamically invoke a function in C with the function name and the arguments (and their types) only known during runtime. For that, I use libffi (Foreign Function Interface library). I need ...
4 votes
2 answers
2k views
Problems building Ruby on ARM-64 MacOS machine
Unable to build Ruby 3.1.1 on my Mac OS ARM-64 machine, as it tries to use x86_64 versions of some files. I'm trying to use brew and rbenv to manage my Ruby installation. I have used several sources ...