Skip to main content
deleted 89 characters in body
Source Link
Rui F Ribeiro
  • 58k
  • 28
  • 156
  • 238

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 .rpm file and the libQuantLib.a / libQuantLib.so.0.0.0 files that result when I build from source? Is the .rpm file 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?

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 .rpm file and the libQuantLib.a / libQuantLib.so.0.0.0 files that result when I build from source? Is the .rpm file 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?

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.

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 .rpm file and the libQuantLib.a / libQuantLib.so.0.0.0 files that result when I build from source? Is the .rpm file 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?

edited tags
Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 265
Source Link
bphi
  • 115
  • 4

Building QuantLib on Amazon Linux

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 .rpm file and the libQuantLib.a / libQuantLib.so.0.0.0 files that result when I build from source? Is the .rpm file 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?