Error while installing EPEL 5.4 on virtualized Ubuntu 14.04 - virtualbox

I'm trying to install epel-release-5-4.noarch.rpm in Ubuntu 14.04 (on VirtualBox).
This step is required to make a software installation.
I tried the command:
sudo rpm -Uvh http :// download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
But the host download.fedora.redhat.com is unknown (at the moment).
This url seems to work:
https :// dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
I execute the command:
sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
But this is the error:
warning: /var/tmp/rpm-tmp.9Y0b8t: Header V3 DSA/SHA1 Signature, ID key 217521f6: NOKEY error: Failed dependencies: redhat-release >= 5 is needed by epel-release-5-4.noarch
I tried to find some suggestions but no one solved my problem.
Any idea will be appreciated.
Thanks.

Related

VMWare tools yum install: [Errno -1] Metadata file does not match checksum CentOS 7

When trying to install vmware-tools via yum:
yum install vmware-tools
I get the following error:
http://packages.vmware.com/packages/rhel7/x86_64/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
I've already tried the following suggestions:
yum clean all
editing /etc/yum.repos.d/epel.repo and uncommenting the baseurl lines and commenting out the mirrorlist lines.
Without any success, is anyone experiencing the same issue?
This is a virtualised Centos 7 machine running in vmware workstation.
To get rid of the warning, you could disable the repository
(the name may vary; see ls /etc/yum.repos.d):
sudo yum-config-manager --disable vmware-tools
For Linux, install open-vm-tools (after having vmware-tool removed):
sudo yum install epel-release
sudo yum install open-vm-tools

Getting errro openssl/rsa.h: No such file or directory

I am using ubuntu and compiling gRPC but getting error on openssh:
gRPC/src/core/lib/security/credentials/jwt/json_token.h:25:25: fatal error: openssl/rsa.h: No such file or directory
my system have following openssh version:
OpenSSL 1.0.2h-fips 3 May 2016
Tried to install openssh using following command:
apt-get install libssl-dev
its give error command not found.
It seems apt-get command is not found in your system.
This might be helpful for you (apt-get: command not found).

installing php-imap on amazon ec2 linux 2

I need to install php-imap on amazon ec2 linux 2 instance.
All the php stuff is inside amzn2extra-lamp-mariadb10.2-php7.2 but php-imap package is missing.
Any advice ?
Thanks
I installed it like this.
I downloaded the php source code of the currently installed version in my Amazon Linux 2
wget http://php.net/get/php-7.2.8.tar.bz2/from/a/mirror
Unpacked it and went into php-7.2.8/ext/imap/
Compiled extension:
phpize
./configure
I got some errors.
Some U8T_CANONICAL stuff so
sudo yum install libc-client-devel
Then libc-client.a not found so created a symlink for it:
cd /usr/lib
sudo ln -s /usr/lib64/libc-client.a
some other imap library error so:
sudo yum install uw-imap-static
I got some other errors so the working configure line was:
./configure --with-kerberos --with-imap-ssl
make
SUCCESS!
cd php-7.2.8/ext/imap/modules
sudo cp imap.so /usr/lib64/php/modules/
Created an ini file to load it:
sudo vi /etc/php.d/30-imap.ini
added to the file this content:
extension=imap
restarted php service (you might need to restart httpd depending on your php installation):
sudo systemctl restart php-fpm
PHPinfo now contains:
imap
IMAP c-Client Version 2007f
SSL Support enabled
Kerberos Support enabled
For those who are facing the U8T_CANONICAL error and can't being able to install the libc-client-devel on Amazon Linux 2 AMI need to do something extra to resolve the U8T_CANONICAL error.
The main problem is that libc-client-devel isn't available so we need to do it in another way.
I found this link while searching for my problem. The solution that is posted here is solid. The following link that i gave is for those who are not being able to install the libc-client-devel will be benifited from the link.
Or you could just copy paste the commands i'm giving below.
1 - sudo yum groupinstall "Development Tools"
2 - sudo amazon-linux-extras install epel
3 - yum install epel-release
4 - sudo yum install libc-client-devel uw-imap-static openssl-devel
5 - sudo ln -s /usr/lib64/libc-client.a /usr/lib
The rest can be followed from respondent.
Again thanks to the person who answered.
Same problem here.
I came from debian/ubuntu and i miss a lot of php packages on aws linux2.
I know it's still a candidate and not a final LTS release. Only worked for a month with this distro and saw a lot of changes and updates. Some php dependencies can be solved with pear or pecl, but I couldn't get nothing working on php-imap.
php-imap depends on libc-client (maybe that's a problem?)
Here is my solution.
Search for the libc-client rpm that correspond to your version and
install manually.
Search for the rpm that corresponds to your php installed version. In my case it was 7.2.5**-2** about 2 weeks ago. (today is
7.2.5**-3** ) and isntall manually
CODE
wget https://dl.iuscommunity.org/pub/ius/stable/CentOS/7/x86_64//php72u-imap-7.2.5-2.ius.centos7.x86_64.rpm -P /tmp
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libc-client-2007f-16.el7.x86_64.rpm -P /tmp
rpm -i /tmp/libc-client-2007f-16.el7.x86_64.rpm
rpm -i /tmp/php72u-imap-7.2.5-2.ius.centos7.x86_64.rpm
If it fails because Failed dependencies:
rpm -ivh /tmp/php72u-imap-7.2.5-2.ius.centos7.x86_64.rpm --nodeps
I dont like this solution, but can't find for now any other solution more stable and easy. It will be a pain with updates....

eal_memory.c:56:18: fatal error: numa.h: No such file or directory

When I execute make from the quick start instruction for DPDK, I get the following error:
eal_memory.c:56:18: fatal error: numa.h: No such file or directory
The error comes out even when libnuma is installed already:
>sudo yum install numactl-libs.x86_64
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* elrepo: mirrors.tuna.tsinghua.edu.cn
Package numactl-libs-2.0.9-6.el7_2.x86_64 already installed and latest version
Nothing to do
I'm using CenOS Linux release 7.3.1611 (Core).
How do I fix this problem?
Try to install numactl-devel:
sudo yum install numactl-devel
numa.h is also part of libnuma package.
Please install libnuma package:
CentOS 6.9: yum install libnuma-devel
Ubuntu: apt-get install libnuma-dev
Looks like on CentOS 7 docker container libnuma-devel is not available. In that case try yum install numactl-devel

Error installing libjpeg on Ubuntu 13.04

While installing libjpeg on PIL, Python 2.7
sudo apt-get install libjpeg-dev
i'm getting an error:
WARNING: The following packages cannot be authenticated!
libjpeg-turbo8-dev libjpeg8-dev libjpeg-dev
Install these packages without verification [y/N]? y
Err http://archive.ubuntu.com/ubuntu/ raring-updates/main libjpeg-turbo8-dev i386 1.2.1-0ubuntu2.13.04.1
404 Not Found
Err http://security.ubuntu.com/ubuntu/ raring-security/main libjpeg-turbo8-dev i386 1.2.1-0ubuntu2.13.04.1
404 Not Found
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/libj/libjpeg-turbo/libjpeg-turbo8-dev_1.2.1-0ubuntu2.13.04.1_i386.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Update 1:
sudo apt-get update
Err http://archive.ubuntu.com raring-updates/main i386 Packages
404 Not Found [IP: 91.189.88.149 80]
it seems that the ip/address of Ubuntu libs repositories changed,
because the system already after "End Of Life", so you need to manually edit repositories list that used by apt-get.
you can see a hint for it here and here.
in my case, i preferred to upgrade to 14.04. it's a LTS version, so next time I should meet this problem will be after 5 years of usage.
to upgrade yours look this site.
for now (September 2014) I needed to upgrade it twice.
once from 13.04 to 13.10 and next to 14.04.
note: the first step was suggested to do by "sudo update-manager -d", but this doesn't work because of the same repositories problem. so I used "sudo do-release-upgrade"