0

I'm trying to install tbb without sudo access. I followed these steps, which work. However, is there any way to automatically point the linker to tbb without having to include -I$TBB_INCLUDE -Wl,-rpath,$TBB_LIBRARY_RELEASE -L$TBB_LIBRARY_RELEASE -ltbb with every compilation command?

2easy
  • 9
  • 5
  • Aren't you using some kind of build system? Or at least a shell script. – Paul Sanders Feb 18 '22 at 20:56
  • @PaulSanders - No, if I try to use `make`, it trys to install to the root directory, which I do not have permission to edit. Hence this approach – 2easy Feb 18 '22 at 22:11
  • Oh, OK. Perhaps you can tweak their Makefile before you invoke it. – Paul Sanders Feb 18 '22 at 23:52
  • use the "tbbvars.sh" scripts to set your environment variables. For example, go to the directory where the library was built and use "source tbbvars.sh" to set tbb environment variables. – Noorjahan - Intel Feb 24 '22 at 12:06

0 Answers0