0
でPCREライブラリにリンクすることはできません、私が行いますコンパイルオクターブ4.2.1 Linuxでは、GCC 4.9.3
./configure CFLAGS="-I/customlibs/pcre/gnu/8.40/include -L/customlibs/pcre/gnu/8.40/lib/" LD_LIBRARY_PATH="/customlibs/pcre/gnu/8.40/lib"
私も試してみました:
./configure CFLAGS="-I/customlibs/pcre/gnu/8.40/include" LDFLAGS="-L/customlibs/pcre/gnu/8.40/lib/" LD_LIBRARY_PATH="/customlibs/pcre/gnu/8.40/lib"
私はそれがpcre.hを見つけることができる方法として失ったが、それで何かを行うには失敗してい
checking pcre.h usability... yes
checking pcre.h presence... no
configure: WARNING: pcre.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: pcre.h: proceeding with the compiler's result
checking for pcre.h... yes
checking pcre/pcre.h usability... no
checking pcre/pcre.h presence... no
checking for pcre/pcre.h... no
checking whether pcre.h defines the macros we need... no
configure: error: to build Octave, you must have the PCRE library and header files installed
:これらの
どちら は同じ失敗を作り出します。私の設定行に何か間違っているのですか、あるいはpcreが壊れていますか?それが私のconfigure行であれば、どうすればpcreと正しくリンクできますか?私もしばらくの間、それで苦労しましたが、解決策は実際には非常に簡単だった
ls /customlibs/pcre/gnu/8.40/
bin
include
lib
share
予想される順番は-I -L、-lです。Octaveの場合、pcreがシステムパスになると書かれているので、外部バージョンを読み込むには多くの余分なステップが必要です。 gccが私のライブラリを指すようにするには、C_INCLUDE_PATHとCPLUS_INCLUDE_PATHを使用しなければなりませんでした。 – Volumetricsteve