• ベストアンサー
※ ChatGPTを利用し、要約された質問です(原文:memcachedのモニタリング)

memcachedのモニタリングに関するエラーの原因と解決方法

このQ&Aのポイント
  • memcachedのモニタリングをするために導入したCloudForecastでエラーが発生しました。
  • エラーログを確認したところ、Perlのバージョンが要件を満たしていないことが判明しました。
  • 必要なバージョンのPerlをインストールすることで問題は解決します。

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

  • ベストアンサー
  • t-okura
  • ベストアンサー率75% (253/335)
回答No.1

cpanm がインストールした perl 5.10.0 で実行されていないのだと思います。 perl --version で表示されるバージョンは 5.8.8 のままではないでしょうか。 perldoc -l cpanm で、cpanm スクリプトの存在するパスが表示されるので、インストールした perl で実行してみてください。 perl 5.10.0 が /usr/local/perl/bin/perl でインストールされているのでしたら、 /usr/local/perl/bin/perl cpanmのパス -l extlib --installdeps . と実行します。 cpanm を /usr/local/perl/bin/perl を使ってインストールする必要があるかもしれません。 また、 export PATH=/usr/local/perl/bin:$PATH として、OS 付属の perl よりも先に perl 5.10.0 が使われるようにした方がよいでしょう。 ちょっと自信がないので、うまくいかなかったら、ごめん。

yosakun
質問者

お礼

先ほど perlbrewを入れてみました。 5.16.2を入れて cpanm -l extlib --installdeps . としたとろうまくいったのですが ./cloudforecast_web -p 5000 -c cloudforecast.yaml -l server_list.yaml で今度は下記のようになりました。 # ./cloudforecast_web -p 5000 -c cloudforecast.yaml -l server_list.yaml Can't locate Proc/Wait3.pm in @INC (@INC contains: /root/cloudforecast/site-lib /root/cloudforecast/extlib/lib/perl5/x86_64-linux /root/cloudforecast/extlib/lib/perl5 /root/cloudforecast/lib /root/perl5/perlbrew/perls/perl-5.16.2/lib/site_perl/5.16.2/x86_64-linux /root/perl5/perlbrew/perls/perl-5.16.2/lib/site_perl/5.16.2 /root/perl5/perlbrew/perls/perl-5.16.2/lib/5.16.2/x86_64-linux /root/perl5/perlbrew/perls/perl-5.16.2/lib/5.16.2 .) at /root/cloudforecast/extlib/lib/perl5/Parallel/Prefork.pm line 10, <DATA> line 1092. BEGIN failed--compilation aborted at /root/cloudforecast/extlib/lib/perl5/Parallel/Prefork.pm line 10, <DATA> line 1092. Compilation failed in require at /root/cloudforecast/extlib/lib/perl5/Plack/Handler/Starlet.pm line 6, <DATA> line 1092. BEGIN failed--compilation aborted at /root/cloudforecast/extlib/lib/perl5/Plack/Handler/Starlet.pm line 6, <DATA> line 1092. Compilation failed in require at /root/cloudforecast/extlib/lib/perl5/Plack/Util.pm line 23, <DATA> line 1092. 検索してみたのですが似たような現象がなかったので perlのバージョンを10.0.1に変更し同じように実行したところ ./cloudforecast_web -p 5000 -c cloudforecast.yaml -l server_list.yaml perl: symbol lookup error: /root/cloudforecast/extlib/lib/perl5/x86_64-linux/auto/Data/MessagePack/MessagePack.so: undefined symbol: Perl_xs_apiversion_bootcheck と出たました。 http://d.hatena.ne.jp/studio3104/20130116/1358304522 で再インストールすると直るとあったのでやってみたのですが変わりませんでした。 うまくいかない原因にはどういった可能性がありますでしょうか? また、rootでperlbrewを入れてしまったのですが後々、問題が出る可能性はありますでしょうか? その場合perlbrewインストール前の状態に戻すにはどのような手順で行えばよいでしょうか? よろしくお願い致します。

yosakun
質問者

補足

ご教授ありがとうございます。 おっしゃる通りバージョンが5.8.8のままでした。 まだ、実行していないのですが perlbrewを使えば上記の作業をせずともうまくいくだろう という解釈であっていますでしょうか? 色々とインストールしていたら今月のサーバーの転送量が制限を越えそうなので 来月、試してみようと思います。 実行後、再度お礼をしたいと思います。 よろしくお願いします。

全文を見る
すると、全ての回答が全文表示されます。

その他の回答 (1)

  • t-okura
  • ベストアンサー率75% (253/335)
回答No.2

No.1 です。 少し補足します。 OS 標準と違う perl を使うのであれば perlbrew をお勧めします。

参考URL:
http://www.seeds-std.co.jp/seedsblog/611.html
yosakun
質問者

お礼

あれから 全て入れなおしてなんとか表示されるようになりました。 ありがとうございました。

全文を見る
すると、全ての回答が全文表示されます。

関連するQ&A

  • gccをインストールしたい

    turobLinux10Dにgccをインストールしたいと思い、 http://www.cityfujisawa.ne.jp/~odagiri/book/gcc.htm を見ながらやってるのですが、 ./configure とうつと [root@localhost gcc-3.3.2]# ./configure Configuring for a i686-pc-linux-gnu host. Created "Makefile" in /root/Desktop/gcc-3.3.2 using "mt-frag" ./configure: cc: command not found *** The command 'cc -o conftest -g conftest.c' failed. *** You must set the environment variable CC to a working compiler. [root@localhost gcc-3.3.2]# とでてきます。 これはどういった意味でしょうか? お願いします。 なぜccがでてくるのでしょうか? ちなみにCDからでもできますが、こちらの方が 勉強になるとおもいやってます。

  • Fedora Core3でApacheのインストール

    お世話になります。 これからLinuxを勉強しようと思い、Fedora Core3 をインストールをしまして、Apache2をFedora Core3の パッケージではなく、他のCDからインストールを しようとしましたら、うまくいかずに困っています。 原因はどのようなことなのでしょうか。 よろしくお願いいたします。 コマンド文はこのようになっていました。 [root@localhost httpd-2.0.50]# ./configure --enable-so checking for chosen layout... Apache checking for working mkdir -p... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu Configuring Apache Portable Runtime library ... checking for APR... reconfig configuring package in srclib/apr now checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu Configuring APR library Platform: i686-pc-linux-gnu checking for working mkdir -p... yes APR Version: 0.9.5 checking for chosen layout... apr checking for gcc... no checking for cc... no checking for cc... no checking for cl... no configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. configure failed for srclib/apr [root@localhost httpd-2.0.50]# make make: *** ターゲットが指定されておらず、makefile も見つかりません。中止。 [root@localhost httpd-2.0.50]#

  • *** ターゲット `all' を make するルールがありません. 中止。

    エラーの原因がわからず困っています。 [root@ocn apache_1.3.29_normal]# ./configure --prefix=/opt/apache \ > --enable-module=so Configuring for Apache, Version 1.3.29 + using installation path layout: Apache (config.layout) Creating Makefile Creating Configuration.apaci in src Creating Makefile in src + configured for Linux platform Error: could not find any of these C compilers anywhere in your PATH: gcc cc acc c89 Configure terminated [root@ocn apache_1.3.29_normal]# make ===> src make[1]: 入ります ディレクトリ `/usr/src/apache_1.3.29_normal' make[2]: 入ります ディレクトリ `/usr/src/apache_1.3.29_normal/src' make[2]: *** ターゲット `all' を make するルールがありません. 中止。 make[2]: 出ます ディレクトリ `/usr/src/apache_1.3.29_normal/src' make[1]: *** [build-std] エラー 2 make[1]: 出ます ディレクトリ `/usr/src/apache_1.3.29_normal' make: *** [build] エラー 2

  • Apacheのバージョンアップでエラー

    既存Apache2.2.15から2.2.22へマイナーバージョンアップをやってみたのですが、 途中でエラーが表示されてしまいました。 すみません。エラーの理由が分かれば教えていただけないでしょうか。 OSはCentOS6です。 #cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bk(バックアップ) #/usr/bin/apachectl stop #tar zxvf ./httpd-2.2.22.tar.gz (ダウンロードしたものを展開) #cd httpd-2.2.22 #./configure --prefix=/etc/httpd #./configureまで来て、以下のエラーが表示されました。 又、makeをしようとしても当然configureの設定が終了していないので エラーになっていると思われます。 checking for chosen layout... Apache checking for working mkdir -p... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu Configuring Apache Portable Runtime library ... checking for APR... reconfig configuring package in srclib/apr now checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu Configuring APR library Platform: i686-pc-linux-gnu checking for working mkdir -p... yes APR Version: 1.4.5 checking for chosen layout... apr checking for gcc... no checking for cc... no checking for cl.exe... no configure: error: in `/httpd-2.2.22/srclib/apr': configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. configure failed for srclib/apr [root@web01 httpd-2.2.22]# make make: *** ターゲットが指定されておらず, makefile も見つかりません. 中止. あともう1点教えていただきたいです。 アップグレードが途中で失敗している状態なのですが、configureまでであれば、既存のApacheには 影響していないでしょうか?

  • FedoraCore1で perlのTkをインストールできない

    WindowsのActivePerlは何の意識もせず、Tkが使えましたが、FC1でTkを使おうと、 perl -MCPAN -e shellで cpan>install Tkとしましたが、 途中でエラーになります。 Can't stat /root/.cpan/build/Tk-804.027 (そのようなファイルやディレクトリはありません。 /usr/lib/perl5/5.8.3/CPAN.pm line 3947 CPAN.pm: Going to build N/NI/NI-S/Tk-804.027.tar.gz PPM for perl5.008003 Test Compiling config/signedchar.c /usr/bin/perl is installed in /usr/lib/perl5/5.8.3/i386-linux-thread-multi okay Test Compiling config/Ksprintf.c Test Compiling config/tod.c Test Compiling -DTIMEOFDAY_TZ config/tod.c TZ gettimeofday() Cannot find X include files via /usr/X11R6/include Cannot find X include files anywhere at ./myConfig line 332. Compilation failed in require at Makefile.PL line 36. BEGIN failed--compilation aborted at Makefile.PL line 38. Using -L/usr/X11R6/lib to find /usr/X11R6/lib/libX11.so.6.2 Running make test Make had some problems, maybe interrupted? Won't test Running make install Make had some problems, maybe interrupted? Won't install 他にインストールする方法はないのでしょうか?

  • DBD::mysql モジュール

    Perl から MySQL サーバへ接続するため、DBI モジュールを使用しようと思ったのですが、次のエラーメッセージが出て使用できませんでした。 ---------- install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .) at (eval 4) line 3. Perhaps the DBD::mysql perl module hasn't been fully installed, or perhaps the capitalisation of 'mysql' isn't right. Available drivers: DBM, ExampleP, File, Gofer, Proxy, SQLite, Sponge, mysqlPP. at test.pl line 46 ---------- そこで、コマンドプロンプトから CPAN 経由で DBD::mysql モジュールをインストールしようとしたのですが、「Warning: No success on command[C:\Perl\bin\perl.exe Makefile.PL]」というメッセージが表示され、インストールに失敗してしまいます。 何が原因なのでしょうか? 解決策をお教え頂ければ幸いです。宜しくお願い致します。 以下にコマンドプロンプトの表示文を示します。 ---------- CPAN: File::Temp loaded ok (v0.18) CPAN: YAML loaded ok (v0.66) CPAN.pm: Going to build C/CA/CAPTTOFU/DBD-mysql-4.006.tar.gz Failed to determine directory of mysql.h. Use perl Makefile.PL --cflags=-I<dir> to set this directory. For details see the INSTALL.html file, section "C Compiler flags" or type perl Makefile.PL --help Warning: No success on command[C:\Perl\bin\perl.exe Makefile.PL] CAPTTOFU/DBD-mysql-4.006.tar.gz C:\Perl\bin\perl.exe Makefile.PL -- NOT OK Running make test Make had some problems, won't test Running make install Make had some problems, won't install ---------- OS : Microsoft Windows XP Home Edition Version 2002 Service Pack 2 perl : ActivePerl v5.10.0 built for MSWin32-x86-multi-thread

    • ベストアンサー
    • Perl
  • make 時に標準以外のディレクトリにインストールされたモジュールを見つけるには

    perl を /usr/local にインストールし、AppConfig を以下のようにインストールしました。 % perl Makefile.PL PREFIX=/opt/perl % make % make test # make install この結果、AppConfig に依存関係がある Template-Toolkit をインストールしようとした際に AppConfig を見つけられずに以下のようなエラーが出てしまいます。 % perl Makefile.PL PREFIX=/opt/perl % make % make test # make install Can't locate AppConfig.pm in @INC (@INC contains: blib/lib blib/arch /usr/local/lib/perl5/5.8.8/i386-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/i386-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at bin/ttree line 32. BEGIN failed--compilation aborted at bin/ttree line 32. コマンドラインから perl を起動する場合ですと、-I オプションを使えばよいのでしょうが (-I/opt/bugzilla/lib/perl5/site_perl/5.8.8)、Makefile.PL から Makefile を作成する際に、これと同様のことを行う方法はないでしょうか? ダメな場合、Makefile のどこを修正すれば INC にパスを追加できるのでしょうか?

    • ベストアンサー
    • Perl
  • rsyncのインストール(エラー発生)

    solaris9のマシンでデータの同期を行いたい為、rsyncを導入しようと思いました。 http://ash.jp/freebsd/rsync.htm などのサイトを参考にインストールを実行しようとしたところ、 ------------------------------------------------------------ # ./configure configure: Configuring rsync 2.6.8 checking build system type... sparc-sun-solaris2.8 checking host system type... sparc-sun-solaris2.8 checking target system type... sparc-sun-solaris2.8 checking for gcc... no checking for cc... no checking for cc... no checking for cl... no configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. # ------------------------------------------------------------ のようにエラーが発生してしまいました Cコンパイラが見つからない(?) のようなことだと思われるのですが 解決方法として如何すればよいのでしょうか? よろしくお願い致します。   

  • ./configureのエラー

    DEC XP1000 に フリーソフトの「ImageMagick」を インストールしたいのですが、 jpegライブラリがうまく ビルドできません。 jpegライブラリ単体での makeとinstallは うまく行ったのですが、 全体での./configureで jpegだけうまく行きません。 configのログを見ると、下記のconfdefs.hが 出てくる度に引っかかっているようです。 このファイルをWWWで検索するとヒットするのですが、 具体的に説明しているHPは見つかっていません。 どなたか、アドバイスや関連HPを教えていただければ、 助かります。 よろしくお願いします。 configure: failed program was: #line 1736 "configure" #include "confdefs.h" int main () { #ifndef __CYGWIN__ # define __CYGWIN__ __CYGWIN32__ #endif return __CYGWIN__; ; return 0; } configure:1758: result: no configure:1762: checking for mingw32 environment configure:1778: gcc -c -O conftest.c >&5 configure: In function `main': configure:1773: `__MINGW32__' undeclared (first use in this function) configure:1773: (Each undeclared identifier is reported only once configure:1773: for each function it appears in.) configure: failed program was:

  • g++について

    FedoreCore3にjikestというソフトをインストールしようとしています。 このソフトをダウンロードしてきてconfigureしようとするとエラーがでてきてしまい先にすすめません。 ターミナルではこのように出力されます。 checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables See `config.log' for more details. そしてconfig.logをみてみると configure:2023: checking for C++ compiler version configure:2026: g++ --version </dev/null >&5 ./configure: line 2027: g++: command not found configure:2029: $? = 127 configure: failed program was: というように記述されています g++がどうやらインストールされていないのでこのようなことになっているようなのですが、 g++をどこからどのようにインストールすればいいのかわかりません。 どなたかアドバイスおねがいします。