6

経由でRQuantLibパッケージをインストールしようとしています

install.packages("RQuantLib")

次のエラーが表示され続けます

* installing *source* package ‘RQuantLib’ ...
** package ‘RQuantLib’ successfully unpacked and MD5 sums checked
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking for R... yes
checking for quantlib-config... yes
checking for Boost development files... no
configure: error: Boost development files not found
ERROR: configuration failed for package ‘RQuantLib’
* removing ‘/usr/local/Cellar/r/3.1.1/R.framework/Versions/3.1/Resources/library/RQuantLib’

私はすでにやった

brew install boost
brew install quantlib

両方のシンボリックリンクをチェックしましたが、問題ないはずです(両方のリンク解除/リンクを実行しました)。


解決 :

eddの回答に基づいて以下のコマンドを使用し、私のために働いた

install.packages("RQuantLib", configure.args="--with-boost-include=/usr/local/include/ --with-boost-lib=/usr/local/lib/")
4

1 に答える 1

3

*.tar.gzこれらを使用して、ファイルに基づくシェルで実行してみてください

edd@max:~/git/rquantlib(master)$ ./configure --help|grep boost
  --with-boost-include=INCLUDE_PATH
  --with-boost-lib=LIB_PATH
edd@max:~/git/rquantlib(master)$ 

install.packages()または、引数を渡す場所についてもヘルプを参照してくださいconfigure。最初の方法の方が簡単です。

本質的には、Boost ヘッダー (そしておそらくライブラリも) を見つける構成を支援する必要があるようです。

于 2014-10-07T20:30:08.880 に答える