Unbale to install OpenCL in CentOS 7 - centos

I'm trying to install OpenCL in a CentOS 7.9 system following instructions here, but yum is unable to find the opencl-headers package as shown in my command-line output below. I tried enabling all repos as instructed here, but no luck. Can anyone help? It seems I need to point yum to the correct registry where it can find the OpenCL files. If that's correct, how do I do that? Thanks.
$ yum install opencl-headers
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
* base: mirror.metrocast.net
* centos-kernel: mirror.math.princeton.edu
* centos-kernel-experimental: mirror.pit.teraswitch.com
* centosplus: centos.mirror.constant.com
* extras: distro.ibiblio.org
* fasttrack: mirrors.wcupa.edu
* updates: centos.mirror.constant.com
No package opencl-headers available.

opencl-headers package for CentOS 7 is a part of Extra Packages for Enterprise Linux (EPEL) repository. And this repository is not added by default, you need to add it manually. For example, using following command:
yum install epel-release
after that you will be able to install OpenCL headers using yum command
yum install opencl-headers

You only need to install the GPU drivers. Then your device should be detected by clinfo.
To develop code with OpenCL, you need the OpenCL header files. Find these here.

Related

CentOS 6.8 install rabbitmq 3.7.4

I'm trying to install RabbitMQ 3.7.4 on CentOS 6.8. Currently I have installed Erlang 20 following instruction from https://github.com/erlang/otp/blob/maint/HOWTO/INSTALL.md , but when I tried :
sudo yum install https://dl.bintray.com/rabbitmq/all/rabbitmq-server/3.7.4/rabbitmq-server-3.7.4-1.el6.noarch.rpm
it doesn't detect the Erlang 20. Instead it searched for the available Erlang package from my EPEL, which is the R14B, and wont install since it is lower than the minimum Erlang version requirements. How do I fix this and install RabbitMQ?
From the Installation instructions at https://packages.erlang-solutions.com/erlang/
Installation using repository
1. Adding repository entry
To add Erlang Solutions repository (including our public key for verifying signed package) to your system, call the following commands:
wget https://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
Alternatively: adding the repository entry manually
RPM packages are signed. To add Erlang Solutions key, execute command:
rpm --import https://packages.erlang-solutions.com/rpm/erlang_solutions.asc
Add the following lines to some file in "/etc/yum.repos.d/":
[erlang-solutions]
name=CentOS $releasever - $basearch - Erlang Solutions
baseurl=https://packages.erlang-solutions.com/rpm/centos/$releasever/$basearch
gpgcheck=1
gpgkey=https://packages.erlang-solutions.com/rpm/erlang_solutions.asc
enabled=1
2. Adding repository with dependencies
Packages requires some packages that are not present in standard repository. Please ensure that EPEL respository is enabled.
3. Installing Erlang
Call the following command to install the "erlang" package:
sudo yum install erlang
or this command to install the "esl-erlang" package:
sudo yum install esl-erlang
Please refer to the FAQ for the difference between those versions. Your erlang will be kept up to date either way.

davfs2 package not found on CENTOS 7.3 x86_64

I'm having some issues trying to install davfs2 on my CentOS server, I run
yum install davfs2
but I get this:
Loaded plugins: fastestmirror, langpacks, priorities, universal-hooks
Loading mirror speeds from cached hostfile
* EA4: 91.197.228.252
* cpanel-addons-production-feed: 91.197.228.252
* base: centos.quelquesmots.fr
* centosplus: centos.mirror.fr.planethoster.net
* extras: centos.quelquesmots.fr
* rpmforge: mirrors.ircam.fr
* updates: centos.quelquesmots.fr
Nothing to do
Not sure but maybe I need add more mirrors to my distro, if it's not possible install davfs2 I'd like to know other alternative for mount webdav routes as folder in CentOS, cadaver is a webdav client but I can't mount folders with it...
thank you guys, have a nice day
You have to enable the EPEL repo in order to install that package:
yum -y install epel-release
yum -y install davfs2
After you're done installing the required packages please disable the epel repo since you are on a cPanel server and this additional repo, at some point might break some package dependencies when cPanel/WHM nightly update is running.
To disable the EPEL repo you can edit /etc/yum.repos.d/epel.repo file and replace enabled=1 with enabled=0

centos libgeos repository missing

On centos 7.3 minimal trying to install shapely or geopandas requires access to https://github.com/libgeos/libgeos libgeos.
Trying to install this via sudo yum install libgeos-dev tells me that this package is not available. It seems that I am lacking a repository. So far I have been unable to find a working one as http://trac.osgeo.org/geos is pointing to https://yum.postgresql.org/repopackages.php#pg96 for the RPM but still after rpm -Uvh https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm the installation candidate is not found.
It seems that for CentOS this package is called geos-devel and can be found through RPM Fusion.
yum install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm
yum install geos-devel
Also see: https://rpmfusion.org/Configuration

No package s3cmd available

I am trying to install an s3cmd rpm on my CentOS 6.x by using the command yum install s3cmd but I am getting the following error output :
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* updates: centos.mirror.net.in
No package s3cmd available.
Error: Nothing to do
Can somebody provide me URL from where I could manually download s3cmd rpm or any other solution for this?
The s3tools repos are empty now. Please get it from the EPEL repository instead, which I am able to keep maintained.
$ sudo yum --enablerepo=epel install s3cmd
I resolved this problem using following steps :-
cd /etc/yum.repos.d
wget http://s3tools.org/repo/RHEL_6/s3tools.repo
yum install s3cmd
You can also download the package from this url, and then install it manually via command
yum localinstall s3cmd-2.0.2-1.el7.noarch.rpm

Yum Installed Package But I Cant Find It

First off please dont instantly down vote as i am not experienced with building and running distributions via the command line its all foreign to me i am learning.
I have a server running on Centos 6 and i am trying to download and install a library called soundtouch.
here: http://pkgs.org/centos-6/epel-i386/soundtouch-devel-1.5.0-1.el6.i686.rpm.html
and here: http://www.surina.net/soundtouch/
I run
yum install soundtouch
and it runs and seems to install correctly
yum install soundtouch
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* base: mirror.atlanticmetro.net
* epel: mirror.symnds.com
* extras: mirror.cogentco.com
* updates: mirror.rackspace.com
489 packages excluded due to repository priority protections
Setting up Install Process
Package soundtouch-1.5.0-1.el6.x86_64 is obsoleted by libsoundtouch-1.7.1-1.el6.x86_64 which is already installed
Nothing to do
But when i try to run the command
which soundtouch
/usr/bin/which: no soundtouch
or
soundtouch
-bash: soundtouch: command not found
And i check my /usr/bin/ folder and its not there? Can someone please advise where i am going wrong.
Thanks You
You did not install soundtouch package, yum is telling you that this package is obsoleted by libsoundtouch. You can check which files belong to that package:
rpm -ql libsoundtouch