关于安装mysql的问题~~~~~~
应该是你MYSQL用户的权限不够,errno:13见如下:#define EACCES13 /* Permission denied */
关于安装mysql的问题~~~~~~
我是按照精华贴里创建用户的,#useradd -d /usr/local/mysql/var -s /bin/false mysql
不过我还是觉得错误在libncurses.so.5的路径上,不然不会在safe_mysqld时出错吧?
关于安装mysql的问题~~~~~~
编译一些免费软件尽量用gnu的gcc和make我最近在solaris 9上编译uscpi的时候打完补丁还出问题,结果换一个gnu的make就一路顺畅的编译完了
你可以试试
还有你mysql的启动错误应该是编译的时候没有指定启动mysql的用户
你用root用户起一下试试
关于安装mysql的问题~~~~~~
原帖由 "jogs" 发表:编译一些免费软件尽量用gnu的gcc和make
我最近在solaris 9上编译uscpi的时候打完补丁还出问题,结果换一个gnu的make就一路顺畅的编译完了
你可以试试
还有你mysql的启动错误应该是编译的时候没有指定启动mysql的?.........
我一直在用root的,没有指定mysql用户?那就是说我用重新编译了?还有你说的gnu的make,我也听说make很爱出错所以用了make-3.80-sol8-sparc-local.gz,如果用gnu的make.tar.gz,那在#./configure 时要不要加什么参数?
关于安装mysql的问题~~~~~~
这个问题简单啊,vi /.proifle,增加如下:
LD_LIBRARY_PATH=/usr/lib:/usr/local/lib
export LD_LIBRARY_PATH
另外一种方法:用crle看一下系统默认的连接库,正常应该是/usr/lib
然后你用命令crle -u -l /usr/local/lib增加进新的路径。
关于安装mysql的问题~~~~~~
另外你看看mysql的源代码安装文档: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
shell>; make
shell>; make install
shell>; scripts/mysql_install_db
shell>; chown -R root/usr/local/mysql
shell>; chown -R mysql /usr/local/mysql/var
shell>; chgrp -R mysql /usr/local/mysql
shell>; cp support-files/my-medium.cnf /etc/my.cnf
shell>; /usr/local/mysql/bin/safe_mysqld --user=mysql &
这个步骤绝对正确。
关于安装mysql的问题~~~~~~
你那个make应该也可以用对
按照firebird的步骤应该不会有问题
特别是那几步该权限的一定要做
关于安装mysql的问题~~~~~~
好,我这就去重编译! :D关于安装mysql的问题~~~~~~
原帖由 "firebird" 发表:另外你看看mysql的源代码安装文档:
shell>; groupadd mysql
shell>; useradd -g mysql mysql
shell>; gunzip < mysql-VERSION.tar.gz | tar -xvf -
shell>; cd mysql-VERSION
shell>; ./configur..........
我的系统是solaris8 sparc,按照你的步骤做到了。但到了make的时候就开始报错了,提示:
ld.so.1: ./gen_lex_hash: fatal: libstdc++.so.5: open failed: No such file or dir
ectory
make: *** Error 137
make: Leaving directory `/export/spare/temp/mysql-3.23.55/sql'
make: *** Error 1
make: Leaving directory `/export/spare/temp/mysql-3.23.55/sql'
make: *** Error 2
make: Leaving directory `/export/spare/temp/mysql-3.23.55/sql'
make: *** Error 1
make: Leaving directory `/export/spare/temp/mysql-3.23.55'
make: *** Error 2
#
以前我看到你说,分别用gunzip,tar和放在一起用不一样,我也试了分别用gunzip和tar,结果错误提示一样。后来我在./configure这部的时候加了很多参数:
#CC=gcc CFLAGS="-O6" CXX=gcc CXXFLAGS="-O6 -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local/mysql --with-mysqld-user=mysql --with-charset=gbk --with-extra-charsets=all
这样在make的时候就没出问题。不过我还是觉得提示奇怪,在make时最后几行的提示是:
binary-configure.sh >; binary-configure-t
/usr/bin/mv binary-configure-t binary-configure
make: Leaving directory `/export/spare/temp/mysql-3.23.55/support-files'
Making all in os2
make: Entering directory `/export/spare/temp/mysql-3.23.55/os2'
Making all in include
make: Entering directory `/export/spare/temp/mysql-3.23.55/os2/include'
Making all in sys
make: Entering directory `/export/spare/temp/mysql-3.23.55/os2/include/sys'
make: Nothing to be done for `all'.
make: Leaving directory `/export/spare/temp/mysql-3.23.55/os2/include/sys'
make: Entering directory `/export/spare/temp/mysql-3.23.55/os2/include'
make: Nothing to be done for `all-am'.
make: Leaving directory `/export/spare/temp/mysql-3.23.55/os2/include'
make: Leaving directory `/export/spare/temp/mysql-3.23.55/os2/include'
make: Entering directory `/export/spare/temp/mysql-3.23.55/os2'
make: Nothing to be done for `all-am'.
make: Leaving directory `/export/spare/temp/mysql-3.23.55/os2'
make: Leaving directory `/export/spare/temp/mysql-3.23.55/os2'
make: Leaving directory `/export/spare/temp/mysql-3.23.55'
#
这是成功安装了吗?
关于安装mysql的问题~~~~~~
成功与否,你连一下数据库看看。还有,你不要用SUN自带的tar,用GNU的tar,如下:
tar xzvf mysql-VERSION.tar.gz,然后按照前面的方法,把/usr/local/lib的库路径加如系统,还有干脆把autoconf,automake都安装好吧,是不是必需我也清楚,但是我就是按照这个方法编译的,从没失败过啊。