Installing DLXS Version 13 on Solaris 10
From DLXS Documentation
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).
- 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::LibXLST perl module.
- Install XML::LibXML perl module from CPAN.
- XML::libXLST: (Note: Install XML::LibXML module first)
- 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.
- 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.