Thanks for the package, it looks really promising along with bigrquery. Under Ubuntu 20.04, however, I am unable to install it.
First of all, dependencies. My initial attempt was the easier route:
sudo apt-get install -y libgrpc++-dev libprotobuf-dev protobuf-compiler-grpc
which resulted in a protobuf version that is a bit old:
$ protoc --version
libprotoc 3.6.1
For this scenario, this is the package instalation error I got:
> install.packages("bigrquerystorage")
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/bigrquerystorage_1.2.1.tar.gz'
Content type 'application/x-gzip' length 57448 bytes (56 KB)
==================================================
downloaded 56 KB
* installing *source* package ‘bigrquerystorage’ ...
** package ‘bigrquerystorage’ successfully unpacked and MD5 sums checked
** using staged installation
Found pkg-config cflags and libs!
Using PKG_CFLAGS=-pthread
Using PKG_LIBS=-lprotobuf -pthread -lgrpc++
Found C++17 compiler: g++ -std=gnu++17 -g -O2 -fdebug-prefix-map=/build/r-base-thBIeW/r-base-4.4.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2
Using libprotoc 3.6.1 from /usr/bin/protoc
Using /usr/bin/grpc_cpp_plugin
Missing value for flag: --experimental_allow_proto3_optional
Missing value for flag: --experimental_allow_proto3_optional
Error: failed to compile proto files.
ERROR: configuration failed for package ‘bigrquerystorage’
* removing ‘/usr/local/lib/R/site-library/bigrquerystorage’
Warning in install.packages :
installation of package ‘bigrquerystorage’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpkVJekT/downloaded_packages’
Then, I uninstalled the system-provided dependencies and decided to compile a recent version of gRPC from source, which also builds protobuf. This is how I did it:
git clone -b v1.67.0 https://github.com/grpc/grpc
cd grpc
git submodule update --init
mkdir -p cmake/build
cd cmake/build
cmake -j4 ../..
sudo make -j4 install
uninstall the system package? try an earlier version of grpc? I saw some work around replacing the log.cc that this package uses. It might be that? https://github.com/grpc/proposal/pull/425
Thanks for the package, it looks really promising along with
bigrquery
. Under Ubuntu 20.04, however, I am unable to install it.First of all, dependencies. My initial attempt was the easier route:
sudo apt-get install -y libgrpc++-dev libprotobuf-dev protobuf-compiler-grpc
which resulted in a
protobuf
version that is a bit old:For this scenario, this is the package instalation error I got:
Then, I uninstalled the system-provided dependencies and decided to compile a recent version of
gRPC
from source, which also buildsprotobuf
. This is how I did it:But still I got an error (different one, though):
What am I missing? Any advice to fix the error would be much appreciated!