# Issues Installing From Source

**URL:** <https://www.ruby-forum.com/t/issues-installing-from-source/234436>\
**Category:** GNU Radio\
**Created:** [March 4, 2015, 4:42pm UTC](https://www.ruby-forum.com/t/issues-installing-from-source/234436 "2015-03-04T16:42:03Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [March 4, 2015, 4:42pm UTC](https://www.ruby-forum.com/t/issues-installing-from-source/234436/1 "2015-03-04T16:42:03Z")

</div>

Hello,

In the past, I’ve always used the build-gnuradio script to install  
everything with great success. This ensures that I have all the latest  
versions of both GNU Radio and UHD.

However, I recently got a new machine and installed Ubuntu 14.04 on it  
(I  
haven’t had any issues with 14.04 before). I updated the OS to the  
latest  
version and then tried using build-gnuradio. Immediately I started  
having  
issues. First, the script was unable to install git, cmake, and other  
dependencies. However, I was manually able to do a “sudo apt-get” on  
all  
of these packages and at least get to the point where the script tries  
to  
install UHD.

Now I’ve run into a strange issue where “make install” for UHD appears  
to  
put all the .hpp files in the right place, but the script fails because  
it  
can’t find the uhd\_find\_devices command. I’ve tried to manually make  
install UHD with the same effects. It tells me that all the .hpp files  
are  
in the correct directory, but I still cannot locate the uhd\_find\_devices  
command. Note that running build-gnuradio with the verbose flag set  
didn’t  
throw any errors that I can see.

Has anyone experienced similar issues? Does the simple “sudo apt-get  
install gnuradio” command install the latest versions of UHD and GNU  
Radio? I am also leaning towards trying a PyBOMBS based install. That  
said, I don’t think I’m doing anything differently this time around and  
I’ve always had good luck with using build-gnuradio.

Thanks in advance for the help.

---

<div class="post-metadata">

**Author:** ![woodzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/f08c70/32.png) [@woodzer](https://www.ruby-forum.com/u/woodzer)\
**Post date:** [March 4, 2015, 4:46pm UTC](https://www.ruby-forum.com/t/issues-installing-from-source/234436/2 "2015-03-04T16:46:59Z")

</div>

Peter,

PyBOMBS will most likely work, although it defaults to installing  
everything in your home dir (which is recommended for development, but  
different from build-gnuradio). apt-get install gnuradio will get you a  
fairly recent GNU Radio, but the UHD version in there is quite old.

I can’t say why your build is failing, though. Can you search for  
uhd\_find\_devices, and if so, where is it?

M

---

<div class="post-metadata">

**Author:** ![woodzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/f08c70/32.png) [@woodzer](https://www.ruby-forum.com/u/woodzer)\
**Post date:** [March 4, 2015, 5:44pm UTC](https://www.ruby-forum.com/t/issues-installing-from-source/234436/3 "2015-03-04T17:44:51Z")

</div>

On 03/04/2015 10:40 AM, Peter W. wrote:

> cmake, and other dependencies. However, I was manually able to do a  
> “sudo apt-get” on all of these packages and at least get to the point  
> where the script tries to install UHD.  
> This is the first I’ve heard of it having problems doing the pre-req  
> installs. If you run build-gnuradio with -v, you get more details about  
> why.  
> If the underlying OS tooling is falling over, there’s very little  
> that build-gnuradio can do about it. It has as much  
> troubleshoot-and-repair  
> ability as a moribund gnat.

---

<div class="post-metadata">

**Author:** ![woodzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/f08c70/32.png) [@woodzer](https://www.ruby-forum.com/u/woodzer)\
**Post date:** [March 4, 2015, 5:17pm UTC](https://www.ruby-forum.com/t/issues-installing-from-source/234436/4 "2015-03-04T17:17:09Z")

</div>

As a sanity check, I just went through and followed the build  
instructions  
for UHD found here: [USRP Hardware Driver and USRP Manual: Building and Installing UHD from source](http://files.ettus.com/manual/page_build_guide.html)

After the make install, I ran a find for uhd\_find\_devices and nothing  
came  
up.

On Wed, Mar 4, 2015 at 10:45 AM, Martin B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![woodzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/f08c70/32.png) [@woodzer](https://www.ruby-forum.com/u/woodzer)\
**Post date:** [March 5, 2015, 8:04am UTC](https://www.ruby-forum.com/t/issues-installing-from-source/234436/5 "2015-03-05T08:04:04Z")

</div>

I am afraid I did not document this, but I ran into similar issues with  
the  
script and Kubuntu 14.04. However doing it all by hand, resolving  
dependencies, load uhd and gnuradio sources, compile the stuff,  
installing  
udev rules, installing the gnuradio icons by hand and such, this all was  
not  
a big deal, and in some cases I simply read the script as a manual how  
to do  
it.

Pybombs is something I could not become friends with yet. For many  
people it  
seems to work, for me all attempts were disastreous.

Ralph.

> > where the script tries to install UHD.  
> > This is the first I’ve heard of it having problems doing the pre-req  
> > installs. If  
> > you run build-gnuradio with -v, you get more details about why.  
> > If the underlying OS tooling is falling over, there’s very little that  
> > build-

---

<div class="post-metadata">

**Author:** ![woodzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/f08c70/32.png) [@woodzer](https://www.ruby-forum.com/u/woodzer)\
**Post date:** [March 5, 2015, 9:17am UTC](https://www.ruby-forum.com/t/issues-installing-from-source/234436/6 "2015-03-05T09:17:28Z")

</div>

Hello Peter

I had installed yesterday on my laptop with Ubuntu 14.04  
I tried using WGET… but I got the similar problems like you  
regarding the git…  
So, I have installed it from source and haven’t got any problem.

You can follow these steps for installing it from source

Thee are two methods to install but I preferred to install it from  
source

1)Install Dependencies:

//Copy the below commands and paste it in terminal(all at a single  
time)//  
sudo apt-get -y install libfontconfig1-dev libxrender-dev libpulse-dev  
swig  
g++ automake autoconf libtool python-dev libfftw3-dev libcppunit-dev  
libboost-all-dev libusb-dev fort77 sdcc sdcc-libraries libsdl1.2-dev  
python-wxgtk2.8 git-core guile-1.8-dev libqt4-dev python-numpy ccache  
python-opengl libgsl0-dev python-cheetah python-lxml doxygen  
qt4-dev-tools  
libqwt5-qt4-dev libqwtplot3d-qt4-dev pyqt4-dev-tools python-qwt5-qt4

2)Install prerequesties for UHD  
sudo apt-get install libboost-all-dev libusb-1.0-0-dev python-cheetah  
doxygen python-docutils cmake

3)Installing UHD from git  
git clone git://github.com/EttusResearch/uhd.git

4)Cmake for UHD  
//Follow these commands step by stp//  
cd uhd/host/  
mkdir build  
cd build/  
cmake …/

1. //Check the output of above one regarding the disabled components.  
Based  
upon our requirement we should select the USRP.//  
For example: cmake -DENABLE\_USRP\_E\_UTILS=ON -DENABLE\_E100=ON …/

6)make

7)Installing UHD and setting library path  
make test(check whether it shows 100% or not)  
sudo make install  
cd  
sudo gedit .bashrc

8)//Add this after HISTCONTROL=ignoredups:ignorespace//

export LD\_LIBRARY\_PATH=$LD\_LIBRARY\_PATH:usr/local/lib

//Save it and close//

9)git clone [gnuradio.git - GNU Radio](http://gnuradio.org/git/gnuradio.git)  
///This will take some time Can take even more than 2hrs////

cd gnuradio/  
mkdir build/  
cd build/  
cmake …/  
make  
make test  
sudo make install  
sudoldconfig  
cd  
cd /usr/local/lib/python2.6/dist-packages/  
pwd  
//copy the path//  
cd  
sudo gedit .bashrc

1. In 8th step we have added a path, after that one add

export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/dist-packages

//if u prefer python 3.0 then u can add 3.0//  
//Save it and close//

11)sudo ldconfig

12)sudo apt-get install gnuradio-companion

Note:  
1)If you get any error related to dpkg then run the command as suggested  
in  
the error.

2)Installation can take around 2hours and it depends upon the speed of  
your  
internet

I hope it could help you

Regards  
Krishna

On Thu, Mar 5, 2015 at 4:02 PM, Ralph A. Schmid, dk5ras  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![woodzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/f08c70/32.png) [@woodzer](https://www.ruby-forum.com/u/woodzer)\
**Post date:** [March 5, 2015, 5:44pm UTC](https://www.ruby-forum.com/t/issues-installing-from-source/234436/7 "2015-03-05T17:44:40Z")

</div>

Are you guys avoiding pybombs for a reason, or do you just not feel  
comfortable with it? If you’re aware of pybombs and have a reason for  
avoiding it, then stop reading here.

Pybombs works really well on Ubuntu 14.04. I’ve installed UHD + GnuRadio  
on  
multiple machines without a problem. Using it to install all  
dependencies  
and UHD and GnuRadio is as simple as the following few lines of code:

1. cd to the directory of your choice
2. git clone [GitHub - gnuradio/pybombs: PyBOMBS (Python Build Overlay Managed Bundle System) is the GNU Radio install management system for resolving dependencies and pulling in out-of-tree projects.](https://github.com/pybombs/pybombs.git) && cd pybombs
3. ./pybombs install gnuradio (this will install all dependencies needed  
for gnuradio including uhd)
4. ./pybombs env (creates an environment variables file for you)
5. add this to your .bashrc or .bash\_aliases file, whichever you use:  
source /\<path\_to\_step1\_directory\>/target/setup\_env.sh
6. start her up: gnuradio-companion

That’s all there is to it.

Hope that helps,  
Rich

---

<div class="post-metadata">

**Author:** ![woodzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/f08c70/32.png) [@woodzer](https://www.ruby-forum.com/u/woodzer)\
**Post date:** [March 5, 2015, 11:02pm UTC](https://www.ruby-forum.com/t/issues-installing-from-source/234436/8 "2015-03-05T23:02:51Z")

</div>

All,

My hesitation to use PyBOMBS was only a function of the fact that I’ve  
have  
had really good success using the build-gnuradio script in the past.  
I’ve  
deployed GNU Radio and UHD using Marcus’s awesome script several times  
and  
never had an issue.

Also, I can confirm that the problem (at least on my end) is tied to  
Ubuntu  
14.4.2 (released a few weeks ago). When I did a clean install of  
14.4.1,  
the script ran just fine. The problem can be duplicated by installing  
14.4.2 (using the latest download from the Ubuntu site) and then  
attempting  
to follow the install instructions. I detailed the symptoms I was  
experiencing in my original e-mail. Note that even with -v enabled, no  
errors were printed. It looked like it was installing all the  
prerequisites, but then later said it couldn’t find git, cmake, etc.

The really weird thing (and this makes me think that Ubuntu might have  
something up with their current install ISO) is that if I install 14.4.1  
from CD and then patch it to the latest version, I can still run  
build-gnuradio just fine.

On Thu, Mar 5, 2015 at 11:42 AM, Richard B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![woodzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/f08c70/32.png) [@woodzer](https://www.ruby-forum.com/u/woodzer)\
**Post date:** [March 5, 2015, 5:09pm UTC](https://www.ruby-forum.com/t/issues-installing-from-source/234436/9 "2015-03-05T17:09:28Z")

</div>

So, if I could get an actual, detailed, error-report when build-gnuradio  
fails, I can look into fixing it.

It has worked well on Ubuntu 14.04 since 14.04 was released, but it may  
be the case that some system update changed something that buggered up  
an assumption that build-gnuradio is making. But without a complete log  
of a “-v” run,  
I have no way of figuring out what’s going wrong.

On 2015-03-05 03:15, krishnachand leela wrote:

> //Copy the below commands and paste it in terminal(all at a single time)//  
> cd uhd/host/  
> make test(check whether it shows 100% or not)  
> 9)git clone [gnuradio.git - GNU Radio](http://gnuradio.org/git/gnuradio.git) [3]  
> cd  
> //if u prefer python 3.0 then u can add 3.0//  
> I hope it could help you
> 
> > a big deal, and in some cases I simply read the script as a manual how to do
> > 
> > > Marcus D. Leech
> > > 
> > > > 
> > > 
> > > If the underlying OS tooling is falling over, there’s very little that  
> > > 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) [1]
> 
> * * *
> 
> 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) [1]

Links:

---

<div class="post-metadata">

**Author:** ![woodzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/f08c70/32.png) [@woodzer](https://www.ruby-forum.com/u/woodzer)\
**Post date:** [March 5, 2015, 11:43pm UTC](https://www.ruby-forum.com/t/issues-installing-from-source/234436/10 "2015-03-05T23:43:30Z")

</div>

This might be related to an issue I ran into with 14.04.2 when making  
the  
Live SDR images based on that.

If you install 14.04.2 from CD, then do:

$ apt-get install libgl1-mesa-dev-lts-utopic mesa-common-dev-lts-utopic

…then try build-gnuradio, does it work?

On Thu, Mar 5, 2015 at 2:01 PM, Peter W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![woodzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/f08c70/32.png) [@woodzer](https://www.ruby-forum.com/u/woodzer)\
**Post date:** [March 5, 2015, 11:45pm UTC](https://www.ruby-forum.com/t/issues-installing-from-source/234436/11 "2015-03-05T23:45:08Z")

</div>

On Thu, Mar 5, 2015 at 2:41 PM, Johnathan C.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

$ apt-get install libgl1-mesa-dev-lts-utopic mesa-common-dev-lts-utopic

> 

That would be ‘sudo apt-get install …’
