Open renanmacedosem opened 1 year ago
Can you show the command you used and the full install log pls
So, I solved the problem. I had an old R version (3.6.3) and did not realize it. After removing this version and installing 4.2.2 this problem was solved.
Sorry for bothering you.
Thanks for your time and quickly answer.
> install.packages('protolite')
trying URL 'https://cloud.r-project.org/src/contrib/protolite_2.1.3.tar.gz'
Content type 'application/x-gzip' length 25173 bytes (24 KB)
==================================================
downloaded 24 KB
* installing *source* package ‘protolite’ ...
** package ‘protolite’ successfully unpacked and MD5 sums checked
** using staged installation
Found pkg-config cflags and libs!
Using PKG_CFLAGS=-pthread
Using PKG_LIBS=-lprotobuf -pthread
Using C++17 compiler: g++ -std=gnu++17
Using libprotoc 3.14.0 from /home/renan/.local/share/r-miniconda/envs/r-reticulate/bin/protoc
Warning: protoc version libprotoc 3.14.0 might not match libproto version 3.6.1.
** libs
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -pthread -DUSENEWAPI -I'/home/renan/R/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -fvisibility=hidden -fpic -g -O2 -fdebug-prefix-map=/build/r-base-a3XuZ5/r-base-4.2.2.20221110=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -pthread -DUSENEWAPI -I'/home/renan/R/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -fvisibility=hidden -fpic -g -O2 -fdebug-prefix-map=/build/r-base-a3XuZ5/r-base-4.2.2.20221110=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c geobuf.cpp -o geobuf.o
In file included from geobuf.cpp:1:
geobuf.pb.h:10:10: fatal error: google/protobuf/port_def.inc: No such file or directory
10 | #include <google/protobuf/port_def.inc>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [/usr/lib/R/etc/Makeconf:178: geobuf.o] Error 1
ERROR: compilation failed for package ‘protolite’
* removing ‘/home/renan/R/x86_64-pc-linux-gnu-library/4.2/protolite’
Warning in install.packages :
installation of package ‘protolite’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpEwnQ4U/downloaded_packages’
Hi!
I am trying to install geojsonio package and it seems I could not finish this process because I can not install protolite package. There is an issue in some parts. Please, can you help to figure out what should be the issue?
Also, I tried to reinstall the Linux dependencies:
sudo apt-get install -y libprotobuf-dev protobuf-compiler
and I still have the same issue.Error message:
Session info:
Thanks!