configure: error: Package requirements (libimobiledevice-1.0 >= 1.3.0) were not met: Package 'openssl', required by 'libimobiledevice-1.0', not found
Package 'openssl', required by 'libimobiledevice-1.0', not found
then I tried to install libimobiledevice-1.3.0, it tells:
checking consistency of all components of python development environment... yes
checking for openssl... no
configure: error: OpenSSL support explicitly requested but OpenSSL could not be found
but I had already installed openssl
每次换台电脑重新安装libimobiledevice一系列的依赖库的时候,总是编译libideviceactivation会出现失败。出现最多的就是上面这个问题,简直就是通病。
提示openssl找不到libimobiledevice,最主要的问题是:openssl没有定义路径所以找不到依赖库,实际上libimobiledevice已经是安装好了。因为输入irecovery的时候,有反应。
解决办法:
export PATH="/usr/local/opt/openssl/bin:$PATH"
export LD_LIBRARY_PATH="/usr/local/opt/openssl/lib:$LD_LIBRARY_PATH"
export CPATH="/usr/local/opt/openssl/include:$CPATH"
export LIBRARY_PATH="/usr/local/opt/openssl/lib:$LIBRARY_PATH"
export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"
重新再执行编译就行了。
./autogen.sh
make
sudo make install