• 締切済み

Solaris10でNet-SNMPがインストールできない

Solaris初心者です。よろしくお願いします。 Net-snmpをSolaris10にソースからインストールしようとしたのですが、下記のエラーが出てしまいインストールできません。 ./configure make make test(Summary: 59 / 59 succeeded.) make install creating directory /usr/local/include/net-snmp ./install-sh -c -m 644 ./include/net-snmp/version.h /usr/local/include/net-snmp/version.h cp: cannot create /usr/local/include/net-snmp/#inst.3763#: Permission denied *** Error code 2 The following command caused the error: if test "version.h" != "" ; then \ echo creating directory /usr/local/include/net-snmp ; \ it="version.h" ; \ /bin/sh ./mkinstalldirs /usr/local/include/net-snmp ; \ for i in $it ; do \ /bin/sh ./libtool --mode=install ./install-sh -c -m 644 ./include/net-snmp/$i /usr/local/include/net-snmp ; \ echo "installing $i in /usr/local/include/net-snmp" ; \ done \ fi make: Fatal error: Command failed for target `installlocalheaders' googleで調べては見たのですが(エラー文)同じ問題に対しての返答がなくて困っています。どうしたらよいでしょうか?よろしくお願いします。

みんなの回答

回答No.1

make自体はできているようです。 で、エラーの内容をよく見ると、 cp: cannot create /usr/local/include/net-snmp/#inst.3763#: Permission denied とあります。 つまり、書き込みしようとしたけど権限が無くて書けなかったと言っています。 通常、/usr/localはユーザレベルでは書き込みできないので、 make installを実行する前に、スーパーユーザ(root)になる必要があります。 なので、手順としては、 ./configure make su make install になります。 大概スーパーユーザは最低限のパスしか通っていないので、 フルパスでmakeを指定する必要があると思います。 Ex:makeが/usr/local/bin下にある場合 /usr/local/bin/make install

cacti_love
質問者

補足

ありがとうございます。その通りでした。 実際にroot権限でmakeができなかったので(makeのパスは/usr/ccs/bin/makeでした)パスを指定してmake installを行いました。 ./configure make su /usr/ccs/bin/make install しかし、今度は別のエラーで困っています. *** Error code 1 make: Fatal error: Command failed for target `snmp_client.lo' Current working directory /usr/local/src/net-snmp-5.4.1/snmplib *** Error code 1 The following command caused the error: if test "snmplib agent apps man local mibs" != ""; then \ it="snmplib agent apps man local mibs" ; \ for i in $it ; do \ echo "making installlibs in `pwd`/$i"; \ ( cd $i ; /usr/ccs/bin/make installlibs) ; \ if test $? != 0 ; then \ exit 1 ; \ fi \ done \ fi make: Fatal error: Command failed for target `installsubdirlibs' このエラーが出てきて困っています.googleでググってもなかなか同じような情報が出てきません・・・.これができないcactiもできないようなので宜しくお願いします.

関連するQ&A

  • 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 お分かりの方がいらっしゃいましたらよろしくお願い致します。

  • Solaris10へsendmail8.12.10インストールができません。

    サーバ構築未熟者で、Solaris10の構築は初めての者です。 Solaris10へのsendmail8.12.10をインストールを試みておりますが、Build時にエラーが発生し、 インストールできない状態になっております。 エラー内容はこのようになっており、エラー内容から環境変数の一部の設定がおかしいのではないかと推測しております。 ../../include/sm/conf.h:2610: error: conflicting types for 'unsetenv' /usr/include/stdlib.h:188: error: previous declaration of 'unsetenv' was here ../../include/sm/conf.h:2610: error: conflicting types for 'unsetenv' /usr/include/stdlib.h:188: error: previous declaration of 'unsetenv' was here make[1]: *** [debug.o] Error 1 make[1]: Leaving directory `/usr/local/src/sendmail-8.12.10/obj.SunOS.5.10.i86pc 該当の部分と思われる、conf.hファイルの2610行目は、デフォルト状態です。 サーバ構築期限がさしせまっており、非常に困っております。 もしわかる方がいらっしゃいましたらアドバイスをお願いいたします。

  • 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 見つかりません とエラーがでます。 コンパイラがインストールできていないのでしょうか?それともパスの設定がまずいのでしょうか? どこから手をつけてよいかわからない状態です。アドバイスをよろしくお願い致します。

  • solarisのSNMPについて

    現在solaris上でCPU使用率、ディスク使用率、メモリ使用率、対象プロセスが立ち上がっているかをSNMPで監視しようと思っているのですが、solarisにデフォルトで入っているsnmpdxというエージェントは古いのか資料があまりありません。ネット等で調べるとNet-snmpをインストールするやり方はよく載っているのですが、現在稼動中のサーバなので新規にソフトをインストールするのは抵抗があり、できればsolarisにデフォルトで入っているSNMPエージェントを構築したいと考えております。 上記4つを監視するためにsolaris上で使っているMIBのOIDや閾値の設定などどんな情報でも構いません。 どなたか教えてください。どうかよろしくお願いします。

  • tcshがIntel版solarisでインストールできない

    tcshをIntel版solarisでコンパイルしてインストールした経験がある方にお伺いしたいのですが、tcshの最新版をインストールしようとして、tcsh-6.12.00 をDLし sh ./confirure; make とするのですが、以下のようなエラーが出てしまいコンパイルが出来ませんでした。 コンパイル関連の知識が無く途方に暮れてしまうのですが、どのような事をチェックしたり試したりしたら宜しいでしょうか? ================ make gcc -E -I. -I. -D_PATH_TCSHELL='"/usr/local/bin/tcsh"' … gcc -c -g -O2 -I. -I. -D_PATH_TCSHELL='"/usr/local/bin/tcsh"' sh.func.c sh.func.c: In function `dologin': sh.func.c:350: parse error before `char' sh.func.c:354: `p' undeclared (first use in this function) sh.func.c:354: (Each undeclared identifier is reported only once sh.func.c:354: for each function it appears in.) make: *** [sh.func.o] Error 1 ================ 現在使用しているのはsolaris8intel版です。 SunOS epson 5.8 Generic_108529-29 i86pc i386 i86pc makeはgmakeを、gccがコンパイラとして指定されています ================== /var[49(0)]>>make -version GNU Make version 3.79.1, by Richard Stallman and Roland McGrath. Built for i386-pc-solaris2.8 ================== /var[52(1)]>>gcc --version 2.95.3 ================== なお、configureの時のメッセージを書ききれないので後ほど。以上宜しくお願いします。

  • solarisにphpが入りません なにかご教示いただけないでしょうか

    solaris10にphp5をインストールしようと思ってるんですが、エラーが出てインストールできません ./configure --with-apxs=/usr/apache/bin/apxs ↓ make をすると以下のようなエラーが出ます。 /samba/php-5.0.5/ext/iconv/iconv.c -o ext/iconv/iconv.lo In file included from /usr/include/iso/stdarg_iso.h:41, from /usr/include/stdarg.h:32, from /samba/php-5.0.5/Zend/zend.h:76, from /samba/php-5.0.5/main/php.h:34, from /samba/php-5.0.5/ext/iconv/iconv.c:27: /usr/include/sys/va_impl.h:150: #error ("Unrecognized compiler protocol for variable argument lists") *** Error code 1 make: Fatal error: Command failed for target `ext/iconv/iconv.lo' phpのいろんなバージョンで試したのですがすべてこんなエラーが出てしまいます どなたか助言いただけると幸いです。 よろしくお願い致します

  • Solaris10でmakeがこける

    postfixをインストールしようと make makefiles CC=gcc してから makeしたのですが、 /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.6/include/sys/types.h:27:31: sys/feature_tests.h: No such file or directory isa_defs.h: No such file or directory machtypes.h: No such file or directory int_types.h: No such file or directory In file included from sys_defs.h:335,from alldig.c:29: /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.6/include/sys/types.h:68: error:syntax error before "int32_t" syntax error before "uint32_t" "int32_t" "uint32_t" "int32_t" "uint32_t" "offset_t" (中略) /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.6/include/sys/types.h:622:24: sys/select.h: No such file or directory In file included from /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.6/include/limits.h:11,from sys_defs.h:1347,from alldig.c:29: /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.6/include/syslimits.h:27:31: sys/feature_tests.h: No such file or directory isa_defs.h: No such file or directory /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.6/include/syslimits.h:29:28: iso/limits_iso.h: No such file or directory /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.6/include/syslimits.h:41:28: sys/int_limits.h: No such file or directory alldig.c:30:19: ctype.h: No such file or directory (省略しているところあります) と出てmakeできません。 見つかっていないファイル類がSolaris開発ツールっぽいのしかわからず、どうやって入手すればいいかがわかりません。 SMTP-AUTH対応できればそれでいいのでpkgadd対応版みたいなので代用も可能です。 わかる方、お願いします

  • Solaris10でSendmailのBuildに失敗します。

    コンパイル環境は、 Sun Microsystems sun4v Sun Fire(TM) T1000 1.0GHz UltraSPARC T1 / 2040 Megabytes gccはデフォルトの3.4.3を利用しています。 Sendmailのソースフォルダにて下記の用にBuildを行うと エラーになります。x86環境では起きませんでした。 #./Build -c ~~~~~~~~~~~~~~~~ gcc -O -I. -I../../include -DNDBM -DNIS -DNISPLUS -DMAP_REGEX -DSOLARIS=21000 -DNETINET6 -c macro.c gcc -O -I. -I../../include -DNDBM -DNIS -DNISPLUS -DMAP_REGEX -DSOLARIS=21000 -DNETINET6 -c map.c In file included from /usr/include/rpc/rpc.h:42, from /usr/include/rpcsvc/nis.h:9, from map.c:2834: /usr/include/rpc/svc.h:19:28: sys/tsol/label.h: ファイルもディレクトリもありません。 In file included from /usr/include/rpc/rpc.h:42, from /usr/include/rpcsvc/nis.h:9, from map.c:2834: /usr/include/rpc/svc.h:86: error: syntax error before "bslabel_t" *** Error code 1 make: Fatal error: Command failed for target `map.o' Current working directory /usr/local/src/sendmail-8.13.8/obj.SunOS.5.10.sun4/sendmail *** Error code 1 The following command caused the error: for x in libsm libsmutil libsmdb sendmail editmap mail.local mailstats makemap praliases rmail smrsh vacation; \ do \ (cd $x; echo Making all in:; pwd; \ /bin/sh ./Build -c); \ done make: Fatal error: Command failed for target `all' # 何かしらわかる方がいましたら、よろしくお願いいたします。

  • flexをインストールできない

    現在、php-4.3.8をインストールしているときに、flexというツールをインストールしてくださいとでたので インストールすると、 /bin/sh ./mkinstalldirs \ /usr/local/bin /usr/local/lib /usr/local/include /usr/local/man/man1 rm -f /usr/local/man/man1/flexdoc.1 1345/usr/bin/install -c -m 644 ./flex.1 /usr/local/man/man1/flex.1 make: 1345/usr/bin/install: コマンドが見つかりませんでした make: *** [install.man] エラー 127 とでてしまいます。 いろんなサイトを見ていると、普通にできるみたいですが、できなくて困っています。 どなたかご存知のかたがいらっしゃましたらお教えください。

  • gdbをインストールできない

    Solaris10を使っています GDBをインストールしたいのですがうまくいきません gdb6.8をダウンロードして解凍後、 #CC=gdd ./configure は成功しているんですが #make でいろいろ動いたあと最後に make: Fatal error: Command failed for target `all' と出力され、 ためしにmake installしてみましたが いろいろ動いたあと最後に make: Fatal error: Command failed for target `install' となってやっぱりインストールできていません 私はSolaris初心者でなにが原因なのかさっぱりわかりません なにかヒントでもいただければ幸いです ちなみにPATHは PATH: bin PATH: /usr/bin PATH: /etc PATH: /usr/sbin PATH: /usr/ucb PATH: /usr/sfw/bin PATH: /sbin PATH: /usr/xpg4/bin に通しています よろしくお願い致します