Lately I have installed GNU radio on my local session running on a
remote
Server.
Actually I proceeded as mentioned in the gnu radio git installation
guide
The environment variables are set respectively to
However I am not sure what to set next re LD_LIBRARY_PATH and make using
CPPFLAGS as in the guide
I am using a limited access session on the server and don’t know how to
set
the variables nor how to proceed the following make command of make …
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/local/lib
$ make CPPFLAGS=“-I$HOME/local/include”
1/ When I type gnuradio-companion from the terminal it give the error:
Traceback (most recent call last):
File “/users/nae/gnuradio_3.6.5/bin/gnuradio-companion”, line 24, in
import gtk
File “/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/init.py”,
line
64, in
_init()
File “/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/init.py”,
line
52, in _init
_gtk.init_check()
RuntimeError: could not open display
2/ When I run gnuradio-companion graphically from its icon in
/home/gnuradio_3.6.5/bin it gives the error:
Cannot import gnuradio.
Is the python path environment variable set correctly?
All OS: PYTHONPATH
Is the library path environment variable set correctly?
Linux: LD_LIBRARY_PATH
Windows: PATH
MacOSX: DYLD_LIBRARY_PATH
the display error looks like the result of the X Window display
environment variable not being set. Assuming that you run your
gnuradio-companion command from a terminal started from within your X
Session, this is strange.If
echo $DISPLAY
does not give something like :0, try
export DISPLAY=:0
gnuradio-companion
Of course, if you try to run a graphical program such as
gnuradio-companion on a terminal-only session (eg. ssh connection to a
server),
you won’t have any success. What you can do is set up a trusted X
tunnel, by running ssh with -X -Y flags.
Note, however, that there is little sense in running the companion on
a server. What you’d usually do is run gnuradio-companion on your
local workstation, build non-graphical flowgraphs, and run these on
the server.