- 论坛徽章:
- 0
|
采用源码安装
# ./configure --prefix=/user/local/mysql \
--enable-assembler \
--with-mysqld-ldflags=-all-static \
--with-unix-socket-ath=/tmp/mysql.sock \
--with-charset=complex \
--localstatedir=/usr/local/mysql/data \
--with-low-memory
# make
出现如下报错:
make: *** 没有指明目标并且找不到 makefile。 停止。
使用gcc -v 查看:
[root@localhost mysql-5.0.27]# gcc -v
使用内建 specs。
目标:i386-redhat-linux
配置为:../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,java,f95,ada --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --host=i386-redhat-linux
线程模型:posix
gcc 版本 4.0.0 20050519 (Red Hat 4.0.0-
------------------------------------------------
这是第四遍安装了,前面几次,configure都正常,make,make install 也都还正常。
但是,在/usr/local下,mysql的安装目录不是预期设置的mysql,而是:
mysql --enable-assembler--with-mysqld-ldflags=-all-static
开始我以为是在configure的时候,各参数设置时没有加空格。
所以又重装了两次,特别注意加好空格的。但是安装后还是这样,启动当然也不正常。
再接再厉第四次安装时,就开始报: make: *** 没有指明目标并且找不到 makefile。 停止。
请大安帮忙看看,谢谢。 |
|