Installation directory not created
I followed the example installation instructions (https://github.com/oneapi-src/oneTBB/blob/master/INSTALL.md) to install oneTBB with cmake on Ubuntu 18.04 in /tmp, but the installation directory /tmp/my_installed_onetbb is not created.
$ cd /tmp/oneTBB/build/ $ cmake -DCMAKE_INSTALL_PREFIX=/tmp/my_installed_onetbb -DTBB_TEST=OFF .. -- IPO enabled -- The tbbbind target will be configured using the HWLOC 1.11.9 -- Configuring done -- Generating done -- Build files have been written to: /tmp/oneTBB/build $ cmake --build . [ 70%] Built target tbb [ 87%] Built target tbbmalloc [ 95%] Built target tbbmalloc_proxy [100%] Built target tbbbind $ cmake --install . -- IPO enabled -- The tbbbind target will be configured using the HWLOC 1.11.9 -- Configuring done -- Generating done -- Build files have been written to: /tmp/oneTBB/build $ ls -al /tmp/my_installed_onetbb ls: cannot access '/tmp/my_installed_onetbb': No such file or directory
Thanks for the report. We'll look into it. As a workaround, for installation please run "make install" instead of "cmake --install ." Please let us know if you encounter any further issues.
Thanks, "make install" installs oneTBB into /tmp/my_installed_onetbb. Is there a recommended way to uninstall oneTBB? Would "make uninstall" work or is "rm -rf /tmp/my_installed_onetbb" the proper way?
Yes, simply removing the tbb directory with "rm -rf /tmp/my_installed_onetbb" should be sufficient to uninstall.
Seems like the problem is solved. If any other questions are left, feel free to reopen this issue.
Does "cmake --install " work now?
I tried to do it via cmake --install.
cmake --install .
-- Install configuration: "RelWithDebInfo"
-- Installing: /tmp/my_installed_onetbb/include
-- Installing: /tmp/my_installed_onetbb/include/oneapi
-- Installing: /tmp/my_installed_onetbb/include/oneapi/tbb
>> ls -la /tmp/my_installed_onetbb
total 20
drwxr-xr-x 5 iisaev iisaev 4096 Oct 6 09:42 .
drwxrwxrwt 6 root root 4096 Oct 6 09:42 ..
drwxr-xr-x 4 iisaev iisaev 4096 Oct 6 09:42 include
drwxr-xr-x 4 iisaev iisaev 4096 Oct 6 09:42 lib
drwxr-xr-x 3 iisaev iisaev 4096 Oct 6 09:42 share