net-snmpでのエラー。情報取得ができずに困っています。

このQ&Aのポイント
  • net-snmpを使用して情報取得しようとしたところエラーが発生しました。
  • libnetsnmpというファイルに問題があり、解決策がわかりません。
  • どなたか教えていただけないでしょうか?
回答を見る
  • ベストアンサー

net-snmpでのエラー。情報取得ができずに困っています。

仮想PCでCentOS5を使用してます。 サーバの勉強のためにnet-snmpをインストールし、snmpwalkコマンドで情報を取得しようとしたところエラーが発生しました。net-snmp-5.4.21をソースからインストールしました。 error while loading shared libraries: /usr/local/lib/libnetsnmp.so.15: cannot restore segment prot after reloc: Permission denied libnetsnmpというファイルに問題が出ているらしいということは推測できたのですが、対処がわからずに困っています。 どなたか教えていただけないでしょうか?よろしくお願いします。

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

  • ベストアンサー
  • goold-man
  • ベストアンサー率37% (8365/22183)
回答No.1

英語サイトにそのエラーに近い文面がありますが、機械翻訳では意味がとれません。 Linux 、 Solaris、SP3、ndsconfig、ファイアーウォール、アップグレードの問題などの語句があります。 文章でなく、単語のみで検索してみては? >cannot restore segment prot after reloc: Permission denied 参考URLをご覧ください。これもLinuxのエラーのよう。 http://ppwww.phys.sci.kobe-u.ac.jp/~akusumoto/linux/detail.php?d=config/selinux/chcon

jyurun
質問者

お礼

参考URLを見させていただき、そのとおりにしたら解決しました。 Linuxのファイルがセキュリティの設定で使用できなくなっていたのが原因だったみたいです。 迅速な回答ありがとうございました。とても助かりました。

関連するQ&A

  • アプリケーションのインストールについて教えてください。

    アプリケーションのインストールについて教えてください。 お世話になります。Linux初心者です。Linux(Fedora11)におけるアプリケーションのインストールで躓いています。FFMPEGという動画変換ができるアプリケーションを、インストールしたところ、実行できるはずのコマンドで以下のようなエラーがでてしましました。 [root@hogehoge ~]# ffmpeg -version ffmpeg: error while loading shared libraries: /usr/local/lib/libavutil.so.49: cannot restore segment prot after reloc: Permission denied 文末に「Permission denied」とあり、パーミッション絡みなのかとは思いますが、よくわかりません(root権限でログインしています。) 直接的な解決方法でなくとも構いません、参考になるような情報がありましたら、お教えいただけると助かります。 なお、frdora11を使っています。ffmpegのバージョンは0.5.1です(FFMPEGを本家サイトからダウンロードできる最新のものを使いました。) よろしくお願いします。

  • mysqlが起動しません

    さくらVPSでmysqlを使おうと思ったのですが、 yumでインストールしてしばらくは使えたのに、 動かなくなってしまいました。 /var/log/mysqld.logでは 120204 23:46:54 mysqld started /usr/libexec/mysqld: error while loading shared libraries: libkeyutils.so.1: cannot open shared object file: No such file or directory 120204 23:46:55 mysqld ended また、/etc/rc.d/init.d/mysqld startでは /sbin/restorecon: error while loading shared libraries: libselinux.so.1: failed to map segment from shared object: Permission denied と出ています。 どうすれば、起動することができるでしょうか?

  • mysqlが起動しないのですが...

    OS:CentOS 5.5 mysql:5.077 さくらVPSでサーバとして運用しているのですが、 mysqlが起動しなくなってしまいました。 /etc/rc.d/init.d/mysqld startと打つと、 /sbin/restorecon: error while loading shared libraries: libselinux.so.1: failed to map segment from shared object: Permission denied Timeout error occurred trying to start MySQL Daemon. MySQL を起動中: [失敗] と出ます。 /var/log/mysqld.logには /usr/libexec/mysqld: error while loading shared libraries: libkeyutils.so.1: cannot open shared object file: No such file or directory と出ています。 どうすれば起動する事ができるでしょうか?

  • モジュールのインストール中のエラー

    モジュールのインストール中に下のようなエラーがでて困ってます。 インストールしているモジュールはNet-SNMP-5.2.0です。 ActivePerl 5.8.8 Build 822を使ってます。 OSはWinodws2000 C:\\Perl_Mo\\Net-SNMP-5.2.0\\Net-SNMP-5.2.0>nmake Microsoft(R) Program Maintenance Utility Version 8.00.50727.42 Copyright (C) Microsoft Corporation. All rights reserved. cp lib/Net/SNMP/Security/USM.pm blib\\lib\\Net\\SNMP\\Security\\USM.pm AutoSplit: Can\'t open blib\\lib\\Net\\SNMP\\Security\\USM.pm: Permission denied NMAKE : fatal error U1077: \'C:\\Perl\\bin\\perl.exe\' : リターン コード \'0xd\'

  • snmp で No Response from ・・・

    CentOS 5.2 で SNMPをインストールし、設定をしました。 インストールした端末は192.168.200.168です。 com2sec local localhost public com2sec securenet 192.168.200.0/24 public -------------------------------------------------- #snmpwalk -c public 192.168.200.168 ・・・ はうまくいきますが、 #snmpwalk -c public 192.168.200.161 などは、 No Response for 192.168.200.・・・とのエラーが出て ほかの端末を見にいけません。 ポートは161.162をあけています。 hosts.allowとhosts.denyも設定しました。 それ以外に何の設定がありますか。 よろしくお願いします。

  • 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で調べては見たのですが(エラー文)同じ問題に対しての返答がなくて困っています。どうしたらよいでしょうか?よろしくお願いします。

  • error while loading shared libraries

    皆さんこんにちは。 「 error while loading shared libraries」エラーからの 回復の仕方が分からないでいます。 経緯は以下のとおりです。 memcashedの動きを確かめるためのサンプルソースを見つけてきて、 問題なくインストールが無事に完了した後に、 ソース(memtest)を実行しようとしたら、 「libmemcached.so.2がないよ!」ということで、 怒られてしまい実行できませんでした。 ============= ./memtest: error while loading shared libraries: libmemcached.so.2: cannot open shared object file: No such file or directory ============= パスが通っていないという事かな?と思い、 「libmemcached.so.2」の場所を探した後に、 pathに追記してみたのですが、 やはり、同じエラーが出てソースを実行できませんでした。 pathの指定の仕方が適切ではないのでしょうか? どうやって、問題を解決すれば言いか分からないでいます。 OSはFedora9を使用しています。 どなたか、アドバイスいただけますとありがたいです。 宜しくお願い致します。 # find / -name "libmemcached.so.2" -print /lib/libmemcached-0.29/libmemcached/.libs/libmemcached.so.2 /usr/local/lib/libmemcached.so.2 # PATH=$PATH:/usr/local/lib/libmemcached.so.2:/lib/libmemcached-0.29/libmemcached/.libs/libmemcached.so.2 # export PATH # ./memtest ./memtest: error while loading shared libraries: libmemcached.so.2: cannot open shared object file: No such file or directory

  • CentOSへNgraphをインストールする際について

    はじめまして。 現在、大学で信号処理について研究している者です。 CentOSでNgraphを使用したくてインストールするまではうまくいったのですが、 ngraph ○○.txt のように実行しようとすると以下のようなエラーが生じます。 /usr/local/lib/Ngraph/ngraph: error while loading shared libraries: libXm.so.3: cannot open shared object file: No such file or directory そこでネットを見ていたところ、 「libXm.so.3が無ければxorg-x11-deprecated-libsをインストールしてみればいいのではないか」 という情報がありましたのでインストールしてみたのですが、 相変わらず上記と同じエラーが生じます。 どなたか解決方法わかる方いらっしゃいましたらよろしくお願いします。 ちなみにインストールしたNgraphはNgraph-6.3.47-src.tar.gzです。

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

  • LinuxへのJDKインストールについて

    書籍のCDからインストール作業をしています。 指示に従って指定ファイルからインストーラを起動しました。 ・インストール作業 /media/cdrom/Linux/jdk-6ul-L\linux-i586.bin ・環境変数設定 .bash_profileの変更 ・source ~/.bash_profileの実行 インストールはされているようなのですが、その次のJDK6の動作確認 java -version を行うと以下のようなエラーメッセージが帰ってきました。 [usr@localhost ~]# [usr@localhost ~]# java -version dl failure on line 685Error: failed /usr/local/jdk1.6.0_01/jre/lib/i386/client/libjvm.so, because /usr/local/jdk1.6.0_01/jre/lib/i386/client/libjvm.so: cannot restore segment prot after reloc: Permission denied [root@suzuran ~]# 対処方法につきましてご教示お願い申し上げます。

    • ベストアンサー
    • Java