beautypg.com

B&B Electronics 3PCIOU4 - Manual User Manual

Page 27

background image

Installing Linux Driver Software

Document Number 3PCI-0712m

Chapter 5

21

Ubuntu 10.04 Server (32-bit and 64-bit)

1. Determine which version of GCC built the current Linux kernel.

username@computer$ cat /proc/version

Linux version 2.6.32-21-server (buildd@yellow) (gcc version 4.4.3

(Ubuntu 4.4.3-4ubuntu5) ) #32-Ubuntu SMP Fri Apr 16 09:17:34 UTC 2010

The current Linux kernel was built using GCC v4.4.3.

2. Install the version of GCC that built the current Linux kernel.

username@computer$ sudo apt-get update

:

:
Fetched 12.0MB in 50s (237kB/s)
Reading package lists... Done

username@computer$ sudo apt-get install gcc-4.4 gcc

Reading package lists... Done
Building dependency tree
Reading state information... Done

The following extra packages will be installed:
binutils gcc-4.4 libc-bin libc-dev-bin libc6 libc6-dev libgomp1 linux-
libc-dev manpages-dev

:
:
After this operation, 35.3MB of additional disk space will be used.

Do you want to continue [Y/n]? y

:
:

Setting up binutils (2.20.1-3ubuntu7) ...
Setting up libgomp1 (4.4.3-4ubuntu5) ...
Setting up gcc-4.4 (4.4.3-4ubuntu5) ...

Setting up gcc (4:$.4.3-1ubuntu1) ...
Setting up libcdev-bin (2.11.1-0ubuntu7.5) ...
Setting up linux-libc-dev (2.6.32-25.45) ...

Setting up libc6-dev (2.11.1-0ubuntu7.5) ...

3. Get the version of the Linux kernel.

username@computer$ uname -r

2.6.32-21-server

4. Install the Linux kernel headers for the current Linux kernel. In the command below, the part
after “linux-headers-” should match the output of the command above.