Chinaunix

标题: 编译出错,查不到相关文档。 [打印本页]

作者: limits    时间: 2006-06-23 09:44
标题: 编译出错,查不到相关文档。
我在编译4.1.20时,老是不成功。
运行./configure --prefix=/usr/local/mysql --with-charset=gbk后,会有下面的提示:
NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!

To help you a bit, I am now going to create the needed MySQL databases
and start the MySQL server for you.  If you run into any trouble, please
consult the MySQL manual, that you can find in the Docs directory.

Installing all prepared tables
Fill help tables

To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h localhost.localdomain password 'new-password'
See the manual for more instructions.

NOTE:  If you are upgrading from a MySQL <= 3.22.10 you should run
the ./bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!

You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests

Please report any problems with the ./bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
Starting the mysqld server.  You can test that it is up and running
with the command:
./bin/mysqladmin version
[root@localhost mysql-4.1.20]# Starting mysqld daemon with databases from /root/software/mysql-4.1.20/data
STOPPING server from pid file /root/software/mysql-4.1.20/data/localhost.localdomain.pid
060623 09:41:55  mysqld ended

查了messages,内容为:
Jun 23 09:10:33 localhost xinetd[1628]: xinetd Version 2.3.10 started with libwrap options compiled in.
Jun 23 09:10:33 localhost xinetd[1628]: Started working: 1 available service
Jun 23 09:10:34 localhost xinetd: xinetd startup succeeded
Jun 23 09:10:35 localhost sendmail: sendmail startup succeeded
Jun 23 09:10:36 localhost sendmail: sm-client startup succeeded
Jun 23 09:10:36 localhost gpm: gpm startup succeeded
Jun 23 09:10:37 localhost crond: crond startup succeeded
Jun 23 09:10:37 localhost anacron: anacron startup succeeded
Jun 23 09:10:37 localhost atd: atd startup succeeded
Jun 23 09:11:06 localhost sshd(pam_unix)[1708]: session opened for user root by (uid=0)
Jun 23 09:11:08 localhost sshd(pam_unix)[1708]: session closed for user root
Jun 23 09:11:19 localhost sshd(pam_unix)[1748]: session opened for user root by (uid=0)
Jun 23 09:23:03 localhost rz[1789]: [root] mysql-standard-4.1.20-pc-linux-gnu-i686-icc-glibc23.tar.gz/ZMODEM: 30877550 Bytes, 842851 BPS
Jun 23 09:36:05 localhost rz[2035]: [root] mysql-3.23.54a-11.i386.rpm/ZMODEM: 5247012 Bytes, 917568 BPS
Jun 23 09:36:06 localhost rz[2035]: [root] mysql-devel-3.23.54a-11.i386.rpm/ZMODEM: 580038 Bytes, 507038 BPS
Jun 23 09:36:06 localhost rz[2035]: [root] MySQL-python-0.9.1-6.i386.rpm/ZMODEM: 92549 Bytes, 803509 BPS
Jun 23 09:36:07 localhost rz[2035]: [root] mysql-server-3.23.54a-11.i386.rpm/ZMODEM: 1119094 Bytes, 898678 BPS

搞不懂是啥回事。。。请帮忙解决一下。谢谢。
作者: archangle    时间: 2006-06-23 09:45

  1. NOTE: This is a MySQL binary distribution. It's ready to run, you don't
  2. need to configure it!
复制代码


作者: limits    时间: 2006-06-23 10:00
遇到这个问题要怎样解决呢?
作者: rardge    时间: 2006-06-23 10:09
呵呵,你楼上已经指出了错误提示的关键点,你下载的是不需要编译的二进制包,是官方已经编译好直接可用的。你只要配合做些相关的配置即可,里面有一个 INSTALL 文件,有详细步骤,照做即可。
作者: limits    时间: 2006-06-23 10:12
谢谢你。原来还有这么一回事儿。。。呵呵。。。原来二进制的不需要再次编译。。。不过。。。也难倒了。。之前我只会用rpm来安装的。
作者: limits    时间: 2006-06-23 10:34
对了,能不能问一下,RPM包能不能与编译包一起装呢?比如说:我的mysql用RPM包,httpd用编译的。这样可以吗?会不会产生什么问题呢?
作者: rardge    时间: 2006-06-23 10:54
不会有问题。
作者: limits    时间: 2006-06-23 11:22
谢谢你们。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2