ruby-duckdb icon indicating copy to clipboard operation
ruby-duckdb copied to clipboard

Install fails if your Homebrew directory is not /opt/homebrew

Open haydenk opened this issue 1 year ago • 1 comments

https://github.com/suketa/ruby-duckdb/blob/main/ext/duckdb/extconf.rb#L10

I setup my homebrew installation in my user home directory ~/.brew with an environment variable of $BREW_HOME to specify where it is.

While creating a symbolic link /opt/homebrew -> ~/.brew did "fix" it so the gem installed, a better option to override and specify my own paths would be nice.

Maybe there is one and I have overlooked it or am unaware.

haydenk avatar Oct 19 '24 18:10 haydenk

  1. Find your directory path having duckdb.h.
  2. Find your directory path having libduckdb.dylib.
  3. gem install duckdb with --with-duckdb-include and --with-duckdb-lib option.
gem install duckdb --with-duckdb-include=your_duckdb.h_directory_path --with-duckdb-lib=your_libduckdb.dylib_directory_path

suketa avatar Oct 19 '24 20:10 suketa