|
From: Jonathan S. <sw...@gm...> - 2023-05-24 20:42:12
|
Hi Marius, This was reported on GitHub here: https://github.com/lballabio/QuantLib/issues/1675 Your options are 1) download from the master branch instead of the 1.30 tag, 2) manually apply the fix linked in the issue above, or 3) install using automake instead of CMake. 2023년 5월 25일 (목) 02:32, Marius Räsener <mar...@fi...>님이 작성: > Hey everybody, > > I’m trying to get a working docker image to finally run some Python code > which uses QuantLib. > > Dockerfile: > > ``` > FROM python:slim > > RUN apt-get update \ > && apt-get install -y \ > curl \ > build-essential \ > libboost-all-dev \ > cmake \ > ninja-build > > RUN curl -L > https://github.com/lballabio/QuantLib/releases/download/QuantLib-v1.30/QuantLib-1.30.tar.gz > --output QuantLib-1.30.tar.gz \ > && tar xzf QuantLib-1.30.tar.gz \ > && rm QuantLib-1.30.tar.gz > ``` > > then I just run an instance and continue manually (to run have a faster > trial and error loop) > > docker build --ssh default . -f Dockerfile -t foo > > and > > docker run -it --rm foo bash > > inside the container I do the following: > > cd QuantLib-1.30/build > cmake .. -G Ninja -D CMAKE_BUILD_TYPE=Release > ninja > ninja install > > Now, at `ninja install` I run into the following issue, and it seems I > can’t find anything useful in the internetz. > > . > . > . > -- Installing: /usr/local/include/ql/currencies/all.hpp > -- Installing: /usr/local/include/ql/experimental/all.hpp > CMake Error at ql/cmake_install.cmake:5243 (file): > file INSTALL cannot find > "/QuantLib-1.30/build/ql/experimental/amortizingbonds/all.hpp": No such > file or directory. > Call Stack (most recent call first): > cmake_install.cmake:47 (include) > > > FAILED: CMakeFiles/install.util > cd /QuantLib-1.30/build && /usr/bin/cmake -P cmake_install.cmake > ninja: build stopped: subcommand failed. > > Can someone point me into the right direction? > > Disclaimer: I actually work at this from a ops perspective and I don’t > really know what QuantLib is doing or any other details about it :) > > Thx in advance and have a nice day, > Marius > _______________________________________________ > QuantLib-users mailing list > Qua...@li... > https://lists.sourceforge.net/lists/listinfo/quantlib-users > |