ArchInstall

Version 23 (Guest User, 11/04/2008 05:35 pm) → Version 24/31 (Jared Casper, 02/19/2010 08:25 pm)


h2. Installing on Arch Linux

Not long ago, it wasn't too hard to install gnuradio on Arch Linux. Now days, you have to downgrade a bunch of packages to make it all work.


Install the dependencies using pacman:
<pre>

$ sudo pacman -S fftw wxpython libusb guile swig cppunit boost portaudio sdl gputils alsa-utils
</pre>

You'll want alsa-utils to pot up your soundcard's output.



h3. Build and install sdcc



To build install sdcc, download and extract the package from the AUR http://aur.archlinux.org/packages.php?ID=6671 attached "PKGBUILD":http://gnuradio.org/trac/attachment/wiki/ArchInstall/PKGBUILD?format=raw and run
<pre>

$ makepkg
</pre>
from the folder to which it was downloaded.
Placing it into its own folder is recommended, as running makepkg creates some files.

in the sdcc directory.

Once building is complete, you may need to install gputils if you haven't done so already.
To install sdcc, run
<pre>

$ sudo pacman -U sdcc-XXX.pkg.tar.gz sdcc-2.7.0-2-i686.pkg.tar.gz
</pre>

h3. Downgrade to GCC 4.2.3

It is worth mentioning that at the time of this writing, gnuradio still does not build on
GCC 4.3, so downgrading is necessary. Navigate to "the Archlinux wiki":http://wiki.archlinux.org/index.php/Downgrade_packages

replacing XXX with whatever package version and architecture was built.

If you have yaourt installed you can build and install using:
find a mirror that has gcc-4.2.3-1-i686.pkg.tar.gz. You may need to uninstall your current GCC by running
<pre>
$ sudo pacman -R gcc

</pre>
or
<pre>
$ yaourt -S sdcc sudo pacman -Rd gcc
</pre>


if you run into dependency problems. Now Install the older GCC
with
<pre>
$ sudo pacman -U gcc-4.2.3-1-i686.pkg.tar.gz
</pre>

h3. Downgrading

It may be
Downgrade to Python 2.5

On a similar note, GNU Radio will also not run properly with Python 2.6, so it is
necessary to downgrade some packages, as Arch typically has to Python 2.5. This can be done by following the very latest gcc same mirror links, and downloading python-2.5.2-2-i686.pkg.tar.gz.
Uninstall existing
python, if already installed, and gnuradio may not be ported install the downloaded package:
<pre>
$ sudo pacman -Rd python
$ sudo pacman -U python-2.5.2-2-i686.pkg.tar.gz
</pre>

h3. Downgrade
to the latest versions yet. For instructions wxWidgets 2.8.7

wxWidgets depends
on how to do so consult a specific version of Python.
Download wxpython-2.8.7.1-1-i686.pkg.tar.gz from one of
the Archlinux wiki:http://wiki.archlinux.org/index.php/Downgrade_packages

mirrors.
Uninstall the current one, install the downloaded one.
<pre>
$ sudo pacman -R wxpython
$ sudo pacman -U wxpython-2.8.7.1-1-i686.pkg.tar.gz
</pre>

h3. Build gnuradio



Now you can unpack and build gnuradio normally ala:
<pre>

$ ./configure
$ make
$ make check
$ sudo make install.
</pre>

(Don't forget to run ./bootstrap if building from the git subversion repository)



h3. Add paths to your .bashrc



You'll need to have these environment variables set in order to run the examples, so you can put these in your ~/.bashrc
<pre>
PYTHONPATH=/usr/local/lib/python2.5/site-packages

PYTHONPATH=/usr/local/lib/python2.6/site-packages
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
</pre>