|
From: Marius R. <mar...@fi...> - 2023-05-24 17:28:54
|
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 |