RRZE-HPC / likwid

Performance monitoring and benchmarking suite
https://hpc.fau.de/research/tools/likwid/
GNU General Public License v3.0
1.65k stars 226 forks source link

[BUG] Missing Likwid after installation with modified PREFIX #546

Closed andy295 closed 10 months ago

andy295 commented 1 year ago

The first time I installed LIKWID I forgot to set the path where to install it.

So I removed the installation by using sudo make uninstall. Then I used 'make cleanandmake distclean. I modified theconfig.mkfile in this way PREFIX ?= /usr/local/likwidand I reinstalled likwid withmake && sudo make install`.

After that I not more able to use likwid. For example if I digit lokwid-topology I obtain the following error message:

Command 'likwid-topology' not found, but can be installed with: sudo apt install likwid

I also tried to set the environment variable, first I added /usr/local/likwid then /usr/local/likwid/bin/. In the first case nothing happened, in the second case the system said that it was not able to found the lua interpreter.

Did I forget something?

TomTheBear commented 1 year ago

The paths /usr/local/likwid is not common, thus not in the default search list of operating systems.

You can add these lines to your .bashrc (or similar):

export PATH=/usr/local/likwid/sbin:/usr/local/likwid/bin:${PATH}
export LD_LIBRARY_PATH=/usr/local/likwid/lib:${LD_LIBRARY_PATH}

For simpler usage, I commonly define also:

export LIKWID_LIBDIR=/usr/local/likwid/lib
export LIKWID_INCDIR=/usr/local/likwid/include

If you are not sure which LIKWID is really called, use which likwid-topology to get the absolute path. If it is still /usr/local/bin/likwid-topology, something with the uninstallation went wrong.

TomTheBear commented 10 months ago

Were you able to resolve this?

TomTheBear commented 10 months ago

I close the issue now. If the problem persists, please re-open it.