How to find where a library is installed?

Tim

I have installed libgoogle-perftools-dev via software center in Ubuntu 12.04. As suggested by http://pj.freefaculty.org/blog/?p=140, I want to add to my cpp file:

#include <gperftools/profiler.h>

But the compiler says

 gperftools/profiler.h: No such file or directory

I tried to find where it is:

$ locate -i gperftools

no return, and

$ locate -i "profiler.h"

returns

/usr/include/c++/4.6/profile/impl/profiler.h
/usr/src/linux-headers-3.2.0-23-generic-pae/include/config/function/profiler.h

which I am not sure if are for gperftools.

So I wonder how to find

  • where libgoogle-perftools-dev is installed?
  • where gperftools/profiler.h is located?
steeldriver

Probably the issue with the locate command is that the database has not yet been updated to reflect the newly-installed package files. You could force an update (sudo updatedb) or use the find command instead, but probably the easiest solution on systems like Ubuntu that use the dpkg package management tools is to list the package contents

dpkg -L libgoogle-perftools-dev

or to check for the profiler.h file location specifically

dpkg -L libgoogle-perftools-dev | grep 'profiler.h'

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to find location of installed library

From Dev

How to find location of installed library

From Dev

How to find where an app was installed?

From Dev

How to find the version of installed library in Python?

From Dev

How do I find where an application is installed?

From Java

How to find where gem files are installed

From Dev

How to find out from where an app was installed?

From Dev

How to find where a package is installed by pacman?

From Dev

How to find where binutils is installed on centOS 7?

From Dev

How do I find where an application is installed?

From Dev

How to find out where ideviceinstaller is installed to?

From Dev

How to find the path of where a Ruby Gem is installed

From Dev

How to find out where different packages are installed?

From Dev

How to find where the memcached on Mac OS is installed?

From Dev

cmake: how to tell library where to find dependencies

From Dev

cmake: how to tell library where to find dependencies

From Dev

How to find out if I have gd library or imagemagick installed?

From Dev

How do I find out the version number of an installed library?

From Dev

Xcode cannot find installed library

From Dev

Xcode cannot find installed library

From Dev

How do I find out where a program has been installed?

From Dev

How can I find out where the gvm installed groovy?

From Dev

How do find where Grails/Groovy installed on a Mac?

From Dev

How to find where Tomcat is install/running from when it is not installed as a service

From Dev

How to find the base directory where vendor is installed from a composer package

From Dev

How do I find out where a program has been installed?

From Dev

How can I find out where the gvm installed groovy?

From Dev

How to find out where an application is installed, on physical disk?

From Dev

How do find where Grails/Groovy installed on a Mac?

Related Related

  1. 1

    How to find location of installed library

  2. 2

    How to find location of installed library

  3. 3

    How to find where an app was installed?

  4. 4

    How to find the version of installed library in Python?

  5. 5

    How do I find where an application is installed?

  6. 6

    How to find where gem files are installed

  7. 7

    How to find out from where an app was installed?

  8. 8

    How to find where a package is installed by pacman?

  9. 9

    How to find where binutils is installed on centOS 7?

  10. 10

    How do I find where an application is installed?

  11. 11

    How to find out where ideviceinstaller is installed to?

  12. 12

    How to find the path of where a Ruby Gem is installed

  13. 13

    How to find out where different packages are installed?

  14. 14

    How to find where the memcached on Mac OS is installed?

  15. 15

    cmake: how to tell library where to find dependencies

  16. 16

    cmake: how to tell library where to find dependencies

  17. 17

    How to find out if I have gd library or imagemagick installed?

  18. 18

    How do I find out the version number of an installed library?

  19. 19

    Xcode cannot find installed library

  20. 20

    Xcode cannot find installed library

  21. 21

    How do I find out where a program has been installed?

  22. 22

    How can I find out where the gvm installed groovy?

  23. 23

    How do find where Grails/Groovy installed on a Mac?

  24. 24

    How to find where Tomcat is install/running from when it is not installed as a service

  25. 25

    How to find the base directory where vendor is installed from a composer package

  26. 26

    How do I find out where a program has been installed?

  27. 27

    How can I find out where the gvm installed groovy?

  28. 28

    How to find out where an application is installed, on physical disk?

  29. 29

    How do find where Grails/Groovy installed on a Mac?

HotTag

Archive