[LON-CAPA-admin] upgrading from RH 6.2 to 7.3 (continuation)

Martin Siegert siegert at sfu.ca
Wed Aug 21 22:29:11 EDT 2002


Hi Guy,

On Wed, Aug 21, 2002 at 10:08:24PM -0400, Guy Albertelli II wrote:
> Hi Martin,
> 
> > I also installed perl-CGI, perl-DB_File, perl-CPAN, perl-NDBM_File, which
> > probably should be added to the list of absolutely necessary RPMS in
> > loncapa/doc/install/redhat7.3/install.pl
> 
> I belive they already come in the  systemperl rpm.

Actually, they are required by the RedHat's perl rpm. This was one of the
recent problems that check-rpms could not resolve the dependencies with the
perl upgrade, because RedHat introduced new dependencies with an upgrade.
I naively had assumed that at least RedHat's upgrade procedure would handle
dependencies correctly. Not correct. Stupid me.

The upgrade upgraded perl (because I had it before) but it did not install
perl-CGI, perl-DB_File, perl-CPAN, perl-NDBM_File (because they did not exist
under 6.2). Sigh. After installing them by hand you can run the following
little experiment:

# rpm -e --test perl-CGI    
error: removing these packages would break dependencies:
	perl-CGI is needed by perl-5.6.1-26.72.3
# rpm -e --test perl-DB_File
error: removing these packages would break dependencies:
	perl-DB_File is needed by perl-5.6.1-26.72.3
# rpm -e --test perl-CPAN   
error: removing these packages would break dependencies:
	perl-CPAN is needed by perl-5.6.1-26.72.3
# rpm -e --test perl-NDBM_File
error: removing these packages would break dependencies:
	perl-NDBM_File is needed by perl-5.6.1-26.72.3

> > [Wed Aug 21 17:15:21 2002] [warn] module mod_perl.c is already added, skipping
> > [Wed Aug 21 17:15:22 2002] [error] Can't locate tth.pm in @INC
> 
> 
> Do a lon-capa 'make build; make install', it will notice that you are a 7.3 machine and
> will place all modules in the proper directories, anfter properly
> compiling them for perl 5.6

I'll do that tomorrow. For now I append my story about unsuccessful
attempts to get mysql going...

1) I did copy capa.pm and capa.so over:

cp /usr/lib/perl5/site_perl/5.005/capa.pm /usr/lib/perl5/site_perl/5.6.1
cp /usr/lib/perl5/site_perl/5.005/capa.so /usr/lib/perl5/site_perl/5.6.1

... and this does have the effect that httpd now starts (Yes!).

2) I also noticed that when you install mysql-server that it creates
/etc/rc3.d/K12mysqld, thus mysqld is not started at boot time.
I moved it, i.e.,

mv /etc/rc3.d/K12mysqld /etc/rc3.d/S12mysqld

however with limited success: from /var/log/mysqld.log:

=========================================================================
020821 18:04:49  mysqld started
Cannot initialize InnoDB as 'innodb_data_file_path' is not set.
If you do not want to use transactional InnoDB tables, add a line
skip-innodb
to the [mysqld] section of init parameters in your my.cnf
or my.ini. If you want to use InnoDB tables, add for example,
innodb_data_file_path = ibdata1:30M
But to get good performance you should adjust for your hardware
the InnoDB startup options listed in section 2 at
http://www.innodb.com/ibman.html
/usr/libexec/mysqld: ready for connections
020821 18:05:17  mysqld started
020821 18:05:18  Can't start server: Bind on TCP/IP port: Address already in use020821 18:05:18  Do you already have another mysqld server running on port: 3306 ?
020821 18:05:18  Aborting

020821 18:05:18  mysqld ended
=========================================================================

Strangely enough, I do have a mysgld daemon running:

# ps -efww | grep mysql
root       516     1  0 18:04 ?        00:00:00 /bin/sh /usr/bin/safe_mysqld --defaults-file=/etc/my.cnf
mysql      559   516  0 18:04 ?        00:00:00 /usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking
mysql      586   559  0 18:04 ?        00:00:00 /usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking
mysql      587   586  0 18:04 ?        00:00:00 /usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking
mysql      588   586  0 18:04 ?        00:00:00 /usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking



More information about the LON-CAPA-admin mailing list