On Fri, Jan 28, 2011 at 8:41 AM, Patrik Tast <pat...@poes-weather.com> wrote:
> Hi All,
>
> I use fedora 9-13.
> I've setup the USERNAME/.bashrc to point at python and other shared
> libraries, all works fine as USERNAME.
>
> My question is: If I login as USERNAME, then in terminal su root  and start
> a GR py it will fail due to it can't find some libraries (boost).
> I must always do an export first
>
> Where do I declare LD_LIBRARY_PATH properly for root (or any user) access at
> startup?
> At the moment I've declared paths in /root/.bash_profile, but when rebooted
> it complains and an export is needed to shared library path:s inorder to run
> GR
>
> Patrik

If you have to su, you can pass it the -p (or -m) flag and that will
preserve your environment (see man su; there's a restriction on PATH
when doing this).

You should also be able to edit /etc/bash.bashrc (might be different
in Fedora, but something similar should be there) to make common
environments shared among all users.

Tom

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to