bazel and libraries in /usr/local/lib

862 views
Skip to first unread message

Bela Berde

unread,
Feb 26, 2017, 10:22:42 AM2/26/17
to bazel-discuss
I installed Bazel at least 3 times and checked all the discussions on this topic. 
The problem is that without creating a symbolic link in /usr/lib/, Bazel does not link to libraries installed in /usr/local/lib.

Typically, I do: ln -s /usr/local/lib/libzmq.so libzmq.so in the directory: /usr/lib.

Can you help please to find a solution?

Marcel Hlopko

unread,
Feb 27, 2017, 5:52:59 AM2/27/17
to Bela Berde, bazel-discuss
Hi Bela,

I just replied here:


I think you might find the information there relevant.
Cheers!

--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/529e6839-cd99-4382-a8d8-c4929185e878%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
-- 
Marcel Hlopko | Software Engineer | hlo...@google.com | 

Google Germany GmbH | Erika-Mann-Str. 33  | 80636 München | Germany | Geschäftsführer: Matthew Scott Sucherman, Paul Terence Manicle | Registergericht und -nummer: Hamburg, HRB 86891

Bela Berde

unread,
Feb 27, 2017, 6:31:57 PM2/27/17
to bazel-discuss
Many thanks

Marcel Hlopko

unread,
Feb 28, 2017, 3:13:07 AM2/28/17
to Bela Berde, bazel-discuss
No problem, have a wonderful day! :)

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

For more options, visit https://groups.google.com/d/optout.

aiyun...@gmail.com

unread,
Apr 22, 2020, 8:17:35 AM4/22/20
to bazel-discuss
Maybe you could try this:

cc_binary(
    name = 'xxx',
    srcs = [ 'xxx.cc' ],
    linkopts = [
        '-L/usr/local/lib',
        '-lzmq',
    ]
)


在 2017年2月26日星期日 UTC+8下午11:22:42,Bela Berde写道:
Reply all
Reply to author
Forward
0 new messages