# Problem running GNU Radio 3.6.5 under Centos on X2Go Client

**URL:** <https://www.ruby-forum.com/t/problem-running-gnu-radio-3-6-5-under-centos-on-x2go-client/238504>\
**Category:** GNU Radio\
**Created:** [January 14, 2014, 10:56pm UTC](https://www.ruby-forum.com/t/problem-running-gnu-radio-3-6-5-under-centos-on-x2go-client/238504 "2014-01-14T22:56:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [January 14, 2014, 10:56pm UTC](https://www.ruby-forum.com/t/problem-running-gnu-radio-3-6-5-under-centos-on-x2go-client/238504/1 "2014-01-14T22:56:01Z")

</div>

Hello GR,

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

$PATH:… /users/nae/gnuradio\_3.6.5/bin/  
$PYTHONPATH: /users/nae/gnuradio\_3.6.5/lib64/python2.6/site-packages/

(stored into the ~/.bashrc file)

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

Any help is appreciated.

Regards,

–  
View this message in context:  
[http://gnuradio.4.n7.nabble.com/Problem-running-GNU-Radio-3-6-5-under-Centos-on-X2Go-Client-tp45727.html](http://gnuradio.4.n7.nabble.com/Problem-running-GNU-Radio-3-6-5-under-Centos-on-X2Go-Client-tp45727.html)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![naeo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/57b2e6/32.png) [@naeo](https://www.ruby-forum.com/u/naeo)\
**Post date:** [January 14, 2014, 11:00pm UTC](https://www.ruby-forum.com/t/problem-running-gnu-radio-3-6-5-under-centos-on-x2go-client/238504/2 "2014-01-14T23:00:12Z")

</div>

On Tue, Jan 14, 2014 at 04:52:35PM +0100, Marcus M. wrote:

> Hope that was kind of insightful,

Also, this might help:  
[http://gnuradio.org/redmine/projects/gnuradio/wiki/FAQ#Experts-only-How-can-I-deliberately-install-GNU-Radio-multiple-times-different-versions](http://gnuradio.org/redmine/projects/gnuradio/wiki/FAQ#Experts-only-How-can-I-deliberately-install-GNU-Radio-multiple-times-different-versions)

MB

---

<div class="post-metadata">

**Author:** ![naeo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/57b2e6/32.png) [@naeo](https://www.ruby-forum.com/u/naeo)\
**Post date:** [January 14, 2014, 10:56pm UTC](https://www.ruby-forum.com/t/problem-running-gnu-radio-3-6-5-under-centos-on-x2go-client/238504/3 "2014-01-14T22:56:05Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Hi Naceur,

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.

Hope that was kind of insightful,

Marcus

On 14.01.2014 16:40, Naceur wrote:

> (stored into the ~/.bashrc file)
> 
> display  
> LD\_LIBRARY\_PATH Windows: PATH MacOSX: DYLD\_LIBRARY\_PATH

Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).

> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ Discuss-gnuradio  
> mailing list [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [Discuss-gnuradio Info Page](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1  
Comment: Using GnuPG with Thunderbird - [http://www.enigmail.net/](http://www.enigmail.net/)

iQEcBAEBAgAGBQJS1V1DAAoJEAFxB7BbsDrLnqAIAKVZ+EgO5CKLYnWNz2VyZNMp  
D4K4/X9l4rVNzGTk6DmPkXedqh8zw9KCWubXxlVx9Qe2pJZtNwYyiWqcUjN/qQpi  
5twE409eyp01uw2XoRnRINZSqH/VkHnufADyMo7yHxWgb+EIG8Ay0paAybbS5hCN  
L7TU7qVFytKlCM7iLZb2qbtRqgPtilGBK6/+pVr2qVz/BIyJQyiayQSZsy80tsN2  
dJqI2Fw0TDHy0bDrJbc9jbDO1EkcqrNB7ig5ElvJax7ayl1F87oFl0ePJfsXQKwf  
vHTpAozzs63JcN2pqv4GSmOCPyWNaM5VajB9wU5ob/m+9NYpa+iOqTF6VFgDVnw=  
=MYmT  
-----END PGP SIGNATURE-----
