Difference between revisions of "HIP:PMP:DBI"

From Earlham CS Department
Jump to navigation Jump to search
(Install Dependencies)
 
(4 intermediate revisions by the same user not shown)
Line 8: Line 8:
 
== Install Latest TS Perl ==
 
== Install Latest TS Perl ==
 
[[http://www.embeddedarm.com/linux/apps.htm TS-Linux Applications]]
 
[[http://www.embeddedarm.com/linux/apps.htm TS-Linux Applications]]
* untar in root directory
+
* the dev image comes with an old version of their ts-perl
 +
* remove the old perl
 +
find / -name *perl* -print | xargs rm -rf
 +
* untar new perl in root directory
  
 
== Download DBD and Dependencies==
 
== Download DBD and Dependencies==
Line 23: Line 26:
 
* postgresql
 
* postgresql
  
=== Diagram of Dependiencies ===
+
=== Diagram of Dependencies ===
 
                     ------
 
                     ------
 
                     |DBD-Pg|
 
                     |DBD-Pg|
Line 35: Line 38:
 
                 -----------------      ------------
 
                 -----------------      ------------
 
               |Scalar-List-Utils|    |Test-Harness|
 
               |Scalar-List-Utils|    |Test-Harness|
 +
 +
== Install Dependencies ==
 +
 +
* chroot fudged the Makefile's install paths for us, so we used sed to replace the incorrect paths in the generated Makefile
 +
%> perl Makefile.PL
 +
%> sed -e 's/mnt\/disk\/usr\/local/usr\/local/' Makefile > outf
 +
%> mv outf Makefile
 +
%> make
 +
%> make install
 +
 +
run that on all dependencies
 +
we did it in this order:
 +
 +
* Storable
 +
* Scalar-List-Utils
 +
* PathTools
 +
* Test-Harness
 +
* Test-Simple
 +
* postgres
 +
** we configured postgres with these options it complained about
 +
./configure --without-readline --without-zlib
 +
* DBI
 +
* DBD-pg
 +
 +
== Copy /usr/local to the pmp's file system ==
 +
sudo cp -dpr usr/local/ /mnt/pmp2/usr/

Latest revision as of 19:46, 5 August 2006

Download Development Kit Project CD Image

[TS-Linux Main]

  • mount the image (it has a lot of stuff on it)
  • find image-dev-3.02 and mount it
  • make a local copy of it's contents
  • chroot into it

Install Latest TS Perl

[TS-Linux Applications]

  • the dev image comes with an old version of their ts-perl
  • remove the old perl
find / -name *perl* -print | xargs rm -rf
  • untar new perl in root directory

Download DBD and Dependencies

[From CPAN]

  • DBD-Pg
  • DBI
  • Storable
  • PathTools
  • Test-Simple
  • Scalar-List-Utils
  • Test-Harness

[From PostgreSQL]

  • postgresql

Diagram of Dependencies

                    ------
                   |DBD-Pg|
                       |
                      ---        ----------
                     |DBI|  --  |postgresql|
                       |
 --------          ---------          -----------
|Storable|   --   |PathTools|   --   |Test-Simple|
                       |                   |
               -----------------      ------------
              |Scalar-List-Utils|    |Test-Harness|

Install Dependencies

  • chroot fudged the Makefile's install paths for us, so we used sed to replace the incorrect paths in the generated Makefile
%> perl Makefile.PL
%> sed -e 's/mnt\/disk\/usr\/local/usr\/local/' Makefile > outf
%> mv outf Makefile
%> make
%> make install

run that on all dependencies we did it in this order:

  • Storable
  • Scalar-List-Utils
  • PathTools
  • Test-Harness
  • Test-Simple
  • postgres
    • we configured postgres with these options it complained about
./configure --without-readline --without-zlib
  • DBI
  • DBD-pg

Copy /usr/local to the pmp's file system

sudo cp -dpr usr/local/ /mnt/pmp2/usr/