You are not logged in.
Hello Everyone,
This is my very first post here on this website. I need some help in installing cuda-toolkit. I am getting the below given errors and I am unable to understand how to fix it. I believe opencl-nvidia is conflicting with the nvidia-utils. I am also not able to remove nvidia-utils because of the dependencies. Could anyone help me here. Thanks!
command that I gave was -> pacman -S cuda-toolkit
resolving dependencies...
looking for inter-conflicts...
Targets (3): libcl-1.1-2 opencl-nvidia-302.17-1 cuda-toolkit-4.2.9-1
Total Download Size: 147.63 MiB
Total Installed Size: 695.41 MiB
Proceed with installation? [Y/n]
:: Retrieving packages from extra...
libcl-1.1-2-i686 8.1 KiB 119K/s 00:00 [###############################################################] 100%
opencl-nvidia-302.17-1-i686 10.2 MiB 1398K/s 00:07 [###############################################################] 100%
:: Retrieving packages from community...
cuda-toolkit-4.2.9-1-i686 137.4 MiB 1976K/s 01:11 [###############################################################] 100%
(3/3) checking package integrity [###############################################################] 100%
(3/3) loading package files [###############################################################] 100%
(3/3) checking for file conflicts [###############################################################] 100%
error: failed to commit transaction (conflicting files)
libcl: /usr/lib/libOpenCL.so exists in filesystem
libcl: /usr/lib/libOpenCL.so.1 exists in filesystem
libcl: /usr/lib/libOpenCL.so.1.0.0 exists in filesystem
opencl-nvidia: /etc/OpenCL/vendors/nvidia.icd exists in filesystem
opencl-nvidia: /usr/lib/libcuda.so exists in filesystem
opencl-nvidia: /usr/lib/libcuda.so.1 exists in filesystem
opencl-nvidia: /usr/lib/libnvcuvid.so exists in filesystem
opencl-nvidia: /usr/lib/libnvcuvid.so.1 exists in filesystem
Errors occurred, no packages were upgraded.
Regards
smith
Last edited by smith9876 (2012-08-06 21:12:52)
Offline
use `pacman -Qo <filename>` on the files that it reports existing in filesystem.
Post the ouput here using code tags
like theseedit: those files (at least the few I checked) do not belong to nvidia-utils, so that is not the problem.
Last edited by Trilby (2012-08-06 02:16:47)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
thanks for the prompt reply. Here is what I got:
pacman -Qo libOpenCL.so
error: failed to find 'libOpenCL.so' in PATH: No such file or directorypacman -Qo /usr/lib/libopenCL.so
error: failed to read file '/usr/lib/libopenCL.so': No such file or directoryI am getting the same message for all the files I mentioned in the previous post.
Also, if you see this link you will find out that all the previously mentioned files are in nvidia-utils.
http://www.archlinux.org/packages/multi … ils/files/
Regards
smith
Last edited by smith9876 (2012-08-06 02:28:24)
Offline
You need to give the complete path, ex:
pacman -Qo /usr/lib/libOpenCL.soAnd case matters.
Also, double check that list. The files you get in your error message are not in nvidia-utils. They do seem to be in lib32-nvidia-utils which is a different package and they are installed in a different location: the paths are different (/usr/lib/ vs /usr/lib32).
Are you using mutlilib?
Last edited by Trilby (2012-08-06 11:11:20)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Thanks for finding out the mistake - I gave the lowercase. Now, I corrected it and this is what I got. Since, no package owns these files is it ok to delete them and then install cuda-toolkit?? Surprisingly, no package owns these files then how come they are installed in my computer?
[root]# pacman -Qo /usr/lib/libOpenCL.so.1
error: No package owns /usr/lib/libOpenCL.so.1
[root]# pacman -Qo /usr/lib/libOpenCL.so
error: No package owns /usr/lib/libOpenCL.so
[root]# pacman -Qo /usr/lib/libOpenCL.so.1.0.0
error: No package owns /usr/lib/libOpenCL.so.1.0.0
[root]# pacman -Qo /etc/OpenCL/vendors/nvidia.icd
error: No package owns /etc/OpenCL/vendors/nvidia.icd
[root]# pacman -Qo /usr/lib/libcuda.so
error: No package owns /usr/lib/libcuda.so
[root]# pacman -Qo /usr/lib/libcuda.so.1
error: No package owns /usr/lib/libcuda.so.1
[root]# pacman -Qo /usr/lib/libnvcuvid.so
error: No package owns /usr/lib/libnvcuvid.so
[root]# pacman -Qo /usr/lib/libnvcuvid.so.1
error: No package owns /usr/lib/libnvcuvid.so.1Regards
smith
Last edited by smith9876 (2012-08-06 15:23:25)
Offline
The general advice would be to remove them - or to be safe move/rename them to save them as a temporary backup. For example rename each file to the same name with an additional extension ".BAK"
Once they are moved or removed, you should be able to install the desired packages. If everything works right then you can delete any of the temporary backups you made. If anything goes severely wrong, you could still just move the .BAKs back and be back where you started. This is highly unlikely, and in most cases you'd be fine to just remove these files then install the proper package.
The only way they could have gotten there is if you - or someone else who had or was granted access to your computer - put them there at some point. Perhaps you used an installation script of some sort that was not made for arch linux.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Thanks a lot for your help, I am able to solve the problem and installation went smoothly.
Regards
smith
Offline
Glad it worked. You can edit your inital post and change the title to include "[SOLVED]".
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
just did it ![]()
Offline