This Blog is AD Driven, if you enjoy the technical notes please help out and click a link or two.

Thursday, September 3, 2009

HowTo Install FLDigi from source code on Ubuntu 9.04 x86_64 for the Yaesu FT-2000/D Part 1

+

Download:
linuxhamdev1.sh

#!/bin/bash

# Authored for linuxhamdev.blogspot.com by k6***
# Use at your own risk, no warranty at all.

# My Hardware configuration:
#
# Ubuntu Server 9.04 X64 on a Dell Precision Workstation 380.
# CPU: Intel Pentium D CPU 2.80GHz-HT
# RAM: 1.5GB
#
# Yaesu FT-2000 HF+50MHz
#
# Interfaces:
# 1 PCI Creative Labs SB Live
# * 05:04.1 Input device controller: Creative Labs SB Live! Game Port (rev 07)
#
# 2 Port PCI Lava Serial port card.
# * 05:05.0 Serial controller: Lava Computer mfg Inc Lava Port Plus
#
# 1 RigBlaster Nomic
#
# 2 USB-to-Serial Adapters.
# * ID 050d:0109 Belkin Components F5U109/F5U409 PDA Adapter
#
#
#
# The software install:
#
# login in as the ROOT User with sudo.
#
# linuxhamdev@linux-box:~$ sudo bash
# [sudo] password for linuxhamdev:

echo "This script should be run from the root account. try: sudo bash"

# Confirm that the login worked.
#
# root@linux-box:~# id
# uid=0(root) gid=0(root) groups=0(root)
echo " "
echo "Your account ID is:"
id
echo " "
echo "Hit Control-c if your not uid=0 and login as root"

# Hit Enter to continue.
read page


# Get the needed software for hamlib and fldigi.
# Ubuntu's version of hamlib does not support the Yaesu FT-2000/D.
# So we need to download the latest one from SourceForge.net.

# Change to the /usr/local/src directory to download and install the source code.
cd /usr/local/src

# Download HamLib
wget http://downloads.sourceforge.net/hamlib/hamlib-1.2.9.tar.gz

# Download Fldigi source code with wget.
# http://www.w1hkj.com/fldigi-distro/
wget http://www.w1hkj.com/fldigi-distro/fldigi-3.12.4.tar.gz

# Extract the source code.
tar -zxf hamlib-1.2.9.tar.gz

# Extract the source code.
tar -zxf fldigi-3.12.4.tar.gz

echo "After reading the configure output for hamlib, I have determined"
echo "that I need to add the following software."
echo " "
echo " * libxml2-dev - Development files for the GNOME XML library"
echo " * tcl - The Tool Command Language (default version) - run-time files"
echo " * tcl-dev - The Tool Command Language (default version) - development files"
echo " * libfltk1.1-dev - Fast Light Toolkit - development files"
echo " * libxmlrpc-c3-dev - A lightweight RPC library based on XML and HTTP for C and C++"
echo " * pulseaudio - PulseAudio sound server"
echo " * libpulse-dev - PulseAudio client development headers and libraries"
echo " * portaudio19-dev - Portable audio I/O - development files"
echo " * libsndfile1-dev - Library for reading/writing audio files"
echo " * libpng12-dev - PNG library - development"
echo " * libjpeg62-dev - Development files for the IJG JPEG library"
echo " * libsamplerate0-dev - Development files for audio rate conversion (libsamplerate)"
echo " * libusb++-dev - userspace USB programming library development files"
echo " "
echo " Hit Enter to install some basic software dependencies"
read page

# Install the software all-in-one shot with the apt-get command.
apt-get -y install libxml2-dev tcl tcl-dev libfltk1.1-dev libxmlrpc-c3-dev \
pulseaudio libpulse-dev portaudio19-dev libsndfile1-dev libpng12-dev \
libjpeg62-dev libsamplerate0-dev libusb++-dev

# Symbolically Link the python includes directory so Hamlib can find it.
# The standard Ubuntu install does not have the needed python link by default.
ln -s /usr/include/python2.5/ /usr/include/python

# The above sections address some of the basic software dependencies and
# path issues raised by configure for Hamlib.
# If you find some features to be missing or unwanted, you will need
# to reconfigure and reinstall Hamlib.
cd /usr/local/src/hamlib-1.2.9
./configure

# Build and install HamLib all-in-one shot.
make; make install

# Step one has finished, hopefully you have a working Hamlib install.
# To remove the hamlib install do the following.
# cd /usr/local/src/hamlib-1.2.9
# make uninstall
# Just remember hamlib is a dependency for Fldigi.
echo " "
echo "Hamlib installed"

No comments:

Post a Comment