CentOS下安装mysql,make时出现make[1]:*** [link_sources] Error 1 make:*** [all-recursive] Error 1操作如下:[root@CentOS CentOS_6.4]# /usr/sbin/groupadd mysql[root@CentOS CentOS_6.4]# /usr/sbin/useradd -g mysql mysql[root@CentOS mysql-5.1.58]

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/28 18:46:32
CentOS下安装mysql,make时出现make[1]:*** [link_sources] Error 1 make:*** [all-recursive] Error 1操作如下:[root@CentOS CentOS_6.4]# /usr/sbin/groupadd mysql[root@CentOS CentOS_6.4]# /usr/sbin/useradd -g mysql mysql[root@CentOS mysql-5.1.58]
xTAoG+Sq@J2*R "ˬw*.InN!رKJ%TbM7?39/,6 ^zg{L93b˽q3XAlH7S%uLJ~?l5 k.KmhfUBl(NIiJkQLbTH0 ŎtYN˗drDot#>vͶF#ICpXpIb ӊj9nQ .Q%]: ޠ֏Ivt#G<2,tԒd5gd"dsK$PtnTRfVVA Xsmn+%U

CentOS下安装mysql,make时出现make[1]:*** [link_sources] Error 1 make:*** [all-recursive] Error 1操作如下:[root@CentOS CentOS_6.4]# /usr/sbin/groupadd mysql[root@CentOS CentOS_6.4]# /usr/sbin/useradd -g mysql mysql[root@CentOS mysql-5.1.58]
CentOS下安装mysql,make时出现make[1]:*** [link_sources] Error 1 make:*** [all-recursive] Error 1
操作如下:
[root@CentOS CentOS_6.4]# /usr/sbin/groupadd mysql
[root@CentOS CentOS_6.4]# /usr/sbin/useradd -g mysql mysql
[root@CentOS mysql-5.1.58]# ./configure --prefix=/usr/local/mysql --localstatedir=/data/mysql_db --with-extra-charsets=all
[root@CentOS mysql-5.1.58]# make
.
/usr/bin/diff -w include/mysql.h.pp ./abi_check.out
+ /bin/rm ./abi_check.out
make[2]:Leaving directory `/mnt/hgfs/CentOS_6.4/mysql-5.1.58'
make[1]:Leaving directory `/mnt/hgfs/CentOS_6.4/mysql-5.1.58'
Making all in include
make[1]:Entering directory `/mnt/hgfs/CentOS_6.4/mysql-5.1.58/include'
/bin/cp config.h my_config.h
/bin/rm -f readline openssl
/bin/ln -s ../cmd-line-utils/libedit/readline readline
/bin/ln:creating symbolic link `readline':Operation not supported
make[1]:*** [link_sources] Error 1
make[1]:Leaving directory `/mnt/hgfs/CentOS_6.4/mysql-5.1.58/include'
make:*** [all-recursive] Error 1

CentOS下安装mysql,make时出现make[1]:*** [link_sources] Error 1 make:*** [all-recursive] Error 1操作如下:[root@CentOS CentOS_6.4]# /usr/sbin/groupadd mysql[root@CentOS CentOS_6.4]# /usr/sbin/useradd -g mysql mysql[root@CentOS mysql-5.1.58]
出现这种情况是由于在编译的时候,要用ln去建立一些软链接,而这些文件是虚拟机在Windows与Linux中共享的文件夹下,虽然ln命令在Linux系统中很常见,但Windows不支持,所以,编译会报错.
解决办法:
1.最简单的办法就是把mysql源文件移到共享文件夹以外的其它文件夹下!
2.在VMWare下的Linux中,建立Samba服务,之后新创建新samba用户和文件夹,在windows中就可以访问到该文件夹了.然后把在Linux中,从共享目录拷贝到你所要共享的samba目录中,这样,也可以实现我们所要的文件共享