Installing DLXS Version 13 on Solaris 10

From DLXS Documentation

Revision as of 13:26, 13 August 2007 by Cboulay (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Description: Platform: Sun E250 (Test Server) OS: Solaris 10 Release 11/06 and up to dated patch

Using Apps: Solaris 10’s default Perl-5.8.4 or Install Perl-5.8.8. (perl-5.8.8 has to be installed first) Mysql-5.0.41 (source compiled)

.profile file environment:

               DLXSROOT='/l1/dlxs'
  	    DLXSDATAROOT='/l1/dlxs'
               LD_LIBRARY_PATH=/opt/SUNWspro/lib:/usr/local/lib:/usr/local/include:/usr/local/mysql/lib:

/usr/local/mysql/include:/usr/lib:/usr/ccs/lib:/usr/openwin/lib:. MANPATH=/usr/share/man:/usr/perl5/man:/usr/dt/man:/usr/local/man: PATH=/opt/SUNWspro/bin:/usr/local/mysql/bin:/usr/local/bin:/usr/perl5/5.8.4/bin:/usr/ccs/bin: /usr/sbin:/sbin:/usr/bin:. export PATH DLXSROOT DLXSDATAROOT LD_LIBRARY_PATH MANPATH

               Note: In order to use Sun’s compiler, SUNWspro should be listed before /usr/ccs/lib  and /usr/ccs/bin on 
                         LD_LIBRARY and PATH. Otherwise, you will have library linkage problem. 

Required Compiler: 1) SUNWspro (The package is not installed with Solaris 10. It is included on Sun Studio 11 CD or available for download). Perl: (Perl-5.8.4 installed with Solaris 10 or download and install Perl-5.8.8 binary)

                Note: If you are installing Perl-5.8.8, remove Perl-5.8.4 simlink from /usr/bin directory and create a new 
                          simlink in /usr/bin to wherever you install perl. I installed it on /usr/local/bin/perl.

Packages required building CPAN config.pm: (from www.sunfreeware.com). 1) lynx-2.8.5-sol10-sparc-local 2) ncftp-3.1.9-sol10-sparc-local

           3) wget-1.10.2-sol10-sparc-local

4) gnupg-1.4.7-sol10-sparc-local Compile Mysql-5.0.41: 1) Download Mysql-5.0.41 source file 2) shell> groupadd mysql 3) shell> useradd -g mysql mysql 4) shell> gunzip < mysql-VERSION.tar.gz | tar -xvf - 5) shell> cd mysql-VERSION 6) shell> ./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data 7) shell> make 8) shell> make install 9) shell> cp support-files/my-medium.cnf /etc/my.cnf 10) shell> cd /usr/local/mysql 11) shell> chown -R mysql . 12) shell> chgrp -R mysql . 13) shell> bin/mysql_install_db --user=mysql 14) shell> chown -R root . 15) shell> chown -R mysql data 16) shell> bin/mysqld_safe --user=mysql &

Required Perl Modules: (detected by DLSX installation).

1) Apache::Session: (requires SUNWspro package). 2) Mail::Mailer: 3) DBI: a) libiconv-1.11-sol10-sparc-local.gz (required for gcc) b) gcc-3.4.6-sol10-sparc-local.gz (DBI will fail without gcc) c) Install DBI from CPAN site. 4) DBD::mysql: Due to some library conflicts, DBD::mysql will fail on make test with 32 or 64 bit binary Mysql installed. You will find many hits if you do Google search on make test failing on DBD::mysql. The only way I could install DBD::mysql is first compile Mysql source tar file with Perl-5.8.4 installed with Solaris 10 or download and install the latest Perl-5.8.8 binary. I have compiled Mysql source tar file with both Perl’s versions and DBD::mysql installation went fine.

   a) Install DBD::mysql from CPAN site. (Compiled Mysql and DBI must be installed first)
           	
       5) XML::LibXML:
               a) Install libxml2-2.6.26-sol10-sparc-local.gz file (required). Otherwise make test will fail when
                   you try to install XML::LibXML perl module.
   b) Install XML::LibXML perl module from CPAN.
       6) XML::libXLST: (Note: Install XML::LibXML module first)
               a) Install libxslt-1.1.17-sol10-sparc-local.gz file (required). Otherwise make test will fail when 
                   you try to install XML::LibXLST perl module.
               b) Install XML::LibXLST perl module from CPAN site.
        7) Other Perl Modules:
                a)  Text::CSV_XS (from cpan site)
                b)  OpenSP package (SGML/XML parser used by libxml. Prefer installing it before XML::LibXML)

c) Net::hostent (possible installed by one of the module) d) LWP::Simple (Otherwise you will get the following error when you run $DLXSROOT/cgi/i/image/image-idx)

      Can't locate LWP/Simple.pm in @INC (@INC contains: /l1/dlxs/lib /usr/perl5/5.8.4/lib/Sun4-   
      Solaris-64int /usr/perl5/5.8.4/lib /usr/perl5/site_perl5

BEGIN failed--compilation aborted at /l1/dlxs/lib/DlpsUtils.pm line 100. Compilation failed in require at /l1/dlxs/cgi/i/image-idx line67.

     BEGIN failed--compilation aborted at /l1/dlxs/cgi/i/image/image-idx line 67
        Installing DLXS Version 13:

a) Perl Installer.pl (from CD or wherever it is)

       Testing DLXS Version 13:
                Install Sample Collection.
Personal tools