• 締切済み

PCI-EXpressのLANボード増設方法について

PCI-EXpress版LANボードの増設に伴い、ドライバーのインストール方法がわかりません。 何かわかる方がいましたら教えて下さい。 宜しくお願い致します。  (環境)  LANボード:SysKonnect SK-9E21D  マシン:4700C(DELL)  OS:linux(フェドラコア3)  カーネルVer:2.4.20-8  (現状)  install.sh起動  カーネルのソースが無い事が原因でエラー  となっていたので  redhatのサイトよりダウンロードした  カーネルのソースを/usr/src/redhatに  コピーしました。(kernel-2.4.20-8.src.rpmのみ)  結果は変わりません。  (includeファイルが見つかりません。)  (エラー内容)  Check kernel header files (not found)  Kernel header not found. Please install  the linux header files  development package or crate asymbolic link  from the /usr/src/KERNEL_VERSION  directory to linux   Example:   ln -s /usr/src/KERNEL_VERSION /usr/src/linux

みんなの回答

  • entree
  • ベストアンサー率55% (405/735)
回答No.1

それで、エラーに書かれていることはもう実践されたんですか? >   Example: >   ln -s /usr/src/KERNEL_VERSION /usr/src/linux

yoshio_n
質問者

補足

実践しました。 下記の状態となりインストールする事ができません。 version.hのバージョンが違う事が原因というのはwかるのですが、kernel2.6の(インクルードファイル)version.hの入手方法がわかりません。 何かわかりましたら教えていただけませんか。 Execute: make oldconfig (done)) [ OK ] diff: /usr/src/linux/.config: Check kernel header version (Kernel:2.6.9-1.667 != Header:2.4.20) [ OK ] Save old version.h (saved) [ OK ] Check and create new version.hThere is a mismatch between the current running ke rnel and the header files the kernel module will be compiled with. For instance, it might be, that you run kernel version 2.4.20, but the header files the kernel module will be compiled with refer to kernel version 2.4.21 Due to this mismatch, you will not be able to load the driver without the force option (insmod -f sk98lin) after its compilation finished. This problem can be resolved by overwriting the current include/version.h (which corresponds to another kernel version), with the include/version.h of the kernel version currently running. BEWARE: OVERWRITE THE FILE ONLY IF YOU HAVE REALLY THE CORRECT HEADER FILE CORRESPONDING TO THE CURRENT RUNNING If you don't have the same kernel version, please install the sources or a new kernel. It's not possible to mix different kernel versions! If you know what you are doing and want to override this check, you can do so by setting IGNORE_HEADER_MISMATCH system variable: Example: export IGNORE_HEADER_MISMATCH=1 or change the file /usr/src/linux/include/linux/version.h, remove the define UTS_RELEASE line and insert: #define UTS_RELEASE "2.6.9-1.667" Your kernel version: 2.6.9-1.667 Your header version: 2.4.20 Installation of sk98lin driver module failed.

関連するQ&A

  • CentOS5にvmware-toolsのインストール

    vmwareにCentOSでデスクトップ環境を作っています。ホストとゲスト間のコピー&ペーストがしたいのですが、vmware-toolsのインストールで困っています。 環境は以下の通りです。 Host OS:Windows XP + VMware5.5.1 Guest OS:CentOS 5および5.1 vmware-toolsをインストールする際にkernel-headerの要求で詰まってしまいます。ネットで調べると定番の問題のようでkernel-source またはkernel-develのインストールでよいとのことで、確認すると既にインストールされています。しかしdefaultで聞かれる[/usr/src/linux/include] は存在しません。 現在のカーネルのバージョンは > uname -a Linux hostname 2.6.18-53.1.4.el5 #1 SMP Fri Nov 30 00:45:16 EST 2007 i686 i686 i386 GNU/Linux となっており、この番号を元に検索すると以下のディレクトリがありました > find / -name 2.6.18-53* -print /usr/src/kernels/2.6.18-53.1.4.el5-i686 /lib/modules/2.6.18-53.1.4.el5 そこでこれらをpathに与えてみました。defaultのpathにリンクを張っても見ましたが What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include] /lib/modules/2.6.18-53.1.4.el5/build/include The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match your running kernel (version 2.6.18-53.1.4.el5). Even if the module were to compile successfully, it would not load into the running kernel. What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include] となり堂々巡りです。 インストールの方法は、rpmとtarball両方試しました。 ネット上では皆さんkernel-develをいれて解決されている用なのですが、いったい何が間違っているのでしょうか?

  • Knoppix5.3.1のmakefileについて教えてください。

    VMware Server1.6でKNOPPIX5.3.1CD日本語版をHDDインストールしました。 引き続き、VMware Toolsをインストールしたいのですが、途中で止まってしまいます。 カーネルのバージョンは2.6.24.4です。 ■止まった箇所 What is the location of the directory of C header files that match your running kernel?[/usr/src/linux/include]でEnterを実行 ■エラーコメント The path "/usr/src/linux/include" is not an existing direcrory. おそらく、include pathを指定していないことが原因だと思い、debian リファレンスの7.1.2 「Kernelヘッダ」を参考にしたところ、makefileを変更するようです。 http://www.debian.org/doc/manuals/reference/ch-kernel.ja.html そのmakefileの変更方法がわかりません。ご教授お願いします。 また、私の原因予想事態が間違っているならば、ご指摘ください。 よろしくお願いします。

  • include の場所

    Fedora10でvmwareを使っていましたが、定期的なupdate systemで環境が変わったみたいで、使用できなくなりました。 どうやら、kernelの C header files がないようです。 /usr/src/linux/include の場所が変わったのでしょうか? どの場所に変わったか?教えていただけませんか? kernel 2.6.27.29 gcc 4.3.2

  • FreeBSD7.0でのCisco VPN Clientインストールエラー

    掲題の件について、早速ですが、FreeBSD7.0でCiscoVPNClientを インストールするときに以下のメッセージが表示され、インストール が失敗します。 ---------------------------------------------------------------- Cisco Systems VPN Client Version 4.6.00 (0640) Linux Installer Copyright (C) 1998-2005 Cisco Systems, Inc. All Rights Reserved. By installing this product you agree that you have read the license.txt file (The VPN Client license) and will comply with its terms. Directory where binaries will be installed [/usr/local/bin] Automatically start the VPN service at boot time [no]yes Directory containing runlevel directories (rcX.d): []/etc In order to build the VPN kernel module, you must have the kernel headers for the version of the kernel you are running. For RedHat 6.x users these files are installed in /usr/src/linux by default For RedHat 7.x users these files are installed in /usr/src/linux-2.4 by default For Suse 7.3 users these files are installed in /usr/src/linux-2.4.10.SuSE by default Directory containing linux kernel source code [] * Binaries will be installed in "/usr/local/bin". * Modules will be installed in "/lib/modules/7.0-RELEASE/CiscoVPN". * The VPN service will be started AUTOMATICALLY at boot time. * Kernel source from "" will be used to build the module. * Runlevels will be set in "/etc". Is the above correct [y]yes Making module ./driver_build.sh Cisco Systems VPN Client Version BUILDVER_STRING Copyright (C) 1998-2001 Cisco Systems, Inc. All Rights Reserved. usage: ./driver_build.sh 'kernel_src_dir' 'kernel_src_dir' is the directory containing the linux kernel source Failed to make module "cisco_ipsec". ---------------------------------------------------------------- Linux初心者で、インストール時のカーネルのソースコードを含むディレ クトリを指定するとこ(Directory containing linux kernel source code [])で、 それがどこなのか、そもそも今あるのかないのかがわかっておらず、 空エンターを押してインストールをしようとしているのが原因かも 知れませんが、現段階で自力での解明ができておりません。 他、必要な情報等ございましたら調べますのでご連絡願います。 以上、お手数ですが、よろしくお願いいたします。

  • カーネルのインストールがうまくいかない

    Redhat9.0を使っていて,カーネルは2.4.20でしたが, カーネル2.4.18が必要となって,バージョンダウンする必要がありました. そこで,カーネルのtar.gzファイルを /usr/src/linux-2.4.18以下に展開し, make mrproper make menuconfig make dep make bzImage make modules make modules_install を行いました. しかし再起動し,grubでlinux-2.4.18を選んで起動しようとすると途中で kernel Panic :I have no root and I want to scream とエラーが出ます. どのようにしたら起動できるようになるでしょうか?

  • Debian squeezeのカーネルソースの場所

    現在、Debian squueze(kernel:2.6.32-5-amd64)を入れたPCに 無線LAN(RaLink RT2860)のドライバをインストール(コンパイル)するため、 付属のReadmeを読みながらMakefileの設定を行っています。 しかし、肝心のカーネルソースが自分のPCのどこにあるか分からず、 Makefile内のカーネルソース(LINUX_SRC)をどう指定すればよいのか分かりません。 どのように設定、もしくはどのようにして調べたら良いのでしょうか? Makefile内の該当箇所を以下に抜粋します。 (このままmakeを実行してもエラーが出ます。) =================================================== ifeq ($(PLATFORM),PC) # Linux 2.6 LINUX_SRC = /lib/modules/$(shell uname -r)/kernel/build # Linux 2.4 Change to your local setting #LINUX_SRC = /usr/src/linux-2.4 LINUX_SRC_MODULE = /lib/modules/$(shell uname -r)/kernel/drivers/net/wireless/ CROSS_COMPILE = endif =================================================== Linuxを始めてまだ一週間程度で右も左も分からないので、 変な質問の仕方をしているかもしれませんが、 是非ご教授、アドバイス等を頂きたいと思います。 よろしくお願いします。

  • ubuntuでカーネルのコンパイルができません。

    PC知識についての質問です。 Linux系OSのubuntu環境で、カーネルのコンパイルをしたところ、コンパイルが途中で止まった模様です。結果、パッケージファイルの~.debが生成されませんでした。原因は何なんでしょうか?みなさん のお知恵をおかしください。 【エラーメッセージ】 バージョン文字列 'test.0.1' にエラー: version number does not start with digit make[2]: *** [debian/stamp/binary/linux-image-2.6.38.2] エラー 2 make[2]: ディレクトリ `/usr/src/linux-source-2.6.38' から出ます make[1]: *** [debian/stamp/binary/pre-linux-image-2.6.38.2] エラー 2 make[1]: ディレクトリ `/usr/src/linux-source-2.6.38' から出ます make: *** [kernel_image] エラー 2

  • RHEL ES 4のkernel-source

    RedHat Enterprise Linux ES 4のインストール中です。 SMP対応のカーネルソースをダウンロードしたいのですが、FTPサイトには 通常のカーネルソースしか見当たりません。 ftp://updates.redhat.com/enterprise/4ES/en/os/SRPMS/kernel-2.6.9-11.EL.src.rpm どこでダウンロードすることができるのでしょうか? ちなみに、このサーバで「uname -r」を実行した結果は下記のとおりです。 2.6.9-11.ELsmp

  • Centos5.3にVmwareインストール

    できません。VMをrpmでインすトールし、コンフィグ設定のため以下コマンドを打つと下記メッセージが出ます。 [root@localhost vm]# vmware-config.pl What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include] カーネルソースとRunning kernelに相違があるのですか? 解決策をご教授願います。 p.s. 現在のrunning kernel↓ [root@localhost ~]# uname -r 2.6.18-128.el5

  • RedHatのUpdateについて

    RedHatのUpdateについてですが、 現在RedHat7.1をサーバにインストールしていまして、 パッケージで古いものをUpdateしたいと思っております。 RedHat7.1のUpdateのページを見ますと(http://www.redhat.co.jp/support/errata/rh71/) Updateできるパッケージがあるのですが、 その中に最新のパッケージがありません。 たとえばカーネルでいうと、 RedHat7.1Updateのページの最新カーネル:kernel-2.4.9-34.i686.rpm RedHat最新カーネル(RedHat7.3Updateにあります):kernel-2.4.18-5.i686.rpm と、最新のバージョンが7.1の方では出てきません。。。。 これはkernel-2.4.18-5.i686.rpmが7.1で使用できないということでしょうか? それともkernel-2.4.18-5のソースをコンパイルを行えば使用できるということでしょうか? 教えて頂きたいです。 よろしくお願いします。