Monday, September 18, 2017

Re: new tool lib conflict with gvim lib

2017-09-18 2:50 GMT+03:00 Sand Glass <youngluoyang@gmail.com>:
> I install a new tool, and I export the LD lib.
> ########
> export LD_LIBRARY_PATH="/opt/Xilinx/Vivado/2016.3/lib/lnx64.o:"$LD_LIBRARY_PATH
> ########
>
> But my gvim cannot launch.
> ########
> /usr/bin/gvim: /opt/Xilinx/Vivado/2016.3/lib/lnx64.o/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/lib/x86_64-linux-gnu/libicuuc.so.55)
> ########
>
> My gvim linked lib is replaced by Xilinx lib.
> So Xilinx tool can not run with gvim at the same time. Now I split the .bashrc file as two. one basic env include gvim(.bashrc_basic), another only include xilinx env(.bashrc_xil). When I run xilinx tool, I open a new cmd window, and source .bashrc_xil, this window only run xilinx tool. The action can solve my problem.
>
> Is there another way makes me run xilinx tool and gvim the same time in same cmd window?

Create a wrapper function/alias/script around your tool which will run

LD_LIBRARY_PATH=/opt/Xilinx/Vivado/2014.3/lib your-xilinx-tool

, e.g. like adding

alias your-xilinx-tool="LD_LIBRARY_PATH=/opt/Xilinx/Vivado/2014.3/lib
your-xilinx-tool"

to the bashrc.

Given the nature of the message you are seeing it is extremely bad
idea to run *anything*, but xilinx tool with that LD_LIBRARY_PATH:
given that they override at least some system shared libraries any
application using overridden libraries may malfunction, not only gvim,
and possibly not only by refusing to work at all.

And I would suggest to contact whoever packaged xilinx tools, I have
seen software like this (coming with their own libs) placed in /opt
and corresponding packages *already come with a wrapper script* which
do exactly that (plus sometimes with more modifications to environment
and/or argument list) without requiring user to modify environment on
their own. But first search your xilinx package for preexisting
wrappers, maybe you are using what you are not supposed to use
directly.

>
> --
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: