Makefile:130: *** Compiler not found. Stop.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-2.6.31-14 linux-headers-2.6.31-14-server
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
binutils dpkg-dev fakeroot g++ g++-4.4 gcc gcc-4.4 libc-dev-bin libc6-dev libgomp1 libstdc++6-4.4-dev
linux-libc-dev
Suggested packages:
binutils-doc debian-keyring debian-maintainers g++-multilib g++-4.4-multilib gcc-4.4-doc
libstdc++6-4.4-dbg gcc-multilib manpages-dev autoconf automake1.9 libtool flex bison gdb gcc-doc
gcc-4.4-multilib libmudflap0-4.4-dev gcc-4.4-locales libgcc1-dbg libgomp1-dbg libmudflap0-dbg
libcloog-ppl0 libppl-c2 libppl7 glibc-doc libstdc++6-4.4-doc
The following NEW packages will be installed:
binutils build-essential dpkg-dev fakeroot g++ g++-4.4 gcc gcc-4.4 libc-dev-bin libc6-dev libgomp1
libstdc++6-4.4-dev linux-libc-dev
0 upgraded, 13 newly installed, 0 to remove and 5 not upgraded.
Need to get 15.9MB of archives.
After this operation, 57.1MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Fetched 15.9MB in 6s (2,276kB/s)
Selecting previously deselected package binutils.
(Reading database ... 78351 files and directories currently installed.)
Unpacking binutils (from .../binutils_2.20-0ubuntu2_amd64.deb) ...
Selecting previously deselected package libc-dev-bin.
Unpacking libc-dev-bin (from .../libc-dev-bin_2.10.1-0ubuntu16_amd64.deb) ...
Selecting previously deselected package linux-libc-dev.
Unpacking linux-libc-dev (from .../linux-libc-dev_2.6.31-19.56_amd64.deb) ...
Selecting previously deselected package libc6-dev.
Unpacking libc6-dev (from .../libc6-dev_2.10.1-0ubuntu16_amd64.deb) ...
Selecting previously deselected package libgomp1.
Unpacking libgomp1 (from .../libgomp1_4.4.1-4ubuntu9_amd64.deb) ...
Selecting previously deselected package gcc-4.4.
Unpacking gcc-4.4 (from .../gcc-4.4_4.4.1-4ubuntu9_amd64.deb) ...
Selecting previously deselected package gcc.
Unpacking gcc (from .../gcc_4%3a4.4.1-1ubuntu2_amd64.deb) ...
Selecting previously deselected package libstdc++6-4.4-dev.
Unpacking libstdc++6-4.4-dev (from .../libstdc++6-4.4-dev_4.4.1-4ubuntu9_amd64.deb) ...
Selecting previously deselected package g++-4.4.
Unpacking g++-4.4 (from .../g++-4.4_4.4.1-4ubuntu9_amd64.deb) ...
Selecting previously deselected package g++.
Unpacking g++ (from .../g++_4%3a4.4.1-1ubuntu2_amd64.deb) ...
Selecting previously deselected package dpkg-dev.
Unpacking dpkg-dev (from .../dpkg-dev_1.15.4ubuntu2_all.deb) ...
Selecting previously deselected package build-essential.
Unpacking build-essential (from .../build-essential_11.4_amd64.deb) ...
Selecting previously deselected package fakeroot.
Unpacking fakeroot (from .../fakeroot_1.12.4ubuntu1_amd64.deb) ...
Processing triggers for man-db ...
Setting up binutils (2.20-0ubuntu2) ...
Setting up libc-dev-bin (2.10.1-0ubuntu16) ...
Setting up linux-libc-dev (2.6.31-19.56) ...
Setting up libc6-dev (2.10.1-0ubuntu16) ...
Setting up libgomp1 (4.4.1-4ubuntu9) ...
Setting up gcc-4.4 (4.4.1-4ubuntu9) ...
Setting up gcc (4:4.4.1-1ubuntu2) ...
Setting up dpkg-dev (1.15.4ubuntu2) ...
Setting up fakeroot (1.12.4ubuntu1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode.
Setting up libstdc++6-4.4-dev (4.4.1-4ubuntu9) ...
Setting up g++-4.4 (4.4.1-4ubuntu9) ...
Setting up g++ (4:4.4.1-1ubuntu2) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode.
Setting up build-essential (11.4) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
で、再び。
# make install
make -C /lib/modules/2.6.31-19-server/build SUBDIRS=/home/nao/e1000e-1.1.2.1a/src modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.31-19-server'
CC [M] /home/nao/e1000e-1.1.2.1a/src/netdev.o
CC [M] /home/nao/e1000e-1.1.2.1a/src/ethtool.o
CC [M] /home/nao/e1000e-1.1.2.1a/src/param.o
CC [M] /home/nao/e1000e-1.1.2.1a/src/e1000_82571.o
CC [M] /home/nao/e1000e-1.1.2.1a/src/e1000_ich8lan.o
CC [M] /home/nao/e1000e-1.1.2.1a/src/e1000_80003es2lan.o
CC [M] /home/nao/e1000e-1.1.2.1a/src/e1000_mac.o
CC [M] /home/nao/e1000e-1.1.2.1a/src/e1000_nvm.o
CC [M] /home/nao/e1000e-1.1.2.1a/src/e1000_phy.o
CC [M] /home/nao/e1000e-1.1.2.1a/src/e1000_manage.o
CC [M] /home/nao/e1000e-1.1.2.1a/src/kcompat.o
LD [M] /home/nao/e1000e-1.1.2.1a/src/e1000e.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/nao/e1000e-1.1.2.1a/src/e1000e.mod.o
LD [M] /home/nao/e1000e-1.1.2.1a/src/e1000e.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-19-server'
gzip -c ../e1000e.7 > e1000e.7.gz
# remove all old versions of the driver
find /lib/modules/2.6.31-19-server -name e1000e.ko -exec rm -f {} \; || true
find /lib/modules/2.6.31-19-server -name e1000e.ko.gz -exec rm -f {} \; || true
install -D -m 644 e1000e.ko /lib/modules/2.6.31-19-server/kernel/drivers/net/e1000e/e1000e.ko
/sbin/depmod -a || true
install -D -m 644 e1000e.7.gz /usr/share/man/man7/e1000e.7.gz
man -c -P'cat > /dev/null' e1000e || true
man:
cannot write to /var/cache/man/cat7/e1000e.7.gz in catman mode
e1000e.
# apt-get install ethtool
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-2.6.31-14 linux-headers-2.6.31-14-server
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
ethtool
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 72.1kB of archives.
After this operation, 270kB of additional disk space will be used.
Fetched 72.1kB in 0s (349kB/s)
Selecting previously deselected package ethtool.
(Reading database ... 80676 files and directories currently installed.)
Unpacking ethtool (from .../ethtool_6+20090307-1_amd64.deb) ...
Processing triggers for man-db ...
Setting up ethtool (6+20090307-1) ...
# chmod 755 netdriverinfo.sh
# ./netdriverinfo.sh
bash: ./netdriverinfo.sh: /bin/bash^M: bad interpreter: No such file or directory
# apt-get install nkf
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-2.6.31-14 linux-headers-2.6.31-14-server
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
nkf
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 121kB of archives.
After this operation, 311kB of additional disk space will be used.
Fetched 121kB in 0s (284kB/s)
Selecting previously deselected package nkf.
(Reading database ... 80688 files and directories currently installed.)
Unpacking nkf (from .../nkf_2.07-1build1_amd64.deb) ...
Processing triggers for man-db ...
Setting up nkf (2.07-1build1) ...
そして、CR+LFからLFへ変換します。
# nkf -Lu ./netdriverinfo.sh >./netdriverinfo2.sh