源碼安裝swig

1. ./configure --prefix=/opt

報錯:


configure: error: 

        Cannot find pcre-config script from PCRE (Perl Compatible Regular Expressions)

        library package. This dependency is needed for configure to complete,
        Either:
        - Install the PCRE developer package on your system (preferred approach).
        - Download the PCRE source tarball, build and install on your system
          as you would for any package built from source distribution.
        - Use the Tools/pcre-build.sh script to build PCRE just for SWIG to statically
          link against. Run 'Tools/pcre-build.sh --help' for instructions.
          (quite easy and does not require privileges to install PCRE on your system)
        - Use configure --without-pcre to disable regular expressions support in SWIG
          (not recommended).

See `config.log' for more details


需要安裝pcre的開發包:

yum search pcre

 yum install pcre-devel.x86_64(根據搜索結果自己選)


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章