Re: [PATCH V2 17/19] perf scripts python: exported-sql-viewer.py: Add All branches report

From: Adrian Hunter
Date: Tue Oct 23 2018 - 16:33:40 EST


On 23/10/18 11:02 PM, Arnaldo Carvalho de Melo wrote:
> Em Tue, Oct 23, 2018 at 07:57:17PM +0000, Hunter, Adrian escreveu:
>>> -----Original Message-----
>>> From: Arnaldo Carvalho de Melo [mailto:acme@xxxxxxxxxx]
>>> Sent: Tuesday, October 23, 2018 10:30 PM
>>> To: Hunter, Adrian <adrian.hunter@xxxxxxxxx>
>>> Cc: Jiri Olsa <jolsa@xxxxxxxxxx>; Andi Kleen <ak@xxxxxxxxxxxxxxx>; linux-
>>> kernel@xxxxxxxxxxxxxxx
>>> Subject: Re: [PATCH V2 17/19] perf scripts python: exported-sql-viewer.py:
>>> Add All branches report
>>>
>>> Em Tue, Oct 23, 2018 at 06:41:17PM +0000, Hunter, Adrian escreveu:
>>>>> -----Original Message-----
>>>>> From: Arnaldo Carvalho de Melo [mailto:acme@xxxxxxxxxx]
>>>>> So, I followed the instructions then ended up with:
>>>>>
>>>>> [acme@seventh perf]$ find /usr/local -name "*xed*" | head
>>>>> /usr/local/lib/libxed.so /usr/local/lib/libxed.a
>>>>> /usr/local/lib/libxed-ild.so /usr/local/lib/libxed-ild.a
>>>>> /usr/local/include/xed /usr/local/include/xed/xed- syntax-enum.h
>>>>> /usr/local/include/xed/xed-attributes.h
>>>>> /usr/local/include/xed/xed-build-defines.h
>>>>> /usr/local/include/xed/xed-cpuid-rec.h
>>>>> /usr/local/include/xed/xed-flags.h
>>>>> [acme@seventh perf]$
>>>>>
>>>>> Ran ldconfig as root, etc:
>>>>>
>>>>> [acme@seventh perf]$ ldconfig -v -N | grep xed
>>
>> What about:
>> ldconfig -p | grep xed
>
> $ ldconfig -p | grep xed
> $ echo $LD_LIBRARY_PATH
> /usr/local/lib
> $ ls -la /usr/local/lib/libxed*so
> -r--r--r--. 1 root root 132840 Oct 23 14:52 /usr/local/lib/libxed-ild.so
> -r--r--r--. 2 root root 6842688 Oct 23 14:52 /usr/local/lib/libxed.so
> $ ldconfig -p | grep xed
> $
>

A short term solution might be to add /usr/local/lib with ldconfig i.e.

sudo ldconfig /usr/local/lib