Perl Programming/DBI - Perl database interface.Perl DBI - dbi. perl. There is both community and commercial support available. Please contribute, Time, Patches, Sponsorship or Donations. Perl has several ORMs which use DBI: DBIx: :Class and Rose: :DB: :Object are two of the most commonly used. Installing Perl Modules (perl DBI / DBD: :Oracle) on Solaris, 1. Paul Eggleton's Weblog. If you have ever tried to install perl modules on Solaris, then you’ll have shared my pain. Solaris, rather helpfully, comes with its own installation of perl, straight off the DVD. You get an install of something like 5. Solaris. bash- 3. This is perl, v. 5.
V for more detail). Copyright 1. 98. 7- 2. Larry Wall. Perl may be copied only under the terms of either the Artistic License or the. GNU General Public License, which may be found in the Perl 5 source kit. However, there is a snag. If you use perl in anger you will want to update some of the perl modules. Or even install some new ones that aren’t included by default. I had to climb this particular hill recently when I needed the perl DBI module to access a database, more specifically, the DBD: :Oracle module to access an Oracle database. The most straight forward and popular method for installing perl modules is to use CPAN. Whether you use CPAN or compile by hand, the first, not so small issuette you will hit is that the perl in Solaris is compiled with the Sun Studio compilers. There is a solution for this that means you can use the GNU compiling tools under /usr/sfw, but it does take a little tweaking to get things straight. The solution is to use /usr/perl. MCPAN - e shell. This will fire up a CPAN shell for you to use. Below is an account of the configuration tweaks I had to do to get this CPAN shell to download, compile and install my modules. The first time you run it, you’ll be asked a bewilering array of questions. Do not let it autoconfigure, instead answer . You just don’t know it yet. Fortunately for the most part, the defaults will work, except for the paths / settings below. Install DBD::Oracle on 64-bit Linux and Oracle 11g. DBD Oracle installed now on AIX 5.3 + 11g Client + DBD::Oracle 1.19 + DBI 1.609. I’m not a perl developer, I only try to install the modules. It will also not cover the installation of Perl, Oracle, DBI or DBD::Oracle. If a path to a binary is missing (lynx for example), leave it blank, you won’t need it. Where is your tar program? You are forced to accept one and remove it later (and add an HTTP one) even if you don’t want to use ftp.(1) ftp: //cpan. CPAN. (2) ftp: //ftp. CPAN/. (3) ftp: //ftp. CPAN/. (4) ftp: //ftp. CPAN/. (5) ftp: //ftp. CPAN/. (6) ftp: //ftp. CPAN/. (7) ftp: //ftp. CPAN/. (8) ftp: //mirror. CPAN/. (9) ftp: //mirror. CPAN/. (1. 1) ftp: //mirror. CPAN/. Select as many URLs as you like (by number). This is because CPAN will use your current environment to connect to a database when it runs . You really MUST read the README that is supplied with the module because some elements may not be correct for your build, but here is my experience (I didn’t really use scott/tiger, but you get the idea): Set environment variables, you also need to make sure something sensible is set in your tnsnames. You can also use the TWO. This doesn’t remove the need for a valid tnsnames. LD. You can check this in the perldoc Test: :Builder on your system; look for no. The fix, of course is to install the new version using your CPAN Shell: cpan> install Test: :Builder. Running install for module Test: :Builder. Running make for M/MS/MSCHWERN/Test- Simple- 0.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2016
Categories |