One my linux instance, I am trying to install JDK 7 using the rpm. There is already JRE 6 installed, and I want to install JDK 7 along that. When I try to install JDK 7, getting the following error:
# rpm -ivh jdk-7u3-linux-x64.rpm
Preparing... ########################################### [100%]
file /etc/init.d/jexec from install of jdk-2000:1.7.0_03-fcs.x86_64 conflicts with file from package jre-1.6.0_20-fcs.x86_64
I also tried installing using yum using:
# yum install jdk-7u3-linux-x64.rpm
This resulted in Transaction check error:
Transaction Check Error:
file /etc/init.d/jexec from install of jdk-2000:1.7.0_03-fcs.x86_64 conflicts with file from package jre-1.6.0_20-fcs.x86_64
Can someone help me to get this installed. I HAVE to retain already installed JRE 6, so removing that is not the solution for me.
Any help will be appreciated!
Thanks
Noman A.
I just had the same problem when using YUM.
The key is to use rpm followed by the --force flag, i.e. you first install the JRE 1.6 (which you have already) and then issue an rpm command like this
rpm -ivh jdk-7u3-linux-x64.rpm --force
It then installs the newer JDK not minding any error.
The file /etc/init.d/jexec is exactly the same between both java versions.
Did not find any solution to this, so I went ahead and installed JDK using the tar file available for the respective JDK version.
-Noman A.
Related
I want to install chromedriver in one of the AWS EC2 instance which is linux(Red Hat Enterprise Linux Server release 6.7 Santiago - 64 bit). While installing the chromedriver, we ran into issue due to missing packages. I could find the package here but this in turn requires many other packages. Using any other AMI is not an option.
Error is -
error while loading shared libraries libgconf-2.so.4 cannot open shared object file
I am using Ubuntu x64 and yum didn't work for me. But I found somebody mentioning simply use
$sudo apt install libgconf-2-4
worked for me to install the libgconf.
Please ask yum for the file, libgconf-2.so.4 : $ yum provides */libgconf-2.so.4
Install GConf2 : # yum install GConf2
Packages http://mirror.centos.org/centos/6.8/os/ ... and updates http://mirror.centos.org/centos/6.8/updates/
The chromedriver depends on the same packages / files as GConf2, and then some. Please see for yourself : $ ldd chromedriver , where 'chromedriver' is the unzipped executable.
EDIT :
Solution for the chromedriver issue : Install a chromedriver for RHEL 6, chromedriver-31.0.1650.63-1.el6.x86_64.rpm https://drive.google.com/file/d/0B7S255p3kFXNX1c0UWlGOWpZOHM/view?usp=sharing
Please download the package, and 1) cd Downloads/ 2) yum install chromedriver-31.0.1650.63-1.el6.x86_64.rpm ... and you have /usr/local/bin/chromedriver
P.S. : The EL6 chromedriver was built from the source package chromium-31.0.1650.63-1.el6.src.rpm
You might want to read this CentOS thread about your GLIBCXX_3.4.15. Especially apropos is this answer on the thread, especially the FAQ it references.
CentOS (which aims to be as compatible with RHEL as possible) is a curated LTS distribution (as is RHEL). You might find a version of chromedriver compiled for RHEL 6 in one of the many repositories. If not, you'll probably have to build it yourself.
I'm new to Octave, attempting to install package 'miscellaneous' to use GNU Units. Installation fails. I tried:
apt-get install octave-miscellaneous
The deb package installs, but is not listed in Octave 3.8 (via >>pkg list). Then I tried:
> pkg install -forge miscellaneous
Octave 3.8 responds:
error: element number 1 undefined in return list
error: called from:
error: /opt/octave3.8/share/octave/3.8.0/m/pkg/private/get_forge_pkg.m at line 40, column 14
error: /opt/octave3.8/share/octave/3.8.0/m/pkg/private/get_forge_download.m at line 26, column 12
I've searched quite a bit and have not found what I am doing wrong.
Considering the error message, and the location from where the error is throw, this comes from a problem reading the page of the miscellaneous package. The weird error message is because of this bug.
So make sure Octave is able to use urlread (try with some random file you know it exists), and that you didn't made any typo when entering the package name.
Finally, you should not be mixing Octave packages installed via the Debian repositories and installed via Octave's pkg.
This is because your System's Octave installed by default is not the latest (3.8), but octaves own package manager tries to load.
apt-get install octave-miscellaneous
Installs to a different prefix, compared to your /opt/octave3.8, which you probably compiled your self.
Here, you can see where the files are installed.
The solution would be to install the miscellaneous packages yourself. Note, that you will probably need to run octave as root for the installation, or give your user write permissions to /opt/octave3.8/share ...
For anyone coming from RHEL/Centos/Fedora distributions, use:
dnf search octave-miscellaneous
dnf install -y octave-miscellaneous
I have an rpm package that needs to be installed on SLES 11. The installtion fails due to unresolved dependecies.
$ rpm -ivh xpra-0.3.11-1.x86_64.rpm
warning: xpra-0.3.11-1.x86_64.rpm: Header V4 DSA signature: NOKEY, key ID f18ad6bb
error: Failed dependencies:
libpython2.7.so.1.0()(64bit) is needed by xpra-0.3.11-1.x86_64
python(abi) = 2.7 is needed by xpra-0.3.11-1.x86_64
When checked, default python installation on SLES 11 was 2.6. I couldn't find python 2.7 rpm package for SLES 11. I have installed python 2.7 by building the source.
Now, whenever I try to install the same software, I am the getting same errors.
How to tell rpm package manager to look into specific directory to find the required dependencies??
You can't - the only dependencies rpm can ever know about are ones which were installed using rpm.
You may download a pre-built python 2.7 RPM from this site and install it with e.g python-rpm -i 2.7.3-3.6.1.x86_64.rpm. Bear in mind that I'm not a SLES user, so my suggestion is a kind of a shot in the dark.
So basically I'm trying to install APC, but I can't get pecl to work on Centos 5.8 i686
I have the latest stable releases of php-fpm, mysql, and nginx. Everything is working at 100%, everything is smooth. I'm running a live website with no problems. I just can't pecl to work.
yum install php-pear:
Most of the packages I'm trying to instal have dependency issues with php-common (whatever that is).
php-common = 5.1.6-32.el5 is needed
Much help is appreciated!
/usr/bin/pecl is available from php-pear package.
The dependency failures you got are stange. Probably because you have mixed installation of php-* 5.1 RPMs and php53-* 5.3 RPMs and get conflicts on devel files. You should do some clean up to keep only one set of RPMs for your target version, either 5.1 or 5.3.
You also have to install gcc, httpd-devel, php(53)-devel and finally php-pear to get phpize working.
Then you should be able to run pecl install apc
First of all assure you have your distro updated, you can do it with
yum update
Then check if you are not using any third-party repo, that contains this packages.
If you can, remove all the php packages with
yum remove php*
and try to install them again.
If you can't solve it, try the Fedora EPEL repositories which provides some updated packages.
All the commands needs be run by root.
I'm having a torrid time installing Apache2::Request on Centos 5.5. My apache is the standard one that came with centos.
I'm installing from libapreq2-2.13 and a lot of dependencies didn't already exist. I so far had to do:
yum install httpd-devel # for apxs
I then did:
perl Makefile.PL --with-apache2-apxs=/usr/sbin/apxs
make
The make step then told me i needed: ExtUtils-XSBuilder and Parse-RecDescent, which i duly installed.
running make again gave the compiler error:
/home/xx/installers/libapreq2-2.13/glue/perl/xsbuilder/apreq_xs_postperl.h:22:34: error: modperl_perl_unembed.h: No such file or directory
/home/xx/installers/libapreq2-2.13/glue/perl/xsbuilder/apreq_xs_postperl.h:25:33: error: modperl_common_util.h: No such file or directory
In file included from Apache2.xs:45:
/home/xx/installers/libapreq2-2.13/glue/perl/xsbuilder/APR/Request/Apache2/APR__Request__Apache2.h:1:22: error: mod_perl.h: No such file or directory
Can anyone tell me which package i'm missing?
Is there not a method of installing this common package that "just works" (tm).
Many thanks
It's already packaged for Centos.
$ repoquery -i --whatprovides 'perl(Apache2::Request)'
perl-libapreq2-0:2.09-0.rc2.1.el5.x86_64
$ sudo yum install perl-libapreq2
(Actually, that only works if you're using the EPEL repository)
To install the headers , yum install mod_perl-devel