|
From: Luigi B. <lui...@gm...> - 2023-05-25 07:13:57
|
Hello Marius,
as Cay mentioned, I'd try using "pip install QuantLib" and sidestep the
compilation entirely. If that doesn't work, may you please give more
details on your operating system, and may you run "pip debug --verbose"
inside the Docker container and report the output?
Thanks,
Luigi
On Thu, May 25, 2023 at 12:43 AM Cay Oest <cay...@fr...> wrote:
> Dear Marius,
>
>
>
> Given that you did choose not to
>
> `pip install ql`
>
> in dedicated `slim` Python Docker container
>
> `python:slim`
>
> for whatever reason, and that you really needed to grab the latest version
>
> `quantLib 1.30`,
>
> And really needed to use
>
> `ninja`
>
> you should ask the community, I refer to sweemer’s reply.
>
>
>
> Otherwise:
>
> You could just use pip or in that particular weird container
>
> `apt install quantlib`, which will get you version 1.21. The underlying
> Linux version is `Debian`.
>
> Well, if 1.21 doesn’t suffice, you should really refrain to git.
>
> There is no point in insisting on the latest version of QuantLib or
> <random_github_repository> without using git. 😉
>
>
>
> Kind regards,
>
>
>
> Cay
>
>
>
> *From:* Jonathan Sweemer <sw...@gm...>
> *Sent:* Mittwoch, 24. Mai 2023 22:42
> *To:* Marius Räsener <mar...@fi...>
> *Cc:* qua...@li...
> *Subject:* Re: [Quantlib-users] Building and installing QuantLib on
> Docker with aarch64 (Apple silicon)
>
>
>
> 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
>
> _______________________________________________
> QuantLib-users mailing list
> Qua...@li...
> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>
|