r - 如何在 R 中安装 RProtoBuf
问题描述
当我尝试在 R 中安装 RProtoBuf 时,安装install.packages("RProtoBuf")
结束时出现以下错误消息
测试是否可以从临时位置加载已安装的包
Error: package or namespace load failed for ‘RProtoBuf’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/cloud/anaconda3/envs/acumos/lib/R/library/00LOCK-RProtoBuf/00new/RProtoBuf/libs/RProtoBuf.so':
/home/cloud/anaconda3/envs/acumos/lib/R/library/00LOCK-RProtoBuf/00new/RProtoBuf/libs/RProtoBuf.so: undefined symbol: _ZNK6google8protobuf10Reflection17GetRepeatedUInt64ERKNS0_7MessageEPKNS0_15FieldDescriptorEi
Error: loading failed
Execution halted
ERROR: loading failed
#removing ‘/home/cloud/anaconda3/envs/acumos/lib/R/library/RProtoBuf’
#restoring previous ‘/home/cloud/anaconda3/envs/acumos/lib/R/library/RProtoBuf’
Warning in install.packages : installation of package ‘RProtoBuf’ had non-zero exit status
The downloaded source packages are in ‘/tmp/Rtmpfj6wQF/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done , than
我在这里的配置:
操作系统:ubuntu 16.04.6 LTS xenial conda
:4.7.10
anaconda navigator 1.9.7
R:3.6.1
RStudio:99.9.9
libprotoc 3.8.0
由于:https ://github.com/protocolbuffers/protobuf/blob/master/src/README.md,我安装了protobuf ?这解决了其他一些问题。
我尝试了 ./configure --prefix=/usr 如https://www.oipapio.com/question-2872905中所述?但它不起作用
我只是希望安装 RProtoBuf。
解决方案
推荐阅读
- java - Java:replace() 以正则表达式开头的 n 管道分隔符
- java - 如何控制spring boot rest csv响应单元格格式?
- oracle - SQL:根据其他字段信息更新字段
- android - 如何在 ScrollView 中设置自定义拇指
- android - 在 textView 的文本更改上更改按钮的可见性
- python - DataFrame的表格保存为图片时如何使图片清晰
- php - 如何使用“原始”属性回显语言名称?
- shiny - 闪亮:根据输入值向 dygraphs 添加/删除时间序列
- git - 导入的 SVN 存储库不显示在 gitlab 上
- azure - 几天后 Azure AKS 丢失公共 IP 地址