Skip to content

Instantly share code, notes, and snippets.

@shadowbq
Created January 26, 2015 16:42
Show Gist options
  • Save shadowbq/468fce1ed795cfbb0ed8 to your computer and use it in GitHub Desktop.
Save shadowbq/468fce1ed795cfbb0ed8 to your computer and use it in GitHub Desktop.
Dependency test for Barnyard2 compiled on FreeBSD 9.3 with MySQL
#!/usr/bin/env ruby
## Barnyard2 compiled on FreeBSD 9.3 with MySQL
filelist = %w{ /usr/local/lib/mysql/libmysqlclient.so.18 /lib/libz.so.6 /lib/libpcap.so.8 /lib/libm.so.5 /lib/libc.so.7 /usr/lib/libstdc++.so.6 /lib/libgcc_s.so.1 /lib/libthr.so.3}
require 'fileutils'
filelist.each do |libso|
puts "Missing: #{libso}" unless File.file?(libso)
end
puts "done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment