firnsy / barnyard2

Barnyard2 is a dedicated spooler for Snort's unified2 binary output format.
GNU General Public License v2.0
343 stars 189 forks source link

OSX: dyld: Library not loaded: /usr/local/lib/libmysqlclient.18.dylib #175

Open drew1kun opened 8 years ago

drew1kun commented 8 years ago

Hi! Running barnyard2 under OSX 10.10.5. When trying to start getting this:

$ /usr/local/bin/barnyard2
dyld: Library not loaded: /usr/local/lib/libmysqlclient.18.dylib
  Referenced from: /usr/local/bin/barnyard2
  Reason: image not found
[1]    76372 trace trap  /usr/local/bin/barnyard2

Any ideas? Please help! Thanks

drew1kun commented 8 years ago

The only file /usr/local/lib/libmysqlclient.20.dylib is there... but for some reason it asks libmysqlclient.18.dylib

hunterf0x commented 8 years ago

i've the same problem! :(

CAvancouver commented 8 years ago

if your use EI Capitan(eg.OS X 10.11.2) ; virtualenv control python enviroment ; install mysqlclient-1.3.7 to connect mysql ,maybe you could try this method. "pip install --upgrade mysql" ,it doesn't downgrade the libmysqlclient.20.dylib to libmysqlclient.18.dylib , just only fix "image not found" problem. except someone supply more detail for how it fixed