• ベストアンサー

CentOS6.2のカーネルコンパイル

CentOS6.2でカーネルをコンパイルしようとmakeすると以下のエラーがでました。 対処方法などがあればよろしくお願いします(><) # make CHK include/linux/version.h CHK include/linux/utsrelease.h SYMLINK include/asm -> include/asm-x86 make[1]: *** ターゲット `missing-syscalls' を make するルールがありません. 中止. make: *** [prepare0] エラー 2

質問者が選んだベストアンサー

  • ベストアンサー
  • Wr5
  • ベストアンサー率53% (2177/4070)
回答No.1

どうやってカーネルのビルドしようとしています? kernel.orgとかからソースアーカイブ(.tar.gzとか.tar.bz2とか)を拾ってきて展開したのか、 CentOSのrpmパッケージからなのか…… rpmパッケージからならば、 http://okwave.jp/qa/q7517428.html での回答と似たような状況なのではないでしょうか? # CentOS(RHEL) 6.xはFedora13相当ですし。

関連するQ&A

  • Fedora16のカーネル再構築

    fedora16でカーネルを再構築したいのですが、以下のエラーが出てコンパイルできません。 $ make make[1]: *** `arch/x86/syscalls/../include/generated/asm/unistd_32.h' に必要なターゲット `/usr/src/kernels/3.3.7-1.fc16.x86_64/arch/x86/syscalls/syscall_32.tbl' を make するルールがありません. 中止. make: *** [archheaders] エラー 2 解決法はありますか? 解決法があればよろしくお願いします。

  • Debianカーネル再構築の際のコンパイルエラーの対処方法について

    現在、Debianカーネル2.6.16(Sarge)を用いています。 新しく2.6.20にカーネルの再構築を行おうとしております。 カーネルのコンパイルを行うと、下記のようなエラーが発生して、進まなくなってしまいました。 エラーの対応方法についてご教授頂ければと思います。 よろしくお願いします。 ===== /usr/src/linux-2.6.20# make vmlinux CHK include/linux/version.h CHK include/linux/utsrelease.h CHK include/linux/compile.h GEN .version CHK include/linux/compile.h UPD include/linux/compile.h CC init/version.o LD init/built-in.o LD .tmp_vmlinux1 local symbol 0: discarded in section `.exit.data' from drivers/built-in.o local symbol 1: discarded in section `.exit.data' from drivers/built-in.o local symbol 2: discarded in section `.exit.data' from drivers/built-in.o local symbol 3: discarded in section `.exit.data' from drivers/built-in.o make: *** [.tmp_vmlinux1] Error 1

  • 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

  • CentOS Apatche2.2.9インストール 質問

    Linux入門者です。 CentOS5.2にApatch2.2.9をインストールをしようとしたところ エラーになり先に進めません。 (httpd-2.2.9.tar.gzをダウンロードしました。) どなたかインストールの解決方法をご教授いただけないでしょうか。 よろしくお願いいたしますm(_ _)m # cd /usr/local/src/httpd-2.0.59 # ./configure --enable-rewrite --enable-so --enable-ssl # make;make install make: *** ターゲットが指定されておらず、makefile も見つかりません. 中止. make: *** ターゲット 'install’が指定されておらず、makefileも見つかりません. 中止.

  • kernel のコンパイルを別のマシンで

    i386系のPCにgentoo linux を入れようとしています。 現在はソースからカーネルを構築する段階です。 ところがあまりに非力なマシンのためコンパイルが遅く、さらには熱を持ってマシンが途中でダウンするという始末。 できるならばスペックが優れるほかのPCにて、外付けHDD上でi386用のカーネルイメージを作成し、make install 時だけi386系のPCで行うという方法をとりたいのですが、 1.そのようなことが可能なのか? 2.可能であればどうすればよいか? が分らない状態です。 ご存知の方、アドバイスをお願いします。

  • カーネルのコンパイルでエラー

    添付の解説に従い、Debian、Etchにカーネルを再構築しているのですが、 # make-kpkg clean #fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers の後で、最は make[1] scripts/Makefile.clean: no such file or directory make[1] *** No rule to make targe 'scripts/Makefile.clean'. Stop. make *** [archclean] Error 2 で、今回は make [1]: *** [.tmp_vmlinux1] Error 1 make [1]: Leaving directory 'usr/src/linux-2.6.21.3' make: *** [debian/stamp/build/kernel] Error 2 とエラーの表示が出てきます。 どこを正せばよいか、ご教授をお願い申し上げます。 尚、解説書にあるカールのパッチはしていません。 http://www.howtoforge.com/kernel_compilation_debian_etch

  • RHL7.2でカーネルの再構築

    RHL7.2でインストールしたばかりのデフォルトの状態で、カーネルの再構築(linux-2,4,17.tar.gz)ができません。マニュアルにあるように、 cp linux-2.4.17 /usr/src tar xvzf linux-2.4.17 cd /usr/src/linux make xconfig make dep make clean make modules make modules_install make install の手順を踏んでカーネルの再構築をしているのですが、どうしても、最後のmake install時にエラーが2つでてしまいます。 カーネルオプション事態には問題はないと思うのですが、なぜ、エラーがでてしまうのかわかりません。エラーの一つに「lilo.confがありません」。とでてくるのですが、インストール時にはGRUBを設定しています。 このエラーに関して、思い当たることがあれば、どうか、教えてください。お願いします。 ついでにPPPもできずに困っています。RHL7.1では普通にできたのに・・・ RHL7.2自体の評判というのはどうなんでしょうか?それについても教えてください。どうか、よろしくお願いします。

  • Debian(amd64)でdriverをコンパイルに失敗する

    Debian(amd64)でdriverをコンパイルに失敗する DebianでPT1のドライバをコンパイルしようとしたところ、 make[1]: ディレクトリ `/lib/modules/2.6.26-2-amd64/build' に入ります make[1]: *** ターゲット `modules' を make するルールがありません。中止 make[1]: ディレクトリから `/lib/modules/2.6.26-2-amd64/build' 出ます make" ***[pt1_drv.ko] エラー 2 となりドライバが作成できません。 調べたところmakeに失敗するのは下記がバージョンがずれているときと出ていましたがこれ以上は疎くわかりません。 dpkg -l | grep linux-source ii linux-source-2.6.26 2.6.26-24lenny1 dpkg -l | grep linux-headers ii linux-headers-2.6.26-2-amd64 2.6.26-24lenny1 ii linux-headers-2.6.26-2-common 2.6.26-24lenny1

  • CGIへのコンパイルエラー

    初めまして。プログラミング暦はほとんどありません。javaを少しかじった程度です。今回Ajaxへ挑戦しようと思い、 http://itpro.nikkeibp.co.jp/article/COLUMN/20060115/227278/?ST=nettech の予測補完インタフェースを作成しよとしています。 環境はfedoracore5でXPからのputyからの遠隔です。 complete.cをcomplete.cgiへコンパイルするときに、 [root@localhost html]# gcc -Wall -O2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include complete.c -o complete.cgi -lglib-2.0 -lsary -lpthread complete.c:1: error: stray ‘\357’ in program complete.c:1: error: stray ‘\273’ in program complete.c:1: error: stray ‘\277’ in program complete.c:1: error: stray ‘#’ in program complete.c:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token In file included from complete.c:2: /usr/include/string.h:39: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:43: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:52: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:59: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:62: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:66: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:88: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:96: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:102: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:109: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strxfrm’ /usr/include/string.h:184: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strcspn’ /usr/include/string.h:188: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strspn’ /usr/include/string.h:242: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strlen’ /usr/include/string.h:270: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:288: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:292: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:296: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:299: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:329: error: expected declaration specifiers or ‘...’ before ‘size_t’ In file included from /usr/include/string.h:417, from complete.c:2: /usr/include/bits/string2.h:969: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__strcspn_c1’ /usr/include/bits/string2.h:971: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__strcspn_c1’ /usr/include/bits/string2.h:979: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__strcspn_c2’ /usr/include/bits/string2.h:982: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__strcspn_c2’ /usr/include/bits/string2.h:991: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__strcspn_c3’ /usr/include/bits/string2.h:994: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__strcspn_c3’ とエラーがでます。どうしたらいいでしょうか?(文字数の関係で半分しか掲載できませんでした。)よろしくお願いいたします。

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

    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 とエラーが出ます. どのようにしたら起動できるようになるでしょうか?