configure:error: Package requirements (libffi >= 3.0.0) were not met

安裝glib包,在編譯的時候出現錯誤:

configure: error: Package requirements (libffi >= 3.0.0) were not met:

No package 'libffi' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBFFI_CFLAGS
and LIBFFI_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

原因:很多原因就是缺少開發包,例如這裏的環境變量的定義

解決:

# yum install libffi-devel  -y

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章