[LRUG] Ruby C extensions installing in the wrong place

James Coglan jcoglan at gmail.com
Sun Dec 22 06:33:28 PST 2013


Hi everyone,

I maintain the websocket-driver gem (
https://github.com/faye/websocket-driver-ruby), which includes a small
portion of native code done in C and Java. I use rake-compiler to build the
extension during development, and rely on rubygems/bundler doing the right
thing for users.

If you clone the repo and run:

$ bundle install
$ bundle exec rake compile

then you should see a file called lib/websocket_mask.{bundle,jar,so}
appear, depending on your OS and Ruby version. The same should happen when
you install the library from rubygems.org.

But one user of the library (using MRI 2.0) is reporting that when they
install the gem with bundler, the extension is built in the 'ext' directory
rather than in 'lib'.

Anyone know why this might be, and know how to fix it?

-- 
James Coglan
http://jcoglan.com
+44 (0) 7771512510
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20131222/a4114321/attachment-0003.html>


More information about the Chat mailing list