首页 > 解决方案 > 如何在 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

我只是希望安装 RProtoBuf。

标签: rprotocol-buffers

解决方案


推荐阅读