Makmur,

.bashrc is just a convenient way to set environment variables and
aliases when you open a terminal.

if setting theose environment variables (BOOST_PREFIX and
LD_LIBRARY_PATH) before you run grc from the command line fixes your
problem, then you would want to add them to your .bashrc file.

Your .bashrc should be in your home directory.  It should be writable by you.

-Tom

On Wed, Mar 3, 2010 at 7:05 AM, Makmur Hidayat <makm...@gmail.com> wrote:
> Hello,
>
> I can run some examples like dial_tone.py, audio_fft.py, and others.
>
> But when using GRC to open grc examples, I can not execute the grc examples
> like dial_tone.grc.
>
> Then I try to add the following to .bashrc
>
> export BOOST_PREFIX=/opt/boost_1_37_0
> export LD_LIBRARY_PATH=$BOOST_PREFIX/lib
>
> But I can not do that because .bashrc is read only.
>
> Therefore how to solve the problem?
>
> Thank you for your help.
> Makmur
>
> This is the error:
>
> Loading: "/usr/share/gnuradio/examples/grc/simple/ber_simulation.grc"
>>>> Done
>
> Showing: "/usr/share/gnuradio/examples/grc/simple/ber_simulation.grc"
>
> Generating: "/usr/share/gnuradio/examples/grc/simple/ber_sim.py"
> Generate Error: [Errno 13] Permission denied:
> '/usr/share/gnuradio/examples/grc/simple/ber_sim.py'
>>>> Failue
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/dist-packages/gnuradio/grc/gui/ActionHandler.py",
> line 313, in handle_states
>     generator.write()
>   File "/usr/lib/python2.6/dist-packages/gnuradio/grc/python/Generator.py",
> line 61, in write
>     open(self.get_file_path(), 'w').write(str(self))
> IOError: [Errno 13] Permission denied:
> '/usr/share/gnuradio/examples/grc/simple/ber_sim.py'
>
> Executing: "/usr/share/gnuradio/examples/grc/simple/ber_sim.py"
>
> python: can't open file
> '/usr/share/gnuradio/examples/grc/simple/ber_sim.py': [Errno 2] No such file
> or directory
>
>>>> Done
>
> _______________________________________________
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>


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

Reply via email to