grpc install not creating symlinks for some shared objects

1,206 views
Skip to first unread message

Brian Dunlay

unread,
Apr 26, 2015, 2:38:47 PM4/26/15
to grp...@googlegroups.com
I've tried building grpc, but when trying to load an app I get an error due to missing shared object file, a symbolic link which is present in the build tree but not in the install path. The first time I tried installing grpc this was link was present, but subsequent attempts have resulted in missing symlinks. I could create the link myself of course, but really I am curious why the link is not being made at install. I'm on ubuntu.

$ node server.js
...
Error: libgrpc.so.0: cannot open shared object file: No such file or directory
...

Here are my steps:

$ make
$ make install prefix=/path/to/install
$ make verify-install
Your system looks ready to go.

When I check the libs dir I see the following:

install/lib$ ls -al | grep grpc
-rwxr-xr-x 1 root    root     5811678 Apr 26 10:45 libgrpc.a
-rwxr-xr-x 1 root    root      304262 Apr 26 10:45 libgrpc++.a
lrwxrwxrwx 1 root    root          18 Apr 26 10:50 libgrpc.so -> libgrpc.so.0.6.0.0
lrwxrwxrwx 1 root    root          20 Apr 26 10:50 libgrpc++.so -> libgrpc++.so.0.6.0.0
-rwxr-xr-x 1 root    root     2494056 Apr 26 10:50 libgrpc.so.0.6.0.0
-rwxr-xr-x 1 root    root      184664 Apr 26 10:50 libgrpc++.so.0.6.0.0
-rwxr-xr-x 1 root    root      566406 Apr 26 10:45 libgrpc_unsecure.a
-rwxr-xr-x 1 root    root      271000 Apr 26 10:45 libgrpc++_unsecure.a
lrwxrwxrwx 1 root    root          27 Apr 26 10:50 libgrpc_unsecure.so -> libgrpc_unsecure.so.0.6.0.0
lrwxrwxrwx 1 root    root          29 Apr 26 10:50 libgrpc++_unsecure.so -> libgrpc++_unsecure.so.0.6.0.0
-rwxr-xr-x 1 root    root      272120 Apr 26 10:50 libgrpc_unsecure.so.0.6.0.0
-rwxr-xr-x 1 root    root      176344 Apr 26 10:50 libgrpc++_unsecure.so.0.6.0.0

Here's what I see in grpc/libs/opt, the missing link (and some more):

grpc/libs/opt$ ls -al | grep grpc
-rw-rw-r-- 1 bdunlay bdunlay 5811678 Apr 26 10:45 libgrpc.a
-rw-rw-r-- 1 bdunlay bdunlay  304262 Apr 26 10:45 libgrpc++.a
-rw-rw-r-- 1 bdunlay bdunlay 4660912 Apr 26 10:44 libgrpc_plugin_support.a
lrwxrwxrwx 1 bdunlay bdunlay      18 Apr 26 10:44 libgrpc.so -> libgrpc.so.0.6.0.0
lrwxrwxrwx 1 root    root         20 Apr 26 10:50 libgrpc++.so -> libgrpc++.so.0.6.0.0
lrwxrwxrwx 1 bdunlay bdunlay      18 Apr 26 10:44 libgrpc.so.0 -> libgrpc.so.0.6.0.0
lrwxrwxrwx 1 root    root         20 Apr 26 10:50 libgrpc++.so.0 -> libgrpc++.so.0.6.0.0
-rwxrwxr-x 1 bdunlay bdunlay 2494056 Apr 26 10:50 libgrpc.so.0.6.0.0
-rwxr-xr-x 1 root    root     184664 Apr 26 10:50 libgrpc++.so.0.6.0.0
-rw-rw-r-- 1 bdunlay bdunlay  345610 Apr 26 11:11 libgrpc_test_util.a
-rw-rw-r-- 1 bdunlay bdunlay  566406 Apr 26 10:45 libgrpc_unsecure.a
-rw-rw-r-- 1 bdunlay bdunlay  271000 Apr 26 10:45 libgrpc++_unsecure.a
lrwxrwxrwx 1 bdunlay bdunlay      27 Apr 26 10:44 libgrpc_unsecure.so -> libgrpc_unsecure.so.0.6.0.0
lrwxrwxrwx 1 root    root         29 Apr 26 10:50 libgrpc++_unsecure.so -> libgrpc++_unsecure.so.0.6.0.0
lrwxrwxrwx 1 bdunlay bdunlay      27 Apr 26 10:44 libgrpc_unsecure.so.0 -> libgrpc_unsecure.so.0.6.0.0
lrwxrwxrwx 1 root    root         29 Apr 26 10:50 libgrpc++_unsecure.so.0 -> libgrpc++_unsecure.so.0.6.0.0
-rwxrwxr-x 1 bdunlay bdunlay  272120 Apr 26 10:50 libgrpc_unsecure.so.0.6.0.0
-rwxr-xr-x 1 root    root     176344 Apr 26 10:50 libgrpc++_unsecure.so.0.6.0.0

Nicolas Noble

unread,
Apr 26, 2015, 2:56:59 PM4/26/15
to Brian Dunlay, grp...@googlegroups.com
That's odd. Which version of grpc are you on ? Master ? This was supposedly fixed here:


--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/1880d146-29a5-43fd-86e9-1ce211057b2a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Brian Dunlay

unread,
Apr 26, 2015, 3:00:30 PM4/26/15
to grp...@googlegroups.com, br...@surround.io
I am using the 0.6 release branch

Nicolas Noble

unread,
Apr 26, 2015, 3:03:16 PM4/26/15
to Brian Dunlay, grp...@googlegroups.com
That's why then. This is fixed in the master branch.

chno...@gmail.com

unread,
May 16, 2017, 6:39:56 AM5/16/17
to grpc.io
Got the same problem when installing version 1.3.1 from latest git. The Makefile installs libgrpc*.so.3 but executables look for libgrpc*.so.1.

Nicolas Noble

unread,
Jun 27, 2017, 8:10:57 PM6/27/17
to grpc.io, chno...@gmail.com
What do you mean, executables look for libgrpc*.so.1 ? Which executables ?

Jeff Mendoza

unread,
Jun 28, 2017, 1:05:20 PM6/28/17
to Nicolas Noble, grpc.io, chno...@gmail.com

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscribe@googlegroups.com.

To post to this group, send email to grp...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages