compiling 3.7.0 from source with custom libffi path

abhinav1205 at gmail.com abhinav1205 at gmail.com
Thu May 30 02:33:24 EDT 2019


Exactly same issue.. ctypes wont build .. pkg-config finds libffi, headers are located in configure and still 
INFO: Could not locate ffi libs and/or headers

python is getting really annoying to install .. not everyone has root privileges to install system-wide dependencies. 


On Tuesday, September 25, 2018 at 12:11:51 AM UTC+5:30, Fetchinson . wrote:
> On 9/24/18, Thomas Jollans <tjol at tjol.eu> wrote:
> > On 2018-09-24 16:30, Fetchinson . via Python-list wrote:
> >> [fetch at fetch]$ grep LIBFFI_INCLUDE Makefile
> >> LIBFFI_INCLUDEDIR=      /opt/custom/lib/libffi-3.2.1/include
> >>
> >> So I'd say everything should work but it doesn't, I reran ./configure
> >> and also make of course.
> >
> > I'm confused. ./configure succeeds? Then where's the error?
> 
> Yes, ./configure succeeds, also make succeeds in general, so it
> produces a usable python executable but _ctypes is not compiled so
> _ctypes is not usable and can not be imported, libffi is only needed
> for _ctypes AFAIK. The error, or better said INFO message, comes from
> make:
> 
> INFO: Could not locate ffi libs and/or headers
> 
> Failed to build these modules:
> _ctypes
> 
> But nevertheless make install also succeeds, the only thing is that
> _ctypes does not work.
> 
> Cheers,
> Daniel
> 
> -- 
> Psss, psss, put it down! - http://www.cafepress.com/putitdown




More information about the Python-list mailing list