libimobiledevice / ideviceinstaller

Manage apps of iOS devices
https://libimobiledevice.org
GNU General Public License v2.0
1.26k stars 261 forks source link

Syntax error near unexpected token "libusbmuxd" #89

Open den-iaremenko opened 6 years ago

den-iaremenko commented 6 years ago

Hi I am getting this error:

STR:

  1. brew install --HEAD libimobiledevice (Returning error and suggestion to "Brew Link libimobiledevice")
  2. Brew Link libimobiledevice (returning error /bin is not writable)
  3. brew install ideviceinstaller ( Syntax error near unexpected token "libusbmuxd" )

Error: PKG_CHECK_MODULES(libusbmuxd, libusbmuxd >= $LIBUSBMUXD_VERSION)

andreidiaconu commented 6 years ago

If I try to install using brew, I get the same error. If I simply download the latest from master and run ./autogen.sh, I get

checking dynamic linker characteristics... darwin17.5.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
./configure: line 12089: syntax error near unexpected token `libimobiledevice,'
./configure: line 12089: `PKG_CHECK_MODULES(libimobiledevice, libimobiledevice-1.0 >= 1.2.0)'
andreidiaconu commented 6 years ago

I solved the issues I was seeing by running brew doctor. The specific issue that I was facing was that some folders had the wrong owner. The issue is described here - it might be the same for others landing here or it might be something else. Run brew doctor and see what the doctor has to say 😄

postpersonality commented 6 years ago

I have this error while compiling on Debian 9.4

P.S. Fixed with sudo apt install libimobiledevice-dev libplist++

iqbalhadi commented 6 years ago

thank you dear God bless you

dandv commented 6 years ago

@iqbalhadi: what does God have to do with this?

yangqin22 commented 5 years ago

checking how to hardcode library paths into programs... immediate ./configure: line 16050: syntax error near unexpected token libusbmuxd,' ./configure: line 16050:PKG_CHECK_MODULES(libusbmuxd, libusbmuxd >= $LIBUSBMUXD_VERSION)'

READ THIS: https://docs.brew.sh/Troubleshooting

petergerner commented 3 years ago

In some cases it helps having the pkg-config package installed.

sudo apt install pkg-config