Skip to content

Commit 27f7a13

Browse files
committed
native libs FAQ entry (that I bumped into on a new dev system)
1 parent 864347d commit 27f7a13

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,18 @@ after do
513513
end
514514
```
515515

516+
### `bundle install` says `Gem::Ext::BuildError: ERROR: Failed to build gem native extension`
517+
518+
When building from source, the `mysql2`, `pg`, and `sqlite` gems need their native client libraries
519+
installed on your system. Note that this error isn't specific to ClosureTree.
520+
521+
On Ubuntu/Debian systems, run:
522+
523+
```
524+
sudo apt-get install libpq-dev libsqlite3-dev libmysqlclient-dev
525+
bundle install
526+
```
527+
516528
## Testing with Closure Tree
517529

518530
Closure tree comes with some RSpec2/3 matchers which you may use for your tests:

0 commit comments

Comments
 (0)