in reply to Re: Installing DBI module
in thread Installing DBI module
Just some extra info on what that sequence of commands does: perl uses a utility called make to build and install the modules. For this it depends on a list of instructions in a file called "Makefile", in the current directory. On the plus side, make checks out dependencies: if a file "b" depends on a file "a", and the modification date of "a" is more recent than that of "b", then make will rebuild "b". On the minus side, make has a user-unfriendly syntax, for example, it makes a huge distinction between tabs and spaces, while both are invisible characters.
So Perl uses a somewhat more user-friendly, and more platform independent, way, and a script "Makefile.PL", which comes with the module, is used to construct the "Makefile". That's what "perl Makefile.PL" does.
Next, "make" builds the files. That may involve building loadable libraries using a C compiler. After this step, the final files all do exist.
The next step, "make test", manipulates @INC so the test scripts, which reside in the "t" subdirectory, and which all carry the file extension ".t", can be run. These test scripts test all sorts of things that are essential for minimal working of the module, and stuff that is known to have gotten broken in the past.
And finally, if all went well thus far, "make install" will copy the built files in their appropriate final place of the modules file tree.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Installing DBI module
by FireBird34 (Pilgrim) on Jan 20, 2003 at 21:35 UTC |