SQLAdvisor icon indicating copy to clipboard operation
SQLAdvisor copied to clipboard

尝试多次最后一步总是报错

Open zipu888 opened this issue 8 years ago • 5 comments

[root@localhost sqladvisor]# make Scanning dependencies of target sqladvisor [ 50%] Building CXX object CMakeFiles/sqladvisor.dir/main.cc.o [100%] Linking CXX executable sqladvisor吧 /usr/bin/ld: cannot find -lperconaserverclient_r collect2: ld 返回 1 make[2]: *** [sqladvisor] 错误 1 make[1]: *** [CMakeFiles/sqladvisor.dir/all] 错误 2 make: *** [all] 错误 2 [root@localhost sqladvisor]#

zipu888 avatar Jun 13 '17 07:06 zipu888

ln一下就可以了

DevonZhao avatar Aug 09 '17 09:08 DevonZhao

[root@localhost sqladvisor]# make Scanning dependencies of target sqladvisor [100%] Building CXX object CMakeFiles/sqladvisor.dir/main.cc.o In file included from /usr/local/sqlparser/include/sql/item.h:2470:0, from /usr/local/sqlparser/include/sql/sql_class.h:39, from /home/SQLAdvisor/SQLAdvisor/sqladvisor/main.cc:7: /usr/local/sqlparser/include/sql/item_timefunc.h: 在成员函数‘virtual longlong Item_time_func::val_int()’中: /usr/local/sqlparser/include/sql/item_timefunc.h:533:12: 警告:将 NULL 转换到非指针类型‘longlong {aka long long int}’ [-Wconversion-null] return NULL; ^ Linking CXX executable sqladvisor /usr/bin/ld: cannot find -lperconaserverclient_r collect2: 错误:ld 返回 1 make[2]: *** [sqladvisor] 错误 1 make[1]: *** [CMakeFiles/sqladvisor.dir/all] 错误 2 make: *** [all] 错误 2

ln 如何操作?

wangshuai112 avatar Aug 16 '17 05:08 wangshuai112

我的最后一步也是报错,

make

Linking CXX executable sqladvisor /usr/bin/ld: cannot find -lperconaserverclient_r collect2: error: ld returned 1 exit status make[2]: *** [sqladvisor] Error 1 make[1]: *** [CMakeFiles/sqladvisor.dir/all] Error 2 make: *** [all] Error 2

tiansong123 avatar Oct 19 '17 10:10 tiansong123

兄弟,这个问题解决了吗? 我的也是报错,ln那一步我也做了的,没有作用

empo007 avatar Nov 05 '17 12:11 empo007

没有解决。

[email protected]

发件人: empo007 发送时间: 2017-11-05 20:12 收件人: Meituan-Dianping/SQLAdvisor 抄送: Subscribed 主题: Re: [Meituan-Dianping/SQLAdvisor] 尝试多次最后一步总是报错 (#34) 兄弟,这个问题解决了吗? 我的也是报错,ln那一步我也做了的,没有作用 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

leiyifang avatar Nov 06 '17 04:11 leiyifang