On Apr 8, 2005, at 12:21 PM, Adam Arrowood wrote:

I just installed the 32-bit SPARC Solaris package (mysql-standard-4.1.11-sun-solaris2.9-sparc.pkg.gz) in made a symbolic link to the install directory as /usr/local/mysql . I am having the following problems:

1) when I start mysql with the included mysql.server script, I get the following error:

   ./mysql.server start
   Starting MySQL
   ./mysql.server: log_success_msg: not found

... there is no such file /lib/lsb/init-functions, so it should get aliased, but don't know why it isn't working.


Ok, so here's the deal... unlike linux, /bin/sh on Solaris does not have a built-in alias function, so in mysql.server line 64,

  alias log_success_msg="echo \ SUCCESS! "

will call /usr/bin/alias, which only works for csh and ksh... so an easy fix for this is to change the mysql.server script from sh to ksh, by changing the first line to:

#!/usr/bin/ksh


2) (much more serious) a core file appears in the mysql root directory. 'file core' gives:

core: ELF 32-bit MSB core file SPARC Version 1, from 'my_print_defaul'

(note the lack of t)... yet the server starts correctly. When I run mysql_print_defaults manually, it's fine.

Correction, on my_print_defaults will core dump if called with --defaults-file= or --defaults-extra-file= , but not when called with --config-file= ...


My quick fix is to edit mysqld_safe, changing line 97 to:

    defaults="-c $MY_BASEDIR_VERSION/data/my.cnf"
    defaults_exec="--defaults-file=$MY_BASEDIR_VERSION/data/my.cnf"

then lines 318-320 to:

$NOHUP_NICENESS $ledir/$MYSQLD $defaults_exec --basedir=$MY_BASEDIR_VERSION --datadir=$DATADIR $USER_OPTION --pid-file=$pid_file >> $err_log 2>&1
else
eval "$NOHUP_NICENESS $ledir/$MYSQLD $defaults_exec --basedir=$MY_BASEDIR_VERSION --datadir=$DATADIR $USER_OPTION --pid-file=$pid_file $args >> $err_log 2>&1"



3) (er, this is since 4.1.10) Given there are no pre or post scripts in the pkg file, can you start putting the version number in the PKG value or at least set the MAXINST to more than on in the pkginfo file? That way when there is a new version, we can install a new version without having to pkgrm the old one (or, like I've done, pkgtrans the new package and make these changes manually) ...

I saw the reply from [EMAIL PROTECTED] about Solaris packaging... I hope the download page will be fixed ?


-adam a

--
Adam Arrowood :: http://www.gatech.edu/adam :: [EMAIL PROTECTED]
Office of Information Technology/O&E/CS     :: (404) 894-0372
Georgia Institute of Technology, Atlanta, GA USA


-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]



Reply via email to