Skip to content

cannot load such file -- google/protobuf_c #1354

Answered by mattxwang
PierreMesure asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for submitting a discussion @PierreMesure! It turns out that this issue is orthogonal to Just the Docs specifically. I took a quick look, and the issue seems to be that your Gemfile.lock is missing the linux platform, which is what GitHub Actions runners use; so, any platform-dependent Ruby code (like C extensions - which is protobuf) won't be runnable.

You can resolve this problem by running:

$ bundle lock --add-platform x86_64-linux

and then committing the change produced in your Gemfile.lock. Let me know if this doesn't resolve the problem!


If you're curious, the bundler docs explains slightly more what's going on.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@PierreMesure
Comment options

Answer selected by PierreMesure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants