« 認証付きウェブページから画像をwgetする | トップページ | 玄箱をACアダプタ化 »

2012年11月10日 (土)

pcre-8.31の make 失敗

Apache2.4.2のインストール時にpcre-8.31のmake失敗

対象は以下。
  Linux kuroboxpro 2.6.32-5-orion5x #1 Sun May 6 21:27:49 UTC 2012 armv5tel GNU/Linux

付随してインストールしたモノ。
  apr-1.4.6.tar.gz
  apr-util-1.4.1.tar.gz
  pcre-8.31.tar.gz  ← 失敗orz
  openssl-1.0.1c.tar.gz

Perl Compatible Regular Expressions の make に失敗。
  libtool: compile: unrecognized option `-DHAVE_CONFIG_H'
  libtool: compile: Try `libtool --help' for more information.
  make[1]: *** [pcrecpp.lo] Error 1
  make[1]: Leaving directory `/home/takasi/pcre-8.31'
  make: *** [all] Error

  pcre-8.31 configuration summary:

      Install prefix .................. : /usr/local
      C preprocessor .................. : gcc -E
      C compiler ...................... : gcc
      C++ preprocessor ................ :
      C++ compiler .................... :
      Linker .......................... : /usr/bin/ld
      C preprocessor flags ............ :
      C compiler flags ................ : -O2
      C++ compiler flags .............. :
      Linker flags .................... :
      Extra libraries ................. :

C++コンパイラーとその他が入っていない?ので確認。
  # aptitude show g++
  Package: g++
  State: not installed
  Version: 4:4.4.5-1
  Priority: optional
  Section: devel
  Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
  Uncompressed Size: 41.0 k
  Depends: cpp (>= 4:4.4.5-1), gcc (>= 4:4.4.5-1), g++-4.4 (>= 4.4.5-1~), gcc-4.4 (>=
           4.4.5-1~)
  Provides: c++-compiler
  Description: The GNU C++ compiler
   This is the GNU C++ compiler, a fairly portable optimizing compiler for C++.

   This is a dependency package providing the default GNU C++ compiler.

インストールされていないのでインストール。
  # aptitude install g++
  The following NEW packages will be installed:
  g++ g++-4.4{a} libstdc++6-4.4-dev{a}
  0 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
  Need to get 5802 kB of archives. After unpacking 20.2 MB will be used.
  Do you want to continue? [Y/n/?] Y
  Get:1 http://ftp.jp.debian.org/debian/ squeeze/main libstdc++6-4.4-dev armel 4.4.5-8 [1634 kB]
  Get:2 http://ftp.jp.debian.org/debian/ squeeze/main g++-4.4 armel 4.4.5-8 [4167 kB]
  Get:3 http://ftp.jp.debian.org/debian/ squeeze/main g++ armel 4:4.4.5-1 [1368 B]
  Fetched 5802 kB in 2s (2555 kB/s)
  Selecting previously deselected package libstdc++6-4.4-dev.
  (Reading database ... 26388 files and directories currently installed.)
  Unpacking libstdc++6-4.4-dev (from .../libstdc++6-4.4-dev_4.4.5-8_armel.deb) ...
  Selecting previously deselected package g++-4.4.
  Unpacking g++-4.4 (from .../g++-4.4_4.4.5-8_armel.deb) ...
  Selecting previously deselected package g++.
  Unpacking g++ (from .../g++_4%3a4.4.5-1_armel.deb) ...
  Processing triggers for man-db ...
  Setting up g++-4.4 (4.4.5-8) ...
  Setting up libstdc++6-4.4-dev (4.4.5-8) ...
  Setting up g++ (4:4.4.5-1) ...
  update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode.

インストールされたか確認。
  # dpkg -L g++
  /.
  /usr
  /usr/share
  /usr/share/man
  /usr/share/man/man1
  /usr/share/doc
  /usr/bin
  /usr/share/doc/g++
  /usr/bin/arm-linux-gnueabi-g++
  /usr/bin/g++

再度 configure を実行。
  pcre-8.31 configuration summary:

    Install prefix .................. : /usr/local
    C preprocessor .................. : gcc -E
    C compiler ...................... : gcc
    C++ preprocessor ................ : g++ -E
    C++ compiler .................... : g++
    Linker .......................... : /usr/bin/ld
    C preprocessor flags ............ :
    C compiler flags ................ : -O2
    C++ compiler flags .............. : -O2
    Linker flags .................... :
    Extra libraries ................. :

これで make && make install を実行。

※参考  m(_ _)m
http://d.hatena.ne.jp/rx7/20081031/p1

« 認証付きウェブページから画像をwgetする | トップページ | 玄箱をACアダプタ化 »

コメント

この記事へのコメントは終了しました。

トラックバック


この記事へのトラックバック一覧です: pcre-8.31の make 失敗:

« 認証付きウェブページから画像をwgetする | トップページ | 玄箱をACアダプタ化 »