Package libffi was not found in the pkg-config search path REDHAT6.5

前端 未结 6 1021
甜味超标
甜味超标 2020-12-31 09:37

I am trying to run setup.py related to a proprietary software installation and it has dependencies on libffi.

Since its Redhat 6.5 the python version was 2.6 and i i

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-31 10:19

    I had the same issue for MacOS. I assume the solution should be similar.

    nano ~/.bash_profile
    

    Add these two lines below to the end of your bash_profile so that it can be discovered

    export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"
    export LDFLAGS="-L/usr/local/opt/libffi/lib" 
    

    Save and quit and restart Terminal

提交回复
热议问题