Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'gem install sqlite3' fails on FreeBSD #288

Closed
ghost opened this issue May 10, 2020 · 3 comments
Closed

'gem install sqlite3' fails on FreeBSD #288

ghost opened this issue May 10, 2020 · 3 comments

Comments

@ghost
Copy link

ghost commented May 10, 2020

Gem installation fails on FreeBSD because the Makefile for the Ruby/C glue only looks for /usr/include/sqlite3.h and /usr/lib/libsqlite.so. On FreeBSD, the locations are /usr/local/include/sqlite3.h /usr/local/lib/libsqlite3.so and because sqlite3 is installed through the ports system.

@ghost
Copy link
Author

ghost commented May 10, 2020

gem_make.out.txt

@ghost ghost closed this as completed May 10, 2020
@ghost ghost reopened this May 10, 2020
@eddiec
Copy link

eddiec commented Jun 4, 2022

I install ruby into my home dir but this worked for me:
gem install sqlite3 -- --with-sqlite3-include=/usr/local/include/ --with-sqlite3-lib=/usr/local/lib

@flavorjones
Copy link
Member

flavorjones commented Dec 12, 2023

I would welcome documentation changes, or changes to the extconf.rb file to make the gem install more easily on FreeBSD. I would also welcome someone adding FreeBSD to the CI pipelines, maybe something similar to what Nokogiri does: https://github.com/sparklemotion/nokogiri/blob/main/.github/workflows/ci.yml#L334-L358

Worth noting, the extconf.rb has been completely rewritten since May 2020, and so we should make sure it's still a problem.

@flavorjones flavorjones closed this as not planned Won't fix, can't repro, duplicate, stale Dec 12, 2023
flavorjones added a commit that referenced this issue Dec 13, 2023
flavorjones added a commit that referenced this issue Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants