Author Topic: Problem with *.dylib  (Read 1026 times)

00kian00

  • Noob
  • *
  • Posts: 15
  • Reputation: 0
  • iDevices: iPod Touch4
Problem with *.dylib
« on: February 11, 2013, 02:58:16 am »
Ok,I'm Chinese ,so my English it's very poor:-P


      I install some apps from ininjas in Cydia ,such as metaspolit,ettercap GTK ,windowmaker ...... When I run them in Terminal or iSSH ,it often show "cann't find usr/local/lib *.dylib ". And I can't find the similar name in "usr/local/lib" ,so I can't link it.So ,what should I do?(I have installed Libtools )


« Last Edit: February 11, 2013, 03:03:58 am by 00kian00 »

BooCocky

  • Leader
  • Hero Member
  • *****
  • Posts: 875
  • Reputation: 81
  • All your base are belong to ininjas
  • Badges:
  • Computers: Dell Inspirion
  • iDevices: ipod shuffle
Re: Problem with *.dylib
« Reply #1 on: February 11, 2013, 04:30:13 am »
What are the dylibs names exactly.  The lib might also be in /usr/lib so you could link against that.  Or maybe there was a missing dependency.
« Last Edit: February 12, 2013, 07:19:18 am by BooCocky »

00kian00

  • Noob
  • *
  • Posts: 15
  • Reputation: 0
  • iDevices: iPod Touch4
Re: Problem with *.dylib
« Reply #2 on: February 11, 2013, 05:20:02 am »
Ettercap-ng GTK (libexpat.1.dylib)

BooCocky

  • Leader
  • Hero Member
  • *****
  • Posts: 875
  • Reputation: 81
  • All your base are belong to ininjas
  • Badges:
  • Computers: Dell Inspirion
  • iDevices: ipod shuffle
Re: Problem with *.dylib
« Reply #3 on: February 11, 2013, 11:12:29 am »
Why did you report my post lol?  Anyway,  I just checked in my /usr/lib folder and libexpat.1.dylib is there.   It is linked against /usr/lib/libexpat.1.5.2.dylib.  So try running


ln -s /usr/lib/libexpat.1.5.2.dylib /usr/local/lib/libexpat.1.dylib


Then try running ettercap.

Ironman

  • Administrator
  • Hero Member
  • *****
  • Posts: 5108
  • Reputation: 252
  • Badges:
  • Computers: ASUS UL50VT
  • iDevices: iPhone 5, iPhone 4S, iPhone 4, iPhone 3GS
Re: Problem with *.dylib
« Reply #4 on: February 11, 2013, 11:54:32 am »
Maybe it was because you spelled could as coupd. :-)
Click for How to Add Our Repo
If you're going to ask questions....
At least make them good ones.

Knowledge is the one thing that can never be taken from you

Don't like seeing ads? Click here to register!

LeoTh3o

  • Full Member
  • ***
  • Posts: 231
  • Reputation: 44
    • ET&C
  • Computers: MacBook Pro 15', half 2009, OS X 10.8.1
  • iDevices: iPod 3G iOS 5.1.1; iPad 2 WiFi iOS 5.1.1 jb
Re: Problem with *.dylib
« Reply #5 on: February 11, 2013, 12:51:08 pm »
There may be a different problem: the binaries have hardcoded paths for dylibs. If they aren't there, that's gotten as an error, even if the library is installed somewhere else. Check with tool -L <binary> where the libraries are supposed to be and at which version.
0xEB        0xFE
jmp short -2

00kian00

  • Noob
  • *
  • Posts: 15
  • Reputation: 0
  • iDevices: iPod Touch4
Re: Problem with *.dylib
« Reply #6 on: February 11, 2013, 08:00:07 pm »
Sorry.....I thought it was "Reply".....

00kian00

  • Noob
  • *
  • Posts: 15
  • Reputation: 0
  • iDevices: iPod Touch4
Re: Problem with *.dylib
« Reply #7 on: February 11, 2013, 09:14:29 pm »
I still can't find libexpat in usr/lib or usr/local/lib (use ifile)

00kian00

  • Noob
  • *
  • Posts: 15
  • Reputation: 0
  • iDevices: iPod Touch4
Re: Problem with *.dylib
« Reply #8 on: February 11, 2013, 11:11:01 pm »
Should I install some packages about libexpat?

00kian00

  • Noob
  • *
  • Posts: 15
  • Reputation: 0
  • iDevices: iPod Touch4
Re: Problem with *.dylib
« Reply #9 on: February 12, 2013, 06:57:23 am »
Ok,I fonud the awnser. Libexpat is in package ----"XML Parser Toolkit" ^_^

Don't like seeing ads? Click here to register!

BooCocky

  • Leader
  • Hero Member
  • *****
  • Posts: 875
  • Reputation: 81
  • All your base are belong to ininjas
  • Badges:
  • Computers: Dell Inspirion
  • iDevices: ipod shuffle
Re: Problem with *.dylib
« Reply #10 on: February 12, 2013, 07:17:05 am »
^OK so everything is working now?


Maybe it was because you spelled could as coupd. :-)

I seem to do that alot lol.

There may be a different problem: the binaries have hardcoded paths for dylibs. If they aren't there, that's gotten as an error, even if the library is installed somewhere else. Check with tool -L <binary> where the libraries are supposed to be and at which version.

This is why everything since the beginning of time that is third party should have just been compiled for /usr/local.  The library errors are unanimous now.   A couple of times I used the /usr directory as PATH because I was stupid and thought it was better.  Now everythings messed up :(

00kian00

  • Noob
  • *
  • Posts: 15
  • Reputation: 0
  • iDevices: iPod Touch4
Re: Problem with *.dylib
« Reply #11 on: February 12, 2013, 08:54:35 am »
Oh god ,there have another problem:




Administratorteki-iPod:~ root# ettercap -G

ettercap NG-0.7.3 copyright 2001-2004 ALoR & NaGA

dyld: lazy symbol binding failed: Symbol not found: ___sync_fetch_and_add_4
  Referenced from: /usr/local/lib/libglib-2.0.0.dylib
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: ___sync_fetch_and_add_4
  Referenced from: /usr/local/lib/libglib-2.0.0.dylib
  Expected in: /usr/lib/libSystem.B.dylib

Trace/BPT trap: 5

Trcx528

  • Haxor
  • Hero Member
  • *****
  • Posts: 4502
  • Reputation: 166
  • Google it!
    • iNinjas
  • Badges:
  • Computers: 13" 2011 Macbook Pro, 120 GB SSD and 16 GB of Ram
  • iDevices: None
Re: Problem with *.dylib
« Reply #12 on: February 12, 2013, 09:05:12 am »
What device are you running this on? iPhone 4/5? iPad?

00kian00

  • Noob
  • *
  • Posts: 15
  • Reputation: 0
  • iDevices: iPod Touch4
Re: Problem with *.dylib
« Reply #13 on: February 12, 2013, 09:21:55 am »
iPod Touch4 ios6.1

LeoTh3o

  • Full Member
  • ***
  • Posts: 231
  • Reputation: 44
    • ET&C
  • Computers: MacBook Pro 15', half 2009, OS X 10.8.1
  • iDevices: iPod 3G iOS 5.1.1; iPad 2 WiFi iOS 5.1.1 jb
Re: Problem with *.dylib
« Reply #14 on: February 12, 2013, 12:15:47 pm »
Oh god ,there have another problem:




Administratorteki-iPod:~ root# ettercap -G

ettercap NG-0.7.3 copyright 2001-2004 ALoR & NaGA

dyld: lazy symbol binding failed: Symbol not found: ___sync_fetch_and_add_4
  Referenced from: /usr/local/lib/libglib-2.0.0.dylib
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: ___sync_fetch_and_add_4
  Referenced from: /usr/local/lib/libglib-2.0.0.dylib
  Expected in: /usr/lib/libSystem.B.dylib

Trace/BPT trap: 5
You get this error most probably because /use/lib/libSystem.B.dylib is too old. Get a copy of that library from a recent sdk and replace your existing copy. You will also need to copy all the libraries that were once bundled in libSystem and now are in /usr/lib/system (by default the directory is empty on the device). I got this error too and fixed it this way.
0xEB        0xFE
jmp short -2