sudo ./pybombs install gnuradio (sudo needed to give permission to
create files here)
./pybombs env
Then instead of sourcing the setup_env.sh file from .bashrc, I will
source it from /etc/profile.
Finally, and this is the part I’m most unsure of, since I used sudo
./pybombs install gnuradio, root owns these files. If I remember
correctly,
this caused issues for me in the past trying to run gnuradio from a
non-root account. How should I handle this?
Hi Richard,
no, not completely.
instead of 1) you should cd somewhere in your home directory, where you
have write access
2) - 3) are correct. Choose /usr/local/ as prefix
5) could also be done by copying over setup_env.sh to
/etc/profile.d/50-setup-gnuradio-paths
is normal and should not result in errors.
If normal users (including) want to install their own OOT modules,
they’d use a local clone of pybombs, setting that gnuradio is already
installed, and install their modules into a user-prefix (e.g.
/home/user/prefix).
I can’t execute ‘sudo ./pybombs install gnuradio’ at all, because it
fails
with the following output:
*rbell@polarcode1:~/Documents/gnuradio/pybombs$ sudo ./pybombs install
gnuradioInitializing config file…Username for GIT accessgituser
[root]:Directory of git cache repositorygitcache []:Install
PrefixTraceback
(most recent call last): File “./pybombs”, line 25, in from
mod_pybombs import verbosity as v File
“/home/rbell/Documents/gnuradio/pybombs/mod_pybombs/init.py”, line
22,
in from globals import *; File
“/home/rbell/Documents/gnuradio/pybombs/mod_pybombs/globals.py”, line
48,
in config_init(config); File
“/home/rbell/Documents/gnuradio/pybombs/mod_pybombs/cfg.py”, line 70, in
config_init if os.path.basename(pwd)==“pybombs”: File
“/usr/lib/python2.7/posixpath.py”, line 121, in basename i =
p.rfind(‘/’) + 1AttributeError: ‘NoneType’ object has no attribute
'rfind’rbell@polarcode1:~/Documents/gnuradio/pybombs$ *
If I install it without sudo to a local account directory, how will
other
users be able to access the install? Is it simply a matter of setting up
the environment variables correctly?
If I install it without sudo to a local account directory, how will
other users be able to access the install? Is it simply a matter of
setting up the environment variables correctly?
The idea is to install GNU Radio globally, and let users handle their
own modules in their own home directories. So you’d install GNU Radio
with sudo as root into /usr/local, and each user installs private
modules into /home//prefix
When does the error you paste below occur? Before you get the chance to
enter /usr/local as prefix, or after?
Anyway, I’d recommend deleting your pybombs folder and cloning it
cleanly again, running pybombs without root. It should ask you for the
prefix. after that, it should print a warning that you should re-run it
with sudo. Do that. Does the error still occur?
I deleted the pybombs folder and re-cloned pybombs from remote. When
running ‘sudo ./pybombs install gnuradio’ I still get the same error
output
when it reachees the prefix portion.
Also, I want to make sure I understand your following directions. To
install gnuradio on a computer so all user accounts have access to it, I
should do the following:
Install the base gnuradio framework to /usr/local/bin
Have users install custom modules they want to their local home
directories
I forgot to answer one of your previous questions. Yes the error occurs
before I have a chance to enter anything for the prefix. I have no
control
over it.
Thanks guys. I got it working eventually. All users on our station now
have
access to gnuradio.
There was no way I could get pybombs to create the config.dat file
itself
in /usr/local/bin. With sudo I had the prefix error problem and without
sudo it didn’t have permission to create the file. The workaround I used
was to create the config.dat file by hand. I copy and pasted one I had
on
another computer. That worked.