• 締切済み

make時にエラーが表示されてしまいます

現在、ss10を使ってsolarisの勉強をしているのですが、どうしてもmakeを実行した際にエラーが 表示されてしまいます。エラー内容は 『make[2]: cc: Command not found』 『make[2]: *** [raw.o] Error 127』 といったものです。 (それ以外にも『make[2]: Leaving directory』、『make[1]: *** [all] Error 1』といった感じで 表示されますが大したエラーではないかなと勝手に思っております) MakefileやMakefile.confを見てみたり、サイトで検索して『CC=gcc』行を コメントアウトしたりしてみたのですが状況は変わりません。どなたかご教授願えませんでしょうか? こちらの環境は OS:Solaris8(sparc) ハード:ss10 gcc:2.95.3(容量の問題で最新を入れてません) gmake:3.80 他にも足りない情報があれば指摘してください。 よろしくお願いします。

  • realm
  • お礼率50% (3/6)

みんなの回答

  • terra5
  • ベストアンサー率34% (574/1662)
回答No.1

>>『make[2]: cc: Command not found』 cのソースをコンパイルしようとしてccコマンドを実行しようとしたが、ccが存在せずエラーになったんでしょう。 gccがインストールされているならgccでコンパイルされるようになっている必要があります。 具体的には、Makefile等の中身によります。 なぜccが呼ばれるかはいろいろなケースが考えられるので実際に見てみないとわかりません。 >『CC=gcc』行をコメントアウト 逆です。 CCはCのコンパイルに使うコマンドの設定ですから、 ccでなくgccを使うなら必要です。 通常はこれだけでccでもgccでも大丈夫なようにMakefileを作ります。

realm
質問者

お礼

ご回答ありがとうございます。 確かに考えていた箇所の問題ではなかったようです。次に対応したら「stdio.h等々がない」といったエラーが ずらっと出まして、しょうがないので最新のgccを入れようとしたら容量オーバーとなってしまい、 その時点でコンパイルは無理だと諦めました(HDD1Gのため)。 現在はパッケージものを集めてなんとかしようと試みています。ありがとうございました。

関連するQ&A

  • Radiusのmake時に表示されるエラーの解決策を教えて頂けないでしょうか?

    freeradius-1.1.7のmake時に以下のエラーらしきメッセージが表示されます。(Apache、PHP、MySQL をyumでインストール済みです。) 経験が浅いため、解決策を教えていただけないでしょうか? ・ ・ ・ /usr/lib/libltdl.so: could not read symbols: File in wrong format collect2: ld returned 1 exit status gmake[4]: *** [radiusd] エラー 1 gmake[4]: ディレクトリ `/tmp/freeradius-1.1.7/src/main' から出ます gmake[3]: *** [common] エラー 2 gmake[3]: ディレクトリ `/tmp/freeradius-1.1.7/src' から出ます gmake[2]: *** [all] エラー 2 gmake[2]: ディレクトリ `/tmp/freeradius-1.1.7/src' から出ます gmake[1]: *** [common] エラー 2 gmake[1]: ディレクトリ `/tmp/freeradius-1.1.7' から出ます make: *** [all] エラー 2

  • DBI Make error

    はじめまして。 Solaris 10 環境で DBI を使用したいのですが、make が上手くできません。 # perl Makefile.PL cc=gcc (中略) Writing Makefile for DBI # make gcc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -xO3 -xspace -xildoff -DVERSION=\"1.52\" -DXS_VERSI ON=\"1.52\" -KPIC "-I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE" -DDBI_NO_THREADS Perl.c gcc: unrecognized option `-KPIC' gcc: language ildoff not recognized gcc: Perl.c: linker input file unused because linking not done /usr/bin/perl /usr/perl5/5.8.4/lib/ExtUtils/xsubpp -typemap /usr/perl5/5.8.4/lib/ExtUtils/typemap -typemap typemap DBI .xs > DBI.xsc && mv DBI.xsc DBI.c gcc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -xO3 -xspace -xildoff -DVERSION=\"1.52\" -DXS_VERSI ON=\"1.52\" -KPIC "-I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE" -DDBI_NO_THREADS DBI.c gcc: unrecognized option `-KPIC' gcc: language ildoff not recognized gcc: DBI.c: linker input file unused because linking not done Running Mkbootstrap for DBI () chmod 644 DBI.bs rm -f blib/arch/auto/DBI/DBI.so LD_RUN_PATH="" cc -G DBI.o -o blib/arch/auto/DBI/DBI.so sh: cc: 見つかりません。 *** Error code 1 make: Fatal error: Command failed for target `blib/arch/auto/DBI/DBI.so' perl Makefile.PL で、cc=gcc と指定しているのに、 make で "sh: cc: 見つかりません。" と言われてしまい ました。 どのように指定すればよろしいのでしょうか? ご存知の方がいらっしゃったら、よろしくお願いします。

    • ベストアンサー
    • Perl
  • makeができない

    今仕事の課題でsolaris8を触っているのですが、 opensslのmakeでどうしてもエラーが出てしまいます。 エラーは make[3]: *** [lib] Error 1 make[3]: Leaving directory `/export/home/***/openssl-0.9.7g/crypto' make[2]: *** [sub_all] Error 1 make[2]: Leaving directory `/export/home/***/openssl-0.9.7g' make[1]: *** [../libcrypto.a] Error 2 make[1]: Leaving directory `/export/home/***/openssl-0.9.7g/test' make: *** [tests] Error 2 正直かなりなど素人なもので、手順書片手にわからないことがあればgoogleなどで検索してやっています。 どなたかご教授お願いできませんでしょうか?

  • Solaris10でdelegateをインストール

    OS:Solaris10(SPARC)を使っています。 delegateのインストールをしようとしているのですが 解凍したあとmakeコマンドを入れると # cd work/delegate8.95 # /usr/ccs/bin/make すると、以下のメッセージがでます。 cc -DMKMKMK -DDEFCC=\"cc\" -I../include -L../lib mkmkmk.c -o mkmkmk.exe /usr/ucb/cc:language optional software package not installed **Error Code 1 make:Fatal error :Command failed for target 'mkmake.exe' # /usr/ccs/bin/make CC=gcc と入れても sh:gcc 見つかりません とエラーがでます。 コンパイラがインストールできていないのでしょうか?それともパスの設定がまずいのでしょうか? どこから手をつけてよいかわからない状態です。アドバイスをよろしくお願い致します。

  • DRAC makeエラー

    POP before SMTPを導入しようと思い、DRACをダウンロードしMakefileを編集しmakeをやったところ以下のようなエラーが出ます。 ================================ gcc -DSOCK_RPC -DFCNTL_LOCK -DGETHOST -DDASH_C -g -c -o testing.o testing.c make: gcc: コマンドが見つかりませんでした make: *** [testing.o] エラー 127 ================================ 環境は、CentOS4 Sendmail-8.13.1-2です。 gccはyumよりgcc.i386 3.4.3-9.EL4 update致しました サイトを色々検索しましたが、ヒントになるような所を見つけることが出来ませんでした。 よい、解決法があればご教授頂けないでしょうか? 宜しくお願い致します。

  • FreeBSD 6.2へのJDK5インストール方法

    FreeBSD 6.2-RELEASEにJDK5.0をインストールすると、下記エラーでインストール できませんでした。原因がわかる方がおりましたら、教えてください。 /control/build/bsd-i586/tmp/sun/sun.awt/awt/obj/awt_robot /usr/bin/ld: cannot find -lXtst gmake[4]: *** [/usr/ports/java/jdk15/work/control/build/bsd-i586/tmp/sun/sun.awt/awt/obj/awt_robot] Error 1 gmake[4]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/sun/awt' gmake[3]: *** [optimized] Error 2 gmake[3]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/sun/awt' gmake[2]: *** [all] Error 1 gmake[2]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/sun' gmake[1]: *** [all] Error 1 gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make' gmake: *** [j2se-build] Error 2 *** Error code 2 Stop in /usr/ports/java/jdk15. *** Error code 1 Stop in /usr/ports/java/jdk15.

  • ファイルmake不可能

    ファイルをダウンロードしようとして ./configureまではうまくいったのですが makeをしたら make[1]: *** [pcrecpp.lo] error 1 make[1]: leaving directory /root/pcre-7.8/pcre-7.8 make: *** [all] erorr2 と表示されてうまくいきません なにがいけないのでしょうか? OSはcentos ダウンロードしようとしたファイルはlibpcreです

  • Net-SNMPでのmake時のエラーについて

    はじめまして。kyosyouと申します。 Solaris(SunOS5.9)でNet-SNMPを使おうとしておりますが、 make時に下記エラーがでて頓挫しております。 google等で調べてみたのですが、類似事象が見つからず、ご質問させていただきます。 making all in /opt/net-snmp/net-snmp-5.4/snmplib make[1]: Entering directory `/opt/net-snmp/net-snmp-5.4/snmplib' /bin/sh ../libtool --mode=compile gcc -I../include -I. -I../snmplib -g -O2 -Dsolaris2=solaris2 -c -o snmp_client.lo snmp_client.c gcc -I../include -I. -I../snmplib -g -O2 -Dsolaris2=solaris2 -c snmp_client.c -fPIC -DPIC -o .libs/snmp_client.o In file included from snmp_client.c:73: /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/sys/param.h:181: warning: `NBBY' redefined /usr/include/sys/select.h:59: warning: this is the location of the previous definition In file included from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/time.h:91, from /usr/include/sys/time.h:419, from /usr/include/sys/select.h:20, from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/sys/types.h:284, from /usr/include/sys/wait.h:20, from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/stdlib.h:17, from snmp_client.c:47: /usr/include/sys/siginfo.h:74: parse error before `pthread_attr_t' /usr/include/sys/siginfo.h:74: warning: no semicolon at end of struct or union /usr/include/sys/siginfo.h:76: parse error before `}' In file included from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/time.h:91, from /usr/include/sys/time.h:419, from /usr/include/sys/select.h:20, from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/sys/types.h:284, from /usr/include/sys/wait.h:20, from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/stdlib.h:17, from snmp_client.c:47: /usr/include/sys/siginfo.h:284: parse error before `int32_t' /usr/include/sys/siginfo.h:284: warning: no semicolon at end of struct or union /usr/include/sys/siginfo.h:284: warning: no semicolon at end of struct or union /usr/include/sys/siginfo.h:286: parse error before `}' /usr/include/sys/siginfo.h:286: warning: data definition has no type or storage class /usr/include/sys/siginfo.h:288: parse error before `}' /usr/include/sys/siginfo.h:288: warning: data definition has no type or storage class /usr/include/sys/siginfo.h:415: parse error before `int32_t' /usr/include/sys/siginfo.h:415: warning: no semicolon at end of struct or union /usr/include/sys/siginfo.h:415: warning: no semicolon at end of struct or union /usr/include/sys/siginfo.h:416: conflicting types for `__rctl' /usr/include/sys/siginfo.h:285: previous declaration of `__rctl' /usr/include/sys/siginfo.h:418: parse error before `}' /usr/include/sys/siginfo.h:418: warning: data definition has no type or storage class /usr/include/sys/siginfo.h:420: parse error before `}' /usr/include/sys/siginfo.h:420: warning: data definition has no type or storage class /usr/include/sys/siginfo.h:424: parse error before `k_siginfo_t' /usr/include/sys/siginfo.h:424: warning: no semicolon at end of struct or union /usr/include/sys/siginfo.h:428: parse error before `}' /usr/include/sys/siginfo.h:428: warning: data definition has no type or storage class In file included from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/stdlib.h:17, from snmp_client.c:47: /usr/include/sys/wait.h:90: parse error before `siginfo_t' make[1]: *** [snmp_client.lo] Error 1 make[1]: Leaving directory `/opt/net-snmp/net-snmp-5.4/snmplib' make: *** [subdirs] Error 1 お分かりの方がいらっしゃいましたらよろしくお願い致します。

  • make実行時のエラーについて

    makeについてお尋ねします(先日、お尋ねした件の延長なのですが)。 あるプログラムソース群からの実行ファイルの作成に関する質問です。 以下操作手順です。 ------------ 1. configure.sh というのが用意されていて、中を見てみたら私の計算機のコンパイラの状況などを調べたりして、make.incを出力しています。それは所定の場所に置かれます。これをマニュアルどおり実行しました。 2. その場所(ソース群とかmakefile,make.incがあるフォルダ)でmakeを実行しました。makeはmakefile, make.incを読み込んでいます。make.incがmakefileから呼ばれている記述も確認しました。 makeを実行すると、makefileの以下の部分がおかしいとしてmakeが終了します。 c.o: $(CC) -c $(CFLAGS) $(INCS) $*.c メッセージとして、 cc -c -I hoge.c cc: fetal error: no input files ----------- $(CC),$(CFLAGS),$(INCS) というのはcc, スペース, -I を意味するようですが、これはどこで指定されるのでしょうか。 make.incの中にはそのようなものを指定するところはありませんでした。Fortranコンパイラは調べて調整されていることが分かり、"FC= gfortran -O3" というような記述が見えます。configure.shを使って調査したことが分かります。 また、cc -c -I abc.c は、-Iでインクルードファイルのフルパスを指定なのでしょうか。man ccによるとそういう風です。 $(INCS)を削除すればいいのかもですが、一応、セットとして導入されているものなので、どこで副作用が出るかわからないのでそのままにしているのですが。理屈が分からないので、自発的に編集することをためらっています。 make全般ですが、どういう分野に属するのでしょうか。C言語の1分野でもなく、必ずしもLinuxの習得の中に組み込まれているわけでもないように見えます。学習するシステムとしてどこに属するのかということですが。その場その場でアドホックに調べて習得していくものなのでしょうか。 if......fiというようにフィーリングではわかるのですが、しっかり説明されるような学習の場面がないのですが。

  • コンパイルできない

    http://www.cs.bme.hu/~bodon/en/apriori/ ↑のサイトのソースをダウンロードしてコンパイルしようとしているのですが、 コンパイルできません。 どのように書き換えたらよいでしょうか? 実行環境 Cygwin gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) エラー内容 $ make MAKE Version 5.2 Copyright (c) 1987, 2000 Borland Error makefile 11: Command syntax error Error makefile 14: Command syntax error Error makefile 16: Command syntax error Error makefile 18: Command syntax error *** 4 errors during make ***