question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

wrong libprotoc.so library

See original GitHub issue

Hi, 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:closed
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
stanley-cheungcommented, Sep 4, 2018

After you run sudo make install from the third_party/protobuf directory, perhaps try running sudo ldconfig? It seems that you have another libprotoc installed in your system and protoc-gen-grpc-web got confused.

0reactions
Tails128commented, Sep 7, 2018

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found