How can I pack sqlite with my Perl application for Windows?

I need to configure sqllite for Perl in a windows window. However, Perl probably starts over the network from a central server, and I don’t know which modules will be available the first time I run my script.

I can guarantee Perl 5.8+ (activestate) or Perl 5.10+ (strawberry).

Therefore, I need to pack sqlite and its associated Perl modules (modules) in the project directory itself. Looking around, I do not see any direct zipfile for this.

+4
source share
2 answers

DBD :: SQLite is included in Strawberry (any version) and ActivePerl (AFAIK, starting with 5.8.8 build 820). For other modules, you can use PAR :: Packer to package in .exe.

+2
source

The DBD :: SQlite distribution should have everything you need for SQLite. It comes with a Perl interface and all the necessary SQLite materials. You will also need a basic DBI .

However, I recommend that you configure any application that you must install as a Perl distribution with dependencies, etc. Then you simply install your application as a Perl module with the usual Perl tools. You indicate what you need in the tool configuration during installation. This way you are not creating a new system that you have to explain to other Perl programmers, create new tools, or support some weird ways.

You can even configure your own mini-CPAN with only the necessary modules so that you can control it on your network. See, for example, my DPAN stuff .

+2
source

Source: https://habr.com/ru/post/1310442/


All Articles