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
Related
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.
I tried to install this rpm software on my CentOS server:
[root#test software]# rpm -ivh nvidia-x11-drv-340xx-340.106-1.el7.elrepo.x86_64.rpm
error: Failed dependencies:
nvidia-340xx-kmod = 340.106 is needed by nvidia-x11-drv-340xx-340.106-1.el7.elrepo.x86_64
Here to say I need this nvidia-340xx-kmod package before installing nvidia-x11-drv-340xx-340.106-1.el7.elrepo.x86_64.rpm package.
I try to go to another machine that can connect to the internet to view the rpm package that this nvidia-340xx-kmod package needs, and then I will download it and install:
yum install kmod-nvidia-340xx
But the dependency of the kmod-nvidia-340xx package is the nvidia-x11-drv-340xx-340.106-1.el7.elrepo.x86_64.rpm package that I just wanted to install.
Dependencies Resolved
=================================================================================================
Package Arch Version Repository Size
=================================================================================================
Installing:
kmod-nvidia-340xx x86_64 340.106-1.el7_4.elrepo elrepo 4.9 M
Installing for dependencies:
nvidia-x11-drv-340xx x86_64 340.106-1.el7.elrepo elrepo 36 M
Transaction Summary
As you see, here is a yum endless loop.
It should be noted that this CentOS server cannot connect to the Internet for some safety reasons.
Then this server can't mount a local source image, because the server room is far from my office room and I don't want to go to that room to use an external storage device to create a local source image, then the server's free space is not enough to save a centos image, free space less than 1G(forgive me this strange problem).
So my question is, I tried to install this package, but the lack of installation process prompts the lack of this package as a dependency.
How can I fix this?
It looks like they depend on each other, so you need them both installed at the same time. sudo yum localinstall *.rpm from the directory they're copied to should work.
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
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
Help! I can't figure out how to install a jdk!
[/usr/lib/jvm]$ su -c "yum install java-1.7.0-openjdk-devel"
Loaded plugins: langpacks, presto, refresh-packagekit
No package java-1.7.0-openjdk-devel available.
Error: Nothing to do
[/usr/lib/jvm]$ su -c "yum install java-1.7.0-openjdk"
Loaded plugins: langpacks, presto, refresh-packagekit
No package java-1.7.0-openjdk available.
Error: Nothing to do
[/usr/lib/jvm]$ su -c "yum install java-1.6.0-openjdk-devel"
Loaded plugins: langpacks, presto, refresh-packagekit
No package java-1.6.0-openjdk-devel available.
Error: Nothing to do
[/usr/lib/jvm]$ su -c "yum install java-1.6.0-openjdk"
Loaded plugins: langpacks, presto, refresh-packagekit
No package java-1.6.0-openjdk available.
Error: Nothing to do
Here I've manually downloaded some rpm's, the last one from oracle's website:
[~]$ rpm -ivh java-1.7.0-openjdk-devel-1.7.0.19-2.3.9.3.fc20.x86_64.rpm
error: Failed dependencies:
java-1.7.0-openjdk = 1:1.7.0.19-2.3.9.3.fc20 is needed by java-1.7.0-openjdk-devel-1:1.7.0.19-2.3.9.3.fc20.x86_64
[~]$ sudo rpm -ivh java-1.7.0-openjdk-1.7.0.19-2.3.9.3.fc20.x86_64.rpm
Preparing... ################################# [100%]
file /usr/lib/jvm-exports/jre-1.7.0-openjdk.x86_64 from install of java-1.7.0-openjdk-1:1.7.0.19-2.3.9.3.fc20.x86_64 conflicts with file from package java-1.7.0-openjdk-1:1.7.0.9-2.3.7.0.fc18.x86_64
file /usr/lib/jvm/jre-1.7.0-openjdk.x86_64 from install of java-1.7.0-openjdk-1:1.7.0.19-2.3.9.3.fc20.x86_64 conflicts with file from package java-1.7.0-openjdk-1:1.7.0.9-2.3.7.0.fc18.x86_64
[~]$ sudo rpm -ivh jdk-7u21-linux-x64.rpm
Preparing... ################################# [100%]
file /etc/init.d/jexec from install of jdk-2000:1.7.0_21-fcs.x86_64 conflicts with file from package jdk-2000:1.6.0_38-fcs.x86_64
Debug
Here's some debug information:
[/usr/lib/jvm]$ yum search jdk
Loaded plugins: langpacks, presto, refresh-packagekit
=========================================================== N/S Matched: jdk ============================================================
java-1.7.0-openjdk-javadoc.noarch : OpenJDK API Documentation
jdk.x86_64 : Java(TM) Platform Standard Edition Development Kit
ldapjdk.noarch : The Mozilla LDAP Java SDK
Name and summary matches only, use "search all" for everything.
.
[/usr/lib/jvm]$ yum list java*
Loaded plugins: langpacks, presto, refresh-packagekit
Installed Packages
java-1.5.0-gcj.x86_64
.
[/usr/lib/jvm]$ cat /etc/fedora-release
Fedora release 18 (Spherical Cow)
Requirements
I must have "jni.h", "libjava.so", "libhpi.so", "lipverify.so" and "libjvm.so" included.
So far I've found out that these DO NOT have what I need:
Undesired Versions (for sure):
jdk1.7.0_06 <-- I'm surprised about this one, but it doesn't have libjvm nor libhpi
java-1.7.0
java-openjdk
java-1.7.0-openjdk-1.7.0.9.x86_64
java-1.5.0-gcj-4.4
java-1.6.0-openjdk
java-1.7.0-openjdk.x86_64
jre-1.5.0-gcj
jre-1.7.0-openjdk.x86_64
jre-openjdk
jre-1.7.0
jre-7u11-linux-x64.rpm java-1.5.0-gcj-1.5.0.0
jre-1.5.0
jre1.7.0_11
jre-gcj
And these do:
Desired Versions (that I know of, there could be more):
jdk1.6.0_34-x86
jdk1.5.0_22-x86
java-6-openjdk
Can someone help me install jdk1.6 or java-6-openjdk please?
The problem here is that you cannot use the Oracle rpm to install JDK 7 when you already have the Oracle JDK 6 as it tries to install the /etc/init.d/jexec script which is already installed and required for JDK 6.
I would advise sticking to the tarball or self extracting *.bin and using JAVA_HOME if you are going to use the Oracle distribution as it does not have this problem and you will probably not need jexec anyway.
In general I would suggest that you install the Oracle JDK not the OpenJDK. Otherwise you might risk running into some issues. I always found problems of all sorts and sizes with OpenJDK that I don't even bother trying it any more.
Download the JDK RPM from here and follow the usual instructions. Its usually very straightforward and without problems.
Full detailed instructions including how to install it here.
Make sure you choose the right version you need (JDK 1.7 or JDK 1.6, dont mix) because from your question you seem to have a confusion of library versions from 1.5 to 1.7.
And another thing, uninstall whatever you have installed already before installing a fresh one to avoid conflicts.
Check my answer here Transaction check error when installing Sun JDK 7
Basically you may use rpm --force to install one JDK on top of the other. This scenario is completely valid specially when you have to develop for different JAVA versions.
Just faced the same issue. I was not comfortable using --force command; did not want to risk messing-up the existing Java that came installed at system setup.
I ended up doing the following and running the app server with a different version of Java under a different user ID.
downloaded the Java tar.gz version and uncompressed:
tar -zxvf jdk-7u45-linux-x64.gz
Created the directory:
mkdir /usr/java/jdk1.7.0_45
Copied the contents to the new directory manually:
cp -r /.../jdk1.7.0_45/* /usr/java/jdk1.7.0_45
Set the java_home under the user ID home directory in .bashrc and .bash_profile files:
export JAVA_HOME=/usr/java/jdk1.7.0_45
export PATH=$JAVA_HOME/bin:$PATH
export PATH=$PATH:/usr/sfw/lib/gcc:/usr/sfw/bin
sudo rpm -i jdk-11.0.9_linux-x64_bin.rpm
or whatever package you are trying to install