```ruby
require_relative "czmq-ffi-gen/czmq/ffi"
require_relative "czmq-ffi-gen/versions"
require_relative "czmq-ffi-gen/errors"
require_relative "czmq-ffi-gen/signals"
require_relative "czmq-ffi-gen/legacy"
CZMQ::FFI.available? or raise LoadError, "libczmq is not available"
```

Use bundled libzmq and libczmq if exist
user
```ruby
base_dir = File.expand_path(File.join(__dir__, ".."))
vendor_bin_dir = File.join(base_dir, "vendor", "local", "bin")
if File.exist?(vendor_bin_dir)
  ENV["PATH"] = [vendor_bin_dir, ENV["PATH"]].join(File::PATH_SEPARATOR)
end

require_relative "czmq-ffi-gen/czmq/ffi"
require_relative "czmq-ffi-gen/versions"
require_relative "czmq-ffi-gen/errors"
require_relative "czmq-ffi-gen/signals"
require_relative "czmq-ffi-gen/legacy"
CZMQ::FFI.available? or raise LoadError, "libczmq is not available"
```
assistant