oneTBB icon indicating copy to clipboard operation
oneTBB copied to clipboard

Installation directory not created

Open stumarcus314 opened this issue 3 years ago • 3 comments

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

stumarcus314 avatar May 30 '22 23:05 stumarcus314

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.

egfefey avatar May 31 '22 16:05 egfefey

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?

stumarcus314 avatar Jun 01 '22 03:06 stumarcus314

Yes, simply removing the tbb directory with "rm -rf /tmp/my_installed_onetbb" should be sufficient to uninstall.

egfefey avatar Jun 02 '22 14:06 egfefey

Seems like the problem is solved. If any other questions are left, feel free to reopen this issue.

isaevil avatar Oct 05 '22 11:10 isaevil

Does "cmake --install " work now?

stumarcus314 avatar Oct 05 '22 16:10 stumarcus314

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

isaevil avatar Oct 06 '22 07:10 isaevil