Installing DLXS Version 13 on Solaris 10

From DLXS Documentation

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
-
Description:
+
User Contributed: submitted by Negib Sherif of Wayne State University
 +
 
 +
<b>Description:</b>
Platform: Sun E250 (Test Server)
Platform: Sun E250 (Test Server)
OS: Solaris 10 Release 11/06 and up to dated patch
OS: Solaris 10 Release 11/06 and up to dated patch
-
Using Apps:
+
<b>Using Apps:</b>
Solaris 10’s default Perl-5.8.4 or Install Perl-5.8.8. (perl-5.8.8 has to be installed first)
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)
Mysql-5.0.41 (source compiled)
-
.profile file environment:
+
<b>.profile file environment:</b>
-
                DLXSROOT='/l1/dlxs'
+
    DLXSROOT='/l1/dlxs'
-
      DLXSDATAROOT='/l1/dlxs'
+
    DLXSDATAROOT='/l1/dlxs'
-
                LD_LIBRARY_PATH=/opt/SUNWspro/lib:/usr/local/lib:/usr/local/include:/usr/local/mysql/lib:
+
    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:.
                /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:
+
    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:
+
    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:.  
                /usr/sbin:/sbin:/usr/bin:.  
-
    export PATH DLXSROOT DLXSDATAROOT LD_LIBRARY_PATH MANPATH
+
    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.  
+
<b>Note:</b> 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).
+
<b>Required Compiler:</b>
 +
<b> # SUNWspro </b>(The package is not installed with Solaris 10. It is included on Sun Studio 11 CD or available for download).
-
1) Apache::Session: (requires SUNWspro package). 
+
<b>Perl: (Perl-5.8.4 installed with Solaris 10 or download and install Perl-5.8.8 binary)</b>
-
2) Mail::Mailer:
+
<b>Note:</B. 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.
-
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)
+
<b>Packages required building CPAN config.pm:</b> (from www.sunfreeware.com).
-
           
+
# lynx-2.8.5-sol10-sparc-local
-
        5) XML::LibXML:
+
# ncftp-3.1.9-sol10-sparc-local
-
                a) Install libxml2-2.6.26-sol10-sparc-local.gz file (required). Otherwise make test will fail when
+
# wget-1.10.2-sol10-sparc-local
-
                    you try to install XML::LibXML perl module.
+
# gnupg-1.4.7-sol10-sparc-local
-
    b) Install XML::LibXML perl module from CPAN.
+
 
-
        6) XML::libXLST: (Note: Install XML::LibXML module first)
+
<b>Compile Mysql-5.0.41:</b>
-
                a) Install libxslt-1.1.17-sol10-sparc-local.gz file (required). Otherwise make test will fail when  
+
# Download Mysql-5.0.41 source file
-
                    you try to install XML::LibXLST perl module.
+
# shell> groupadd mysql
-
                b) Install XML::LibXLST perl module from CPAN site.
+
# shell> useradd -g mysql mysql
-
        7) Other Perl Modules:
+
# shell> gunzip < mysql-VERSION.tar.gz | tar -xvf -
-
                a)  Text::CSV_XS (from cpan site)
+
# shell> cd mysql-VERSION
-
                b)  OpenSP package (SGML/XML parser used by libxml. Prefer installing it before XML::LibXML)
+
# shell> ./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data
-
c) Net::hostent (possible installed  by one of the module)
+
# shell> make
-
d) LWP::Simple (Otherwise you will get the following error when you run $DLXSROOT/cgi/i/image/image-idx)
+
# shell> make install
-
      Can't locate LWP/Simple.pm in @INC (@INC contains: /l1/dlxs/lib /usr/perl5/5.8.4/lib/Sun4-   
+
# shell> cp support-files/my-medium.cnf /etc/my.cnf
-
      Solaris-64int /usr/perl5/5.8.4/lib /usr/perl5/site_perl5
+
# shell> cd /usr/local/mysql
-
          BEGIN failed--compilation aborted at /l1/dlxs/lib/DlpsUtils.pm line 100.
+
# shell> chown -R mysql .
-
          Compilation failed in require at /l1/dlxs/cgi/i/image-idx line67.  
+
# shell> chgrp -R mysql .
-
      BEGIN failed--compilation aborted at /l1/dlxs/cgi/i/image/image-idx line 67
+
# shell> bin/mysql_install_db --user=mysql
-
        Installing DLXS Version 13:
+
# shell> chown -R root .
-
    a) Perl Installer.pl (from CD or wherever it is)
+
# shell> chown -R mysql data
 +
# shell> bin/mysqld_safe --user=mysql &
 +
 
 +
<b>Required Perl Modules:</b> (detected by DLSX installation).
 +
 
 +
# Apache::Session: (requires SUNWspro package). 
 +
# Mail::Mailer:
 +
# DBI:
 +
## libiconv-1.11-sol10-sparc-local.gz (required for gcc)
 +
## gcc-3.4.6-sol10-sparc-local.gz (DBI will fail without gcc)
 +
## Install DBI  from CPAN site.
 +
# DBD::mysql:
 +
Due to some library conflicts, DBD::mysql will fail on <b>make test</b> 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.
 +
## Install DBD::mysql from CPAN site. (Compiled Mysql and DBI must be installed first)
 +
# XML::LibXML:
 +
## 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.
 +
## Install XML::LibXML perl module from CPAN.
 +
# 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.
 +
## Install XML::LibXLST perl module from CPAN site.
 +
# 7) Other Perl Modules:
 +
## Text::CSV_XS (from cpan site)
 +
## OpenSP package (SGML/XML parser used by libxml. Prefer installing it before XML::LibXML)
 +
## Net::hostent (possible installed  by one of the module)
 +
## 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
 +
   
 +
<b>Installing DLXS Version 13:</b>
 +
Perl Installer.pl (from CD or wherever it is)
-
        Testing DLXS Version 13:
+
<b>Testing DLXS Version 13:</b>
-
                Install Sample Collection.
+
Install Sample Collection.

Revision as of 10:40, 13 August 2007

User Contributed: submitted by Negib Sherif of Wayne State University

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: # 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:</B. 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.

<b>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:
    1. libiconv-1.11-sol10-sparc-local.gz (required for gcc)
    2. gcc-3.4.6-sol10-sparc-local.gz (DBI will fail without gcc)
    3. 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.

    1. Install DBD::mysql from CPAN site. (Compiled Mysql and DBI must be installed first)
  1. XML::LibXML:
    1. 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.

    1. Install XML::LibXML perl module from CPAN.
  1. XML::libXLST: (Note: Install XML::LibXML module first)
    1. 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.

    1. Install XML::LibXLST perl module from CPAN site.
  1. 7) Other Perl Modules:
    1. Text::CSV_XS (from cpan site)
    2. OpenSP package (SGML/XML parser used by libxml. Prefer installing it before XML::LibXML)
    3. Net::hostent (possible installed by one of the module)
    4. 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: Perl Installer.pl (from CD or wherever it is)

Testing DLXS Version 13: Install Sample Collection.

Personal tools