JBesaw29 / likwid

Automatically exported from code.google.com/p/likwid
GNU General Public License v3.0
0 stars 0 forks source link

Installation fails for install paths ending with a "/" #50

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Set install path with a slash at the end
2. make && make install
3. likwid-pin will result in an error

What is the expected output? What do you see instead?
Usual likwid-pin behavior.
Instead, no pinning and error:
~/helper/likwid-2.2> likwid-pin -c0-1 uname
[likwid-pin] Main PID -> core 0 - OK
ERROR: ld.so: object '~/helper/likwid-2.2-inst' from LD_PRELOAD cannot be 
preloaded: ignored.   

What version of the product are you using? On what operating system?
2.2, Linux

Please provide any additional information below.

Original issue reported on code.google.com by Johannes...@googlemail.com on 28 Jun 2011 at 6:47

GoogleCodeExporter commented 8 years ago
There are two possible solutions, actually only one real solution.

1. Add a comment that trailing slashes are not working
2. Add make magic to remove any trailing slash 

I will probably implement solution 2 for next minor release.
Thanks for the report.

Original comment by jan.trei...@gmail.com on 28 Jun 2011 at 11:46

GoogleCodeExporter commented 8 years ago
Added abspath function for paths in config.mk. This removes any duplicate 
slashes introduced by trailing slashes in PREFIX.

This change will be part of next minor release.

Original comment by jan.trei...@gmail.com on 29 Jul 2011 at 10:08