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:
$ sudo pacman -S fftw wxpython libusb guile swig cppunit boost portaudio sdl gputils alsa-utils
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
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
$ sudo pacman -U sdcc-XXX.pkg.tar.gz sdcc-2.7.0-2-i686.pkg.tar.gz
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
$ sudo pacman -R gcc
$ yaourt -S sdcc sudo pacman -Rd gcc
if you run into dependency problems. Now Install the older GCC
$ sudo pacman -U gcc-4.2.3-1-i686.pkg.tar.gz
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:
$ sudo pacman -Rd python
$ sudo pacman -U python-2.5.2-2-i686.pkg.tar.gz
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-18.104.22.168-1-i686.pkg.tar.gz from one of the Archlinux wiki:http://wiki.archlinux.org/index.php/Downgrade_packages
Uninstall the current one, install the downloaded one.
$ sudo pacman -R wxpython
$ sudo pacman -U wxpython-22.214.171.124-1-i686.pkg.tar.gz
h3. Build gnuradio
Now you can unpack and build gnuradio normally ala:
$ make check
$ sudo make install.
(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