无法在centos 7中安装RMySQL,错误消息“ RMySQL.so:找不到针对符号mysql_server_end @ libmysqlclient_16的版本节点”

时间:2019-07-15 11:39:06

标签: r rmysql

安装 source 软件包“ RMySQL” ... 软件包“ RMySQL”已成功解压并检查了MD5的总和 使用分阶段安装 找到mysql_config的cflags和libs! 使用PKG_CFLAGS = -I / usr / include / mysql -g -m64 -fPIC -g -fabi-version = 2 -fno-omit-frame-pointer -fno-strict-aliasing 使用PKG_LIBS = -L / usr / lib64 / mysql -lmysqlclient -lpthread -lm -ldl  库

rm -f RMySQL.so RMySQL-init.o connection.o db-apply.o driver.o exception.o fields.o result.o utils.o gcc -m64 -std = gnu99 -I“ / usr / include / R” -DNDEBUG -I / usr / include / mysql -g -m64 -fPIC -g -fabi-version = 2 -fno-omit-frame-pointer- fno-strict-aliasing -I / usr / local / include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE = 2 -fexceptions -fstack-protector-strong --param = ssp-buffer-size = 4- grecord-gcc-switches -m64 -mtune = generic -c RMySQL-init.c -o RMySQL-init.o

gcc -m64 -std = gnu99 -I“ / usr / include / R” -DNDEBUG -I / usr / include / mysql -g -m64 -fPIC -g -fabi-version = 2 -fno-omit-frame -pointer -fno-strict-aliasing -I / usr / local / include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE = 2 -fexceptions -fstack-protector-strong --param = ssp-buffer-size = 4 -grecord-gcc-switches -m64 -mtune =通用-c connection.c -o connection.o

gcc -m64 -std = gnu99 -I“ / usr / include / R” -DNDEBUG -I / usr / include / mysql -g -m64 -fPIC -g -fabi-version = 2 -fno-omit-frame -pointer -fno-strict-aliasing -I / usr / local / include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE = 2 -fexceptions -fstack-protector-strong --param = ssp-buffer-size = 4 -grecord-gcc-switches -m64 -mtune = generic -c db-apply.c -o db-apply.o

gcc -m64 -std = gnu99 -I“ / usr / include / R” -DNDEBUG -I / usr / include / mysql -g -m64 -fPIC -g -fabi-version = 2 -fno-omit-frame -pointer -fno-strict-aliasing -I / usr / local / include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE = 2 -fexceptions -fstack-protector-strong --param = ssp-buffer-size = 4 -grecord-gcc-switches -m64 -mtune =通用-c driver.c -o driver.o

gcc -m64 -std = gnu99 -I“ / usr / include / R” -DNDEBUG -I / usr / include / mysql -g -m64 -fPIC -g -fabi-version = 2 -fno-omit-frame -pointer -fno-strict-aliasing -I / usr / local / include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE = 2 -fexceptions -fstack-protector-strong --param = ssp-buffer-size = 4 -grecord-gcc-switches -m64 -mtune = generic -c exception.c -o exception.o

gcc -m64 -std = gnu99 -I“ / usr / include / R” -DNDEBUG -I / usr / include / mysql -g -m64 -fPIC -g -fabi-version = 2 -fno-omit-frame -pointer -fno-strict-aliasing -I / usr / local / include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE = 2 -fexceptions -fstack-protector-strong --param = ssp-buffer-size = 4 -grecord-gcc-switches -m64 -mtune =通用-c字段.c -o字段.o

gcc -m64 -std = gnu99 -I“ / usr / include / R” -DNDEBUG -I / usr / include / mysql -g -m64 -fPIC -g -fabi-version = 2 -fno-omit-frame -pointer -fno-strict-aliasing -I / usr / local / include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE = 2 -fexceptions -fstack-protector-strong --param = ssp-buffer-size = 4 -grecord-gcc-switches -m64 -mtune =通用-c result.c -o result.o

gcc -m64 -std = gnu99 -I“ / usr / include / R” -DNDEBUG -I / usr / include / mysql -g -m64 -fPIC -g -fabi-version = 2 -fno-omit-frame -pointer -fno-strict-aliasing -I / usr / local / include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE = 2 -fexceptions -fstack-protector-strong --param = ssp-buffer-size = 4 -grecord-gcc-switches -m64 -mtune = generic -c utils.c -o utils.o

gcc -m64 -std = gnu99 -shared -L / usr / lib64 / R / lib -Wl,-z,relro -o RMySQL.so RMySQL-init.o connection.o db-apply.o driver.o exception.o fields.o result.o utils.o -L / usr / lib64 / mysql -lmysqlclient -lpthread -lm -ldl -L / usr / lib64 / R / lib –lR

/ usr / bin / ld:RMySQL.so:找不到符号mysql_server_end @ libmysqlclient_16的版本节点

/ usr / bin / ld:未能设置动态节大小:值错误 collect2:错误:ld返回1退出状态 制作:*** [RMySQL.so]错误1 错误:“ RMySQL”软件包的编译失败 *删除“ / usr / lib64 / R / library / RMySQL”

已下载的源包位于         ‘/ tmp / RtmpSG1ZVF / downloaded_pa​​ckages’ 更新“ .Library”中软件包的HTML索引 使'packages.html'...完成 警告信息: 在install.packages(“ RMySQL”)中:   安装软件包“ RMySQL”的退出状态为非零

0 个答案:

没有答案