1

I just installed GMP with ./configure...make and now I cannot seem to find where it installed to.

I checked in all the bins I could think of and nothing. It does import correctly when I write a C file and compile it though.

Where did GMP install to?

  • usually make will create some directory like bin or build where it will put the compiled binaries. – incBrain Apr 27 '16 at 17:19
  • In case of make install the files by default should be in /usr/local/bin etc. But maybe reading INSTALL.in will help OP to understand how installation works. – incBrain Apr 27 '16 at 17:37
  • If you really wrote a code that uses gmp, then you can run "ldd /path/to/your/executable" and that will print which libraries it binds to and where they are. Another option is just to run "make install" again and either watch what's happening carefully or redirect the output of make and see there the target of install. Probably, it's /usr/local/lib. – Gombai Sándor Apr 27 '16 at 21:12
  • @ClassStacker GMP is not GIMP and there is not much use in finding any executable. See: gmplib.org – Gombai Sándor Apr 27 '16 at 21:14
  • @GombaiSándor Yes indeed. I misread that. – Run CMD Apr 28 '16 at 6:25
0

Do configure --help and see what other options are available. By standard, --prefix overrides all of them, so you need to override config location after specifying the prefix.

If you know the name of binary you can search it (e.g. bash):

find / -name "*bash*" -executable -type f  2>/dev/null

When you will find it you can add soft link or extend PATH to be able execute it like gmp

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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