ruby-duckdb
ruby-duckdb copied to clipboard
Install fails if your Homebrew directory is not /opt/homebrew
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.
- Find your directory path having
duckdb.h. - Find your directory path having
libduckdb.dylib. - gem install duckdb with
--with-duckdb-includeand--with-duckdb-liboption.
gem install duckdb --with-duckdb-include=your_duckdb.h_directory_path --with-duckdb-lib=your_libduckdb.dylib_directory_path