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 libQuantLib.so.0.0.0 file. I'm fairly new to Linux and don't have a great understanding of what these files are for.
The .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.
My question:
Why is there such a discrepancy between the size of the
.rpmfile and thelibQuantLib.a/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?