免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 9464 | 回复: 12
打印 上一主题 下一主题

No rule to make target `my_init.lo', needed by `libmysqlclient.la' [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-04-03 10:48 |只看该作者 |倒序浏览
10可用积分
CentOS 5 我完全移除了yum管理的mysql,,,执行./configure很正常,但是make -test报错,直接make也不行!

CFLAGS="-O3 -mcpu=pentium4" CXX=gcc CXXFLAGS="-O3 -march=pentium4 -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/home/mysql/ --without-debug --with-named-curses-libs=/usr/lib/libncursesw.so.5 --with-unix-socket-path=/home/mysql/tmp/mysql.sock --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --enable-assembler --with-extra-charsets=all --without-innodb --without-isam --with-pthread --enable-thread-safe-client

[root@localhost mysql-5.0.46]# make -test
Making all in .
Making all in include
Making all in Docs
Making all in cmd-line-utils
Making all in libedit
Making all in sql-common
Making all in scripts
Making all in pstack
Making all in aout
Making all in strings
Making all in mysys
Making all in dbug
Making all in extra
Making all in regex
Making all in myisam
Making all in myisammrg
Making all in heap
Making all in vio
Making all in sql
Making all in share
Making all in libmysql
make[2]: *** No rule to make target `my_init.lo', needed by `libmysqlclient.la'.  Stop.
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

最佳答案

查看完整内容

我按lz给的参数编译了一次./configure --prefix=/home/mysql/ --without-debug --with-named-curses-libs=/usr/lib/libncursesw.so.5 --with-unix-socket-path=/home/mysql/tmp/mysql.sock --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --enable-assembler --with-extra-charsets=all --without-innodb --without-isam --with-pthread --enable-thread-safe-client没有问题mysql 5.0.51aos:centos 5lz在 ...

评分

参与人数 1信誉积分 -12 收起 理由
yueliangdao0608 -12 违反版规

查看全部评分

论坛徽章:
0
2 [报告]
发表于 2008-04-03 10:48 |只看该作者
我按lz给的参数编译了一次
./configure --prefix=/home/mysql/ --without-debug --with-named-curses-libs=/usr/lib/libncursesw.so.5 --with-unix-socket-path=/home/mysql/tmp/mysql.sock --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --enable-assembler --with-extra-charsets=all --without-innodb --without-isam --with-pthread --enable-thread-safe-client
没有问题
mysql 5.0.51a
os:centos 5
lz在测试测试
看看自带的mysql删除干净没有
最好能把你的所有操作都能简单的描述下

论坛徽章:
0
3 [报告]
发表于 2008-04-03 10:50 |只看该作者
修改你的makefile吧。

论坛徽章:
0
4 [报告]
发表于 2008-04-03 10:52 |只看该作者
怎么修改makefile啊?

论坛徽章:
1
双子座
日期:2013-08-19 14:56:16
5 [报告]
发表于 2008-04-03 11:54 |只看该作者
--with-client-ldflags=-all-static   这一句

论坛徽章:
0
6 [报告]
发表于 2008-04-03 12:07 |只看该作者
原帖由 猪知猪之道 于 2008-4-3 11:54 发表
--with-client-ldflags=-all-static   这一句



我去掉了这一句 还是不行,同样的错误提示!

奇怪的是我  find / -name "my_init.lo" -print
find / -name "libmysqlclient.la" -print
全都找不到这两个文件。。奇怪为什么会出这样的提示呢!

[ 本帖最后由 Gver 于 2008-4-3 12:08 编辑 ]

论坛徽章:
0
7 [报告]
发表于 2008-04-04 11:48 |只看该作者
原帖由 Gver 于 2008-4-3 12:07 发表



我去掉了这一句 还是不行,同样的错误提示!

奇怪的是我  find / -name "my_init.lo" -print
find / -name "libmysqlclient.la" -print
全都找不到这两个文件。。奇怪为什么会出这样的提示呢!

lz可以写全点吗?
yum remove些什么东西
然后把你的configure 写清楚点

论坛徽章:
0
8 [报告]
发表于 2008-04-04 11:54 |只看该作者
还有,你当前的权限是否是root

论坛徽章:
0
9 [报告]
发表于 2008-04-04 12:47 |只看该作者
我用 yum remove mysql*

之后加压mysql源码包

执行./configure

然后make -test  报错!

论坛徽章:
0
10 [报告]
发表于 2008-04-04 13:49 |只看该作者
编译成功过,但是重装系统在编译就又失败了,也不知道哪里搞错了,很想知道什么原因造成的这个问题!

[ 本帖最后由 Gver 于 2008-4-6 00:05 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP