crow icon indicating copy to clipboard operation
crow copied to clipboard

Not found TcMalloc

Open EugeneTan10 opened this issue 8 years ago • 4 comments

Hi,

when i try to build the library, cmd cannot detect where is TcMalloc despite its in cmake file .. Without the TcMalloc been detected, then i cannot proceed to "make". Everytime i typed in "make" in the cmd, the cmd always return "make:***no target specified or no makefiles found. Stop" this message. is it how it supposed to be ?

EugeneTan10 avatar May 13 '16 04:05 EugeneTan10

I am assuming you are using Linux. On Debian / Ubuntu -like OS: use sudo apt-get install google-perftools

Or, on RedHat / Fedora - like OS: use sudo yum install google-perftools

If you're using high version of Fedora (in which yum is replaced by DNF), use sudo dnf install google-perftools

Then check in directories /usr/lib or /usr/lib64 (if your system is 64-bit), some file named like libtcmalloc.so will appear there (in either directory). More steps if needed: If the name is extactly libtcmalloc.so, you'll be fine. If the name is something like libtcmalloc.so.1.61.0 (with version numbers), you should make a soft link by using sudo ln -s /path/to/lib/libtcmalloc.so.1.61.0 /path/to/lib/libtcmalloc.so. (The version number may be various, and the /path/to/lib is where you find the .so file)

boxsnake avatar May 22 '16 18:05 boxsnake

I fixed CMakeLists.txt to make examples compile when TcMalloc doesn't exist.

ipkn avatar Sep 08 '16 10:09 ipkn

I had this problem. solution:

  • sudo apt install -y google-perftools libgoogle-perftools-dev
  • sudo ln -s /usr/lib/x86_64-linux-gnu/libtcmalloc.so /usr/lib/libtcmalloc.so

uptonking avatar Jul 16 '19 13:07 uptonking

@uptonking 's solution helped, but instead I installed the libtcmalloc_minimal.so that was suggested from the README.md

  • sudo apt install libtcmalloc_minimal.so

  • sudo ln -s /usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so /usr/lib/libtcmalloc_minimal.so