[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

mkmf and sitelibdir



Hi,

Following the guidelines to package a ruby C extension[1], one comes
up with this simple extconf.rb:

  require 'mkmf'
  create_makefile("Test")

But then, when installing it goes to:

  /usr/local/lib/site_ruby/1.9.1/x86_64-linux

This is clearly wrong, since /usr/local is not allowed for packages.
This is because ruby was configured with
--with-sitedir=/usr/local/lib/site_ruby, which is wrong.

So what is a package supposed to do? There's no information at all for
packages using mkmf. Shouldn't the ruby package be fixed?

Cheers.

[1] http://www.ruby-doc.org/docs/ProgrammingRuby/html/ext_ruby.html

-- 
Felipe Contreras


Reply to: