After using make && make install, I think I've successfully installed 2.3.0 version of protobuf. I typed pkg-config --modversion protobuf, and it shows 2.3.0. However, when I reinstall rhipe again, it shows the following error message:
g++ -I/usr/share/R/include -fpic -g -O2 -I. -g -DHAVE_UINTPTR_T `pkg-config --cflags protobuf` -Wall -c main.cc -o main.o
main.cc: In function ‘int main(int, char**)’:
main.cc:219: warning: deprecated conversion from string constant to ‘char*’
main.cc:219: warning: deprecated conversion from string constant to ‘char*’
g++ -I/usr/share/R/include -fpic -g -O2 -I. -g -DHAVE_UINTPTR_T `pkg-config --cflags protobuf` -Wall -c mapper.cc -o mapper.o
g++ -I/usr/share/R/include -fpic -g -O2 -I. -g -DHAVE_UINTPTR_T `pkg-config --cflags protobuf` -Wall -c message.cc -o message.o
g++ -I/usr/share/R/include -fpic -g -O2 -I. -g -DHAVE_UINTPTR_T `pkg-config --cflags protobuf` -Wall -c reducer.cc -o reducer.o
reducer.cc:8: warning: deprecated conversion from string constant to ‘char*’
reducer.cc:9: warning: deprecated conversion from string constant to ‘char*’
reducer.cc:10: warning: deprecated conversion from string constant to ‘char*’
reducer.cc:11: warning: deprecated conversion from string constant to ‘char*’
reducer.cc:12: warning: deprecated conversion from string constant to ‘char*’
g++ -I/usr/share/R/include -fpic -g -O2 -I. -g -DHAVE_UINTPTR_T `pkg-config --cflags protobuf` -Wall -c
rexp.pb.cc -o rexp.pb.o
g++ -I/usr/share/R/include -fpic -g -O2 -I. -g -DHAVE_UINTPTR_T `pkg-config --cflags protobuf` -Wall -c rhooks.cc -o rhooks.o
rhooks.cc: In function ‘void CaptureLogInLibrary(google::protobuf::LogLevel, const char*, int, const std::string&)’:
rhooks.cc:18: warning: deprecated conversion from string constant to ‘char*’
rhooks.cc:18: warning: deprecated conversion from string constant to ‘char*’
rhooks.cc:18: warning: deprecated conversion from string constant to ‘char*’
rhooks.cc:18: warning: deprecated conversion from string constant to ‘char*’
rhooks.cc:18: warning: deprecated conversion from string constant to ‘char*’
rhooks.cc: In function ‘SEXPREC* readBinaryFile(SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*)’:
rhooks.cc:309: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
rhooks.cc:330: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
rhooks.cc: In function ‘SEXPREC* readSQFromPipe(SEXPREC*, SEXPREC*, SEXPREC*)’:
rhooks.cc:455: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
rhooks.cc:469: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
g++ -I/usr/share/R/include -fpic -g -O2 -c tests.cc -o tests.o
g++ -I/usr/share/R/include -fpic -g -O2 -I. -g -DHAVE_UINTPTR_T `pkg-config --cflags protobuf` -Wall -c utility.cc -o utility.o
utility.cc: In function ‘int64_t readVInt64FromFileDescriptor(FILE*)’:
utility.cc:186: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
g++ -shared -o Rhipe.so display.o main.o mapper.o message.o reducer.o rexp.pb.o rhooks.o tests.o utility.o -pthread -L/usr/local/lib -lprotobuf -lz -L/usr/lib/R/lib -lR
g++ -I. -g -DHAVE_UINTPTR_T `pkg-config --cflags protobuf` -Wall `pkg-config --libs protobuf` `R CMD config --cppflags` -fpic `R CMD config --ldflags` rexp.pb.o message.o utility.o display.o reducer.o mapper.o main.o -o imperious.so
installing to /usr/local/lib/R/site-library/Rhipe/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices ...
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared library '/usr/local/lib/R/site-library/Rhipe/libs/Rhipe.so':
libprotobuf.so.6: cannot open shared object file: No such file or directory
ERROR: loading failed
* removing ‘/usr/local/lib/R/site-library/Rhipe’