I am trying to get QuantLib version 1.13 running on Amazon Linux.
I found some
.rpm files at https://pkgs.org/download/QuantLib, although there is an up to date
.rpm for Fedora, there isn't one for CentOS (the CentOS files seem to be compatible with Amazon Linux).
I was able to successfully build the library from source, however when I do so it creates a 1.2GB
libQuantLib.a file and a 421MB
.rpm files at https://pkgs.org/download/QuantLib are all ~25MB.
Ultimately I am trying to pack QuantLib well enough that I can run it in an AWS Lambda environment. This would require the compressed binaries to be ~50MB and be compatible with the Amazon Linux AMI for Lambda.
Why is there such a discrepancy between the size of the
.rpmfile and the
libQuantLib.so.0.0.0files that result when I build from source? Is the
.rpmfile not a full version of the library? Does the result of my build contain a lot of fluff?
Is it possible to build from source and achieve the ~25MB size or is this effort fruitless?