PDA

View Full Version : [ubuntu] Build gnu radio



bahermawlawi
February 18th, 2012, 10:43 PM
I want to build gnu radio but before building i need to install some dependencies.
I am using ubuntu 11.04.
This is an example of my problem..Thanks for your help.

sudo apt-get install git-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package git-core
sudo apt-get install autoconf
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package autoconf is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Rodney9
February 18th, 2012, 11:09 PM
gnuradio is available in Synaptic, much easier then trying to build it.

Rodney

bahermawlawi
February 19th, 2012, 02:19 AM
I know but I want to build since i am not end user.
Thanks any way.

lkraemer
February 19th, 2012, 03:29 PM
From the GNU Radio Web Site for Ubuntu 11.04:
http://gnuradio.org/redmine/projects/gnuradio/wiki/UbuntuInstall

To execute the script copy & paste the relevant command line into a terminal.


Install Dependencies

The following command line scripts will install all the required dependencies. Before running them you should ensure that the Universe repository are enabled in "Software Sources".



sudo apt-get -y install git-core autoconf automake libtool g++ python-dev swig \
pkg-config libboost-all-dev libfftw3-dev libcppunit-dev libgsl0-dev \
libusb-dev sdcc libsdl1.2-dev python-wxgtk2.8 python-numpy \
python-cheetah python-lxml doxygen python-qt4 python-qwt5-qt4 libxi-dev \
libqt4-opengl-dev libqwt5-qt4-dev libfontconfig1-dev libxrender-dev


I'd suggest you use the stable release tarball versus the BLEEDING Edge Code from the git. But, that
is your choice.......Then refer to:

III. Start the build process
at http://gnuradio.org/redmine/projects/gnuradio/wiki/BuildGuide

Also since you are going to compile code you also need the Linux Headers and Build-Essential installed. You also, most likely need to setup your
environment for the correct paths, so the Linker finds the LIB's.
(You can always try the Compile and see if it works and correct the errors, as you go, if needed).

REF:
http://ubuntuforums.org/showthread.php?t=1908852&highlight=build-essential
Posting #2

If you can compile the Stable Code, then you can always try the Development Code.

If you have never compiled any code you are likely in for a Long Haul.

You may also need to set up your Environment, so your LIB's are found.

lk

bahermawlawi
February 19th, 2012, 07:39 PM
Thank you...I know these things..But my problem is in the first step..
I have errors with git installer..(see red characters as input and errors)

sudo apt-get install git-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package git-core
sudo apt-get install autoconf
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package autoconf is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

lkraemer
February 20th, 2012, 04:00 AM
Are you 100% sure that the Universe repository are enabled in "Software Sources"?

lk

bahermawlawi
February 20th, 2012, 02:37 PM
How can I be sure?
Thanks

bahermawlawi
February 20th, 2012, 03:08 PM
sudo add-apt-repository ppa:pdoes/ppa/ubuntu

Error reading https://launchpad.net/api/1.0/~pdoes/+archive/ppa: (https://launchpad.net/api/1.0/%7Epdoes/+archive/ppa:) <urlopen error [Errno 113] No route to host>

bahermawlawi
February 20th, 2012, 03:22 PM
And i have these errors:
$ sudo apt-get update
Err http://ppa.launchpad.net natty InRelease

Err http://extras.ubuntu.com natty InRelease

Err http://ppa.launchpad.net natty InRelease

Err http://extras.ubuntu.com natty Release.gpg
Unable to connect to extras.ubuntu.com:http:
Err http://ppa.launchpad.net natty Release.gpg
Unable to connect to ppa.launchpad.net:http:
Err http://fr.archive.ubuntu.com natty InRelease

Err http://fr.archive.ubuntu.com natty-updates InRelease

Err http://ppa.launchpad.net natty Release.gpg
Unable to connect to ppa.launchpad.net:http:
Err http://fr.archive.ubuntu.com natty Release.gpg
Unable to connect to fr.archive.ubuntu.com:http:
Err http://fr.archive.ubuntu.com natty-updates Release.gpg
Unable to connect to fr.archive.ubuntu.com:http:
Err http://archive.canonical.com natty InRelease

Err http://security.ubuntu.com natty-security InRelease

Err http://security.ubuntu.com natty-security Release.gpg
Unable to connect to security.ubuntu.com:http: [IP: 91.189.92.166 80]
Err http://archive.canonical.com natty Release.gpg
Unable to connect to archive.canonical.com:http: [IP: 91.189.92.191 80]
Reading package lists... Done
W: Failed to fetch http://fr.archive.ubuntu.com/ubuntu/dists/natty/InRelease

W: Failed to fetch http://fr.archive.ubuntu.com/ubuntu/dists/natty-updates/InRelease

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/natty-security/InRelease

W: Failed to fetch http://archive.canonical.com/ubuntu/dists/natty/InRelease

W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/natty/InRelease

W: Failed to fetch http://ppa.launchpad.net/pdoes/ppa/ubuntu/dists/natty/InRelease

W: Failed to fetch http://ppa.launchpad.net/yorba/ppa/ubuntu/dists/natty/InRelease

W: Failed to fetch http://ppa.launchpad.net/pdoes/ppa/ubuntu/dists/natty/Release.gpg Unable to connect to ppa.launchpad.net:http:

W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/natty/Release.gpg Unable to connect to extras.ubuntu.com:http:

W: Failed to fetch http://ppa.launchpad.net/yorba/ppa/ubuntu/dists/natty/Release.gpg Unable to connect to ppa.launchpad.net:http:

W: Failed to fetch http://fr.archive.ubuntu.com/ubuntu/dists/natty/Release.gpg Unable to connect to fr.archive.ubuntu.com:http:

W: Failed to fetch http://fr.archive.ubuntu.com/ubuntu/dists/natty-updates/Release.gpg Unable to connect to fr.archive.ubuntu.com:http:

W: Failed to fetch http://archive.canonical.com/ubuntu/dists/natty/Release.gpg Unable to connect to archive.canonical.com:http: [IP: 91.189.92.191 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/natty-security/Release.gpg Unable to connect to security.ubuntu.com:http: [IP: 91.189.92.166 80]

W: Some index files failed to download. They have been ignored, or old ones used instead.

lkraemer
February 21st, 2012, 05:46 AM
Check your settings for:
SYSTEM -> ADMINISTRATION -> SOFTWARE SOURCES
and check all except source code, and server for United States.

If those are checked you have Mulit-Universe enabled.
This was on Ubuntu 10.04 LTS.

lk