Installing DLXS Version 13 on Solaris 10
From DLXS Documentation
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' | |
- | + | 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:. | /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:. | /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 | + | |
- | + | <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. | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | <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). | ||
- | + | <b>Perl: (Perl-5.8.4 installed with Solaris 10 or download and install Perl-5.8.8 binary)</b> | |
- | + | <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. | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | <b>Packages required building CPAN config.pm:</b> (from www.sunfreeware.com). | |
- | + | # lynx-2.8.5-sol10-sparc-local | |
- | + | # ncftp-3.1.9-sol10-sparc-local | |
- | + | # wget-1.10.2-sol10-sparc-local | |
- | + | # gnupg-1.4.7-sol10-sparc-local | |
- | + | ||
- | + | <b>Compile Mysql-5.0.41:</b> | |
- | + | # Download Mysql-5.0.41 source file | |
- | + | # shell> groupadd mysql | |
- | + | # shell> useradd -g mysql mysql | |
- | + | # shell> gunzip < mysql-VERSION.tar.gz | tar -xvf - | |
- | + | # shell> cd mysql-VERSION | |
- | + | # shell> ./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data | |
- | + | # shell> make | |
- | + | # shell> make install | |
- | + | # shell> cp support-files/my-medium.cnf /etc/my.cnf | |
- | + | # shell> cd /usr/local/mysql | |
- | + | # shell> chown -R mysql . | |
- | + | # shell> chgrp -R 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 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) | ||
- | + | <b>Testing DLXS Version 13:</b> | |
- | + | 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).
- lynx-2.8.5-sol10-sparc-local
- ncftp-3.1.9-sol10-sparc-local
- wget-1.10.2-sol10-sparc-local
- gnupg-1.4.7-sol10-sparc-local
Compile Mysql-5.0.41:
- Download Mysql-5.0.41 source file
- shell> groupadd mysql
- shell> useradd -g mysql mysql
- shell> gunzip < mysql-VERSION.tar.gz | tar -xvf -
- shell> cd mysql-VERSION
- shell> ./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data
- shell> make
- shell> make install
- shell> cp support-files/my-medium.cnf /etc/my.cnf
- shell> cd /usr/local/mysql
- shell> chown -R mysql .
- shell> chgrp -R mysql .
- shell> bin/mysql_install_db --user=mysql
- shell> chown -R root .
- shell> chown -R mysql data
- shell> bin/mysqld_safe --user=mysql &
Required Perl Modules: (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 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.
- 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
Installing DLXS Version 13: Perl Installer.pl (from CD or wherever it is)
Testing DLXS Version 13: Install Sample Collection.