libimobiledevice / libideviceactivation

A library to handle the activation process of iOS devices
https://libimobiledevice.org
GNU Lesser General Public License v2.1
291 stars 132 forks source link

No package 'libcurl' found #50

Closed Gribesh closed 3 years ago

Gribesh commented 3 years ago

OS Name: Ubuntu 20.04.2 LTS OS Type: 64-bit

I have followed the installation procedure as mentioned in the README.md When I run the command to build:

./autogen.sh

Program ends with the following error:

checking for libplist-2.0 >= 2.2.0... yes
checking for libcurl >= 7.20... no
configure: error: Package requirements (libcurl >= 7.20) were not met:

No package 'libcurl' 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 libcurl_CFLAGS
and libcurl_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

I have installed all the dependencies but it is not working.

dc74089 commented 3 years ago

I am also having this issue... Did you ever find a resolution?

dc74089 commented 3 years ago

@nikias on MacOS:

checking pkg-config is at least version 0.9.0... yes
checking for libimobiledevice-1.0 >= 1.3.0... no
configure: error: Package requirements (libimobiledevice-1.0 >= 1.3.0) were not met:

Package 'openssl', required by 'libimobiledevice-1.0', not 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 libimobiledevice_CFLAGS
and libimobiledevice_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

libimobiledevice is installed both by brew and manually compiled

nikias commented 3 years ago

@dc74089 use my macOS script. It builds everything for you, using system libs where possible and building everything else from scratch.

mkdir -p limd-build
cd limd-build
curl -o ./limd-build-macos.sh -Ls https://git.io/J3kfy
bash ./limd-build-macos.sh
nikias commented 3 years ago

@Gribesh for ubuntu: Install the development packages. Does anyone ever read the README? For Ubuntu 20.04 it should be libcurl4-openssl-dev what you need.

dc74089 commented 3 years ago

@nikias that did it! Thanks so much.

Is that script published publicly somewhere? SO useful.

nikias commented 3 years ago

On my twitter profile. I will put it on libimobiledevice.org too, I am currently making a few adjustments to it.

ghost commented 3 years ago

@nikias on MacOS:

checking pkg-config is at least version 0.9.0... yes
checking for libimobiledevice-1.0 >= 1.3.0... no
configure: error: Package requirements (libimobiledevice-1.0 >= 1.3.0) were not met:

Package 'openssl', required by 'libimobiledevice-1.0', not 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 libimobiledevice_CFLAGS
and libimobiledevice_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

libimobiledevice is installed both by brew and manually compiled

I have the same issue:

configure: error: Package requirements (libimobiledevice-1.0 >= 1.3.0) were not met:

Package 'openssl', required by 'libimobiledevice-1.0', not found
ghost commented 3 years ago

@dc74089 use my macOS script. It builds everything for you, using system libs where possible and building everything else from scratch.

mkdir -p limd-build
cd limd-build
curl -o ./limd-build-macos.sh -Ls https://git.io/J3kfy
bash ./limd-build-macos.sh

Your script didn't help

configure: error: Package requirements (libimobiledevice-1.0 >= 1.3.0) were not met:

Package 'openssl', required by 'libimobiledevice-1.0', not 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 libimobiledevice_CFLAGS
and libimobiledevice_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
x@192-168-10-195 libideviceactivation-master % which openssl
/opt/local/bin/openssl
x@192-168-10-195 libideviceactivation-master % where openssl    
/opt/local/bin/openssl
/usr/bin/openssl
x@192-168-10-195 libideviceactivation-master % /usr/bin/openssl
OpenSSL> version
LibreSSL 2.8.3
OpenSSL> Ctrl+C
x@192-168-10-195 libideviceactivation-master % mkdir -p limd-build
cd limd-build
curl -o ./limd-build-macos.sh -Ls https://git.io/J3kfy
bash ./limd-build-macos.sh
**** libimobiledevice stack build script for macOS, revision 1.0.6 ****
PREFIX: /usr/local
NOTE: During the process you will be asked for your password, this is to allow installation of the built libraries and tools via sudo.
######## INSTALLING REQUIRED TOOLS AND DEPENDENCIES ########
* autoconf: found
* automake: found
* libtool: found
*** Installing cmake (in-tree)
-- Updating $PATH
* cmake: done
* lzma headers: found
* libzip: found
* LibreSSL libssl.35.tbd: found
* LibreSSL libcrypto.35.tbd: found
  LibreSSL version requirment: 2.2.7
*** Installing LibreSSL headers (in-tree)
x@192-168-10-195 limd-build % cd ..                         
x@192-168-10-195 libideviceactivation-master % exec $SHELL
x@192-168-10-195 libideviceactivation-master % ./autogen.sh
...
...
configure: error: Package requirements (libimobiledevice-1.0 >= 1.3.0) were not met:

Package 'openssl', required by 'libimobiledevice-1.0', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
nikias commented 3 years ago

You do realize that the script already builds libideviceactivation? No need to build it again separately. Also use the most recent script from here: https://gist.github.com/nikias/84c79469a1d0f16ff95250f0d51858c3

ghost commented 3 years ago

You do realize that the script already builds libideviceactivation? No need to build it again separately. Also use the most recent script from here: https://gist.github.com/nikias/84c79469a1d0f16ff95250f0d51858c3

What? Do you see actually what did I send? Look at the terminal output. Please

Btw I don't need ideviceactivation anymore, thx :) Already activated all my devices with purplefat