--redirects can be used multiple times. But not 100% sure it will be
able to replace LD_LIBRARY_PATH. Just one thing worth trying along
--redirects /path/in/ld/libray/path=/usr/lib --env does change env
vars, but not 100% sure is it enough to make LD_LIBRARY_PATH work. In
theory it might, but not sure.

On Mon, Jun 8, 2020 at 4:04 PM Shougang Yuan <syu...@ncsu.edu> wrote:
>
> I do see that forum, but I need to add multiple shared libs with 
> "LD_LIBRARY_PATH" environment variable, can I use multiple redirects to add 
> it multiple times? I mean, Can I use it like "--redirects 
> LD_LIBRARY_PATH=/some/path; --redirects LD_LIBRARY_PATH=/some/path" ?
>
> And also, I noticed someone in gem5 mailing list mentioned that --env option 
> in se.py can help with this. I tried to add LD_LIBRARY_PATH in a txt file and 
> feed this file into simulator with --env option. but the error is still can 
> not find this lib. Do you have any hints about this?
>
> Best regards.
> Shougang
>
> On Mon, Jun 8, 2020 at 10:42 AM Ciro Santilli <ciro.santi...@gmail.com> wrote:
>>
>> Have you tried --redirects as mentioned at
>> https://stackoverflow.com/questions/50542222/how-to-run-a-dynamically-linked-executable-syscall-emulation-mode-se-py-in-gem5/50696098#50696098
>> ?
>>
>> On Mon, Jun 8, 2020 at 2:31 PM Shougang Yuan <syu...@ncsu.edu> wrote:
>> >
>> > In syscall emulation mode. I tried to use --env option with myse.py, but 
>> > it still shows the same error.
>> >
>> > On Mon, Jun 8, 2020 at 3:39 AM Ciro Santilli <ciro.santi...@gmail.com> 
>> > wrote:
>> >>
>> >> Syscall emulation or full system?
>> >>
>> >> On Sun, Jun 7, 2020 at 10:01 PM Shougang Yuan via gem5-users
>> >> <gem5-users@gem5.org> wrote:
>> >> >
>> >> > HI, All,
>> >> >
>> >> > I am trying to run some benchmarks that need some shared libs, and 
>> >> > these shared libs are imported by setting the environment variables 
>> >> > "LD_LIBRARY_PATH" if I run it on physical machines. But if I run the 
>> >> > benchmarks with gem5, the error message is "error while loading shared 
>> >> > libraries: libs.so.1: cannot open shared object file: No such file or 
>> >> > directory".
>> >> >
>> >> > Any hints about how to solve this issue? Thanks a lot.
>> >> >
>> >> > Best regards.
>> >> > Shougang
>> >> > _______________________________________________
>> >> > gem5-users mailing list -- gem5-users@gem5.org
>> >> > To unsubscribe send an email to gem5-users-le...@gem5.org
>> >> > %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to