Installing DLXS Version 13 on Solaris 10

From DLXS Documentation

(Difference between revisions)
Jump to: navigation, search
Current revision (11:42, 7 September 2007) (edit) (undo)
 
(5 intermediate revisions not shown.)
Line 1: Line 1:
-
Description:
+
[[DLXS Wiki|Main Page]] > [[DLXS on Solaris Tips]] > Installing DLXS Version 13 on Solaris 10
 +
<hr>
 +
 
 +
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).
+
<b>Required Compiler:</b>
-
Perl: (Perl-5.8.4 installed with Solaris 10 or download and install Perl-5.8.8 binary)
+
<b> # SUNWspro </b>(The package is not installed with Solaris 10. It is included on Sun Studio 11 CD or available for download).
-
                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.
+
<b>Perl: (Perl-5.8.4 installed with Solaris 10 or download and install Perl-5.8.8 binary)</b>
-
Packages required building CPAN config.pm: (from www.sunfreeware.com).  
+
<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.
-
1) lynx-2.8.5-sol10-sparc-local
+
 
-
2) ncftp-3.1.9-sol10-sparc-local
+
<b>Packages required building CPAN config.pm:</b> (from www.sunfreeware.com).  
-
            3) wget-1.10.2-sol10-sparc-local
+
# lynx-2.8.5-sol10-sparc-local
-
4) gnupg-1.4.7-sol10-sparc-local
+
# ncftp-3.1.9-sol10-sparc-local
-
Compile Mysql-5.0.41:
+
# wget-1.10.2-sol10-sparc-local
-
1) Download Mysql-5.0.41 source file  
+
# gnupg-1.4.7-sol10-sparc-local
-
2) shell> groupadd mysql
+
 
-
3) shell> useradd -g mysql mysql
+
<b>Compile Mysql-5.0.41:</b>
-
4) shell> gunzip < mysql-VERSION.tar.gz | tar -xvf -
+
# Download Mysql-5.0.41 source file  
-
5) shell> cd mysql-VERSION
+
# shell> groupadd mysql
-
6) shell> ./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data
+
# shell> useradd -g mysql mysql
-
7) shell> make
+
# shell> gunzip < mysql-VERSION.tar.gz | tar -xvf -
-
8) shell> make install
+
# shell> cd mysql-VERSION
-
9) shell> cp support-files/my-medium.cnf /etc/my.cnf
+
# shell> ./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data
-
10) shell> cd /usr/local/mysql
+
# shell> make
-
11) shell> chown -R mysql .
+
# shell> make install
-
12) shell> chgrp -R mysql .
+
# shell> cp support-files/my-medium.cnf /etc/my.cnf
-
13) shell> bin/mysql_install_db --user=mysql
+
# shell> cd /usr/local/mysql
-
14) shell> chown -R root .
+
# shell> chown -R mysql .
-
15) shell> chown -R mysql data
+
# shell> chgrp -R mysql .
-
16) shell> bin/mysqld_safe --user=mysql &
+
# shell> bin/mysql_install_db --user=mysql
 +
# shell> chown -R root .
 +
# shell> chown -R mysql data
 +
# shell> bin/mysqld_safe --user=mysql &
 +
 
 +
<b>Required Perl Modules:</b> (detected by DLXS installation).
-
  Required Perl Modules: (detected by DLSX installation).
+
# <b>Apache::Session:</b> (requires SUNWspro package). 
 +
# <b>Mail::Mailer:</b>
 +
# <b>DBI:</b>
 +
## 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.
 +
# <b>DBD::mysql:</b> 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)
 +
# <b>XML::LibXML:</b>
 +
## Install libxml2-2.6.26-sol10-sparc-local.gz file (required). Otherwise make test will fail when you try to install XML::LibXLST perl module.
 +
## Install XML::LibXML perl module from CPAN.
 +
# <b>XML::libXLST: (Note: Install XML::LibXML module first)</b>
 +
## 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.
 +
# <b>Other Perl Modules:</b>
 +
## 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):
 +
<blockquote><tt>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</tt></blockquote>
 +
   
 +
<b>Installing DLXS Version 13:</b>
 +
Perl Installer.pl (from CD or wherever it is)
-
1) Apache::Session: (requires SUNWspro package). 
+
<b>Testing DLXS Version 13:</b>
-
2) Mail::Mailer:
+
Install Sample Collection.
-
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:
+
[[#top|Top]]
-
                Install Sample Collection.
+

Current revision

Main Page > DLXS on Solaris Tips > Installing DLXS Version 13 on Solaris 10


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: 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 DLXS 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)
  5. 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::LibXLST perl module.
    2. Install XML::LibXML perl module from CPAN.
  6. XML::libXLST: (Note: Install XML::LibXML module first)
    1. 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.
    2. Install XML::LibXLST perl module from CPAN site.
  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.


Top

Personal tools