user3243135
user3243135

Reputation: 820

how do I import a CPAN module using XS into my project?

My company has policies against using Perl modules which are not in Debian/Ubuntu's repositories. To "import" a non-xs module into my project/repo, it's usually just a matter of copying over the .pm files and putting them in the appropriate directory in lib/. Then I can use as if I'd cpan installed it.

But what do I do for an XS module? How do I "pre-compile" and to where should I copy over the .so and other XS related files? If you look, for example, at Ubuntu's DBD-SQLite package contents here, it seems like it should definitely be possible.

Upvotes: 1

Views: 79

Answers (1)

bolav
bolav

Reputation: 6998

You should look into dh-make-perl for making .deb packages of your perl modules. That way you can install them like a regular shipped module.

You should also read Building Debian packages of Perl modules

Upvotes: 1

Related Questions