wrong libprotoc.so library
See original GitHub issueHi, Since release 0.2 I’m getting the following error as i follow your INSTALL.MD :
libprotoc.so.15: cannot open shared object file: No such file or directory
make: *** [/grpc-web/third_party/grpc/gens/src/proto/grpc/channelz/channelz.pb.cc] Error 127
I’ve worked with the 0.1 version of grpc-web succesfully on an ubuntu machine but due to various issues I’m now on an arch system with the latest version of grpc-web. I’ve created a Dockerfile starting from ubuntu 16.04 in order to asses the problem’s not the os, but the problem persists (same line but with a different path, which is the one i pasted)
Either I’m missing something from install.md or there’s something missing in it… I suggest adding a install.sh script to prevent user errors.
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y autoconf automake build-essential curl git \
default-jdk default-jre libtool libpcre3-dev libssl-dev make wget zip
RUN git clone https://github.com/grpc/grpc-web.git
WORKDIR /grpc-web/scripts
RUN ./init_submodules.sh
WORKDIR /grpc-web
RUN git submodule update --init
WORKDIR /grpc-web/third_party/grpc
RUN git submodule update --init
WORKDIR /grpc-web/third_party/grpc/third_party/protobuf
RUN ./autogen.sh \
&& ./configure \
&& make \
&& make install
WORKDIR /grpc-web/third_party/grpc
RUN make && make install
WORKDIR /grpc-web
RUN wget https://dl.google.com/closure-compiler/compiler-latest.zip -O compiler-latest.zip \
&& unzip -p -qq -o compiler-latest.zip *.jar > closure-compiler.jar \
&& make
Issue Analytics
- State:
- Created 5 years ago
- Comments:9
Top Results From Across the Web
Protobuf cannot find shared libraries - protocol buffers
@Bagzerg protoc needs to know where to look for shared libraries. (It cannot search your whole system). This is similar to how PATH...
Read more >protoc: error while loading shared libraries: libprotobuf.so.0
After I have installed protoc, I tried this command: sudo protoc -I=~/test/pb2/src/pb/ --python_out=~/test/pb2/src/python/ addressbook.proto
Read more >solution of error while loading shared libraries - Matrix207's Blog
After I finish compile and install protobuf on my machine, then I flow the tutorialto compile the sample code, but after that I...
Read more >Error while loading shared libraries: libprotobuf.so.23
Hello guys! I have not a typical PC configuration https://valid.x86.fr/q62z68 Fedora and CentOS works fine, but many others such as Ubuntu, ...
Read more >Adb not working due to lack of libprotobuf.so.30 on raspberry
On my raspberry PI400 adb is not working due to a lack of link to libprotobuf.so.30 adb: error while loading shared libraries: ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
After you run
sudo make install
from thethird_party/protobuf
directory, perhaps try runningsudo ldconfig
? It seems that you have another libprotoc installed in your system andprotoc-gen-grpc-web
got confused.Yup, we can close the issue. Sorry if it took me a while to answer, I wanted to do a couple tests to be sure!