I installed arb and try to run this code:

#include "arb.h"

int main()
    arb_t x;
    arb_const_pi(x, 50 * 3.33);
    arb_printn(x, 50, 0); printf("\n");
    printf("Computed with arb-%s\n", arb_version);

But in terminal I got this error"

error while loading shared libraries: libarb.so:
cannot open shared object file: No such file or directory

How can I solve this problem?

I searched and there is a libarb.so in /usr/local/lib.

Edit: ‌Answers helped me and that error was solved but another one shown now:

error while loading shared libraries: libflint.so.13: 
cannot open shared object file: No such file or directory

There is a link to libflint.so.13 in /usr/local/lib, but is seems my QtCreator project cannot access it (probably because its name does not end with .so).

  • What commands are you using to compile? Where did you install arb to?
    – Thomas Ward
    Sep 13, 2015 at 13:30
  • ./configure make make install. Sep 13, 2015 at 13:31
  • 1
    Please don't add new problems into your question. The answer helped you. All other problems are new questions ;)
    – A.B.
    Sep 15, 2015 at 4:58

1 Answer 1


Your libarb.so is not in your library path. Check your env variable LD_LIBRARY_PATH. Sometimes helps running


especially if you installed the library manually.

And your second question

The missing file /usr/lib/libflint.so is part of the package libflint-dev


sudo apt-get install libflint-dev

Why? That's why.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.