How to reinstall libjudy on AWS EC2 Amazon Linux instance - amazon-ec2

I am trying to install a memory profiler (https://github.com/arnaud-lb/php-memory-profiler) on my EC2 instance (LAMP stack runnign php 7.2) as we are running in to memory allocation errors. During the installation, I get the following error:
checking for judy lib... yes, shared
checking for judy files in default path... not found
configure: error: Please reinstall the judy distribution
ERROR: `/tmp/pear/install/memprof/configure --with-php-config=/usr/bin/php-config' failed
For the life of me, I cannot figure out how to reinstall the judy library. I've tried both pecl (No releases available for package "pecl.php.net/libjudy") and yum (No package libjudy available.)
I've searched for ways to install it and have come up empty.
Anyone have any advice?
Thanks in advance.
p.s. I have also asked this question of the memory profile developer.

try the following repository
Download latest rpmforge-release rpm from
wget https://ftp.tu-chemnitz.de/pub/linux/dag/redhat/el7/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
Install rpmforge-release rpm:
# rpm -Uvh rpmforge-release*rpm
Install judy rpm package:
# yum install judy judy-devel

Related

How to install pyez from local directory

I have to install pyez using pip. This at least is stated as requirement to use the role Juniper.junos to run ansible commands against Juniper routers. I'm using cygwin on a windows laptop without any adminrights in a corporate network. The problem is, I cannot use the corporate proxy because of that proprietary Microsoft NTLM protocol so a simple "pip install junos-eznc" is not possible. But what I could do is download the software, tarball or whatever and run pip against that downloaded stuff. I tried several things and failed miserably and google doesn't return anything useful. Can anyone help? What am I supposed to do to get that installed successfully? Many thanks in advance.
Youcan download required package and install it like this
pip install <file_name>
I solved it.
First issue: Proxy
px.exe on https://github.com/genotrance/px/releases.
Second issue: missing libs:
I had to install several libs and make on cygwin in order to get junos-eznc installed:
libxml2-devel
libxslt-devel
libffi-devel
libssl-devel
make
Third issue: cryptography
Don't use latest version of cryptography because it'll need rust which is pita on cygwin
pip install cryptography==3.2
... and then ...
pip install junos-eznc
After that, installation of ...
ansible-galaxy install Juniper.junos
... was quite smooth

pgadmin3 install on CentOS7

I am using CentOS7 and PostgreSQL-13. As it is very difficult to work database-related queries in the command line I want to install pgadmin3. Aas it is available on the yum repository and in my CentOS, I do not have any internet connection. So I have installed pgadmin3 with the following installation command only: yum install pgadmin3.
I have seen in some tutorials they modified the sudo /usr/pgadmin4/bin/setup-web.sh file. But I did not find such a file in my CentOS machine after pgadmin3 installation. Now I have no idea how to configure it with my already installed PostgreSQL-13 and httpd and how I can use this. I have not found any documentation regarding this.
PostgreSQL-13 not supported for pgadmin3, you must install pgadmin4

Offline Ansible Control Machine installation

I need to install Ansible Control Machine behind a corporate firewall with no internet access. I can't find documentation for an offline install. I have access on my workstation to download anything I want and can copy it to the target machine. I have tried searching online but have not been able to find examples on how to do this. My server is Ubuntu 14.04 but if anyone has documentation for Red Hat or another distro that would also help.
I did a testing on my RH6, so if you have a RH6 with Internet access to download all required installation file, and a RH6 installation ISO. You should be able to achieve this.
Assuming you have a RH6 which has Internet access, let's call it A. And another one doesn't have access: B.
download Ansible and Jinja2 from A, and copy the files to B.
For Ansible: http://docs.ansible.com/ansible/intro_installation.html
Jinja2 is required for Ansible, download it here:
https://pypi.python.org/pypi/Jinja2
Mount the RH6 installation ISO to your RH6 B, then install the required RPM.
In my case, i installed PIP as well:
rpm -ivh python-paramiko-1.7.5-2.1.el6.noarch.rpm libyaml-0.1.3-4.el6_6.x86_64.rpm PyYAML-3.10-3.1.el6.x86_64.rpm perl-TermReadKey-2.30-13.el6.x86_64.rpm perl-Error-0.17015-4.el6.noarch.rpm python-six-1.9.0-2.el6.noarch.rpm
//following required for Git
rpm -ivh --force --nodeps perl-Git-1.7.1-3.el6_4.1.noarch.rpm
rpm -ivh git-1.7.1-3.el6_4.1.x86_64.rpm
Note: i didn't install httplib2 here, you can do it later.
install MarkupSafe (required for Jinja2)
//install MarkupSafe
tar -xvf MarkupSafe-0.23.tar.gz
cd MarkupSafe-0.23/
sudo python setup.py install
install Jinja2
//install Jinjia2
tar -xvf Jinja2-2.8.tar.gz
cd Jinja2-2.8/
sudo python setup.py install
On RH6 B, you should be able to run Ansible now:
tar -zxvf ansible.tar.gz
source ./hacking/env-setup
echo "127.0.0.1" > ~/ansible_hosts
export ANSIBLE_INVENTORY=~/ansible_hosts
ansible --version
I know this is a very old question, but I've found the answer in this blog post and I believe that could help someone out there.
Although this post aproach is on a CentOS/RHEL machine, I believe the procedure is very similar to other distros:
Download the packages (RPM) dependencies
Download the Ansible packages
Upload the downloaded packages to the target machine
Install it using yum localinstall
Or you could also install it from the source.

Dependency Resolution Error while installing Zabbix 2.4 on Centos 7

I have installed rpm from this site 1- Zabbix 2.4 download page for centos7
And I have been following installation instructions on this site 2- Zabbix.org centos installation instructions
first, I configure zabbix repository
rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.‌​rpm
But, then I realized this repository is for /rhel/6. Then I run the command below to change the zabbix repository which is for /rhel/7 , since I use centos 7.
rpm --import http://repo.zabbix.com/RPM-GPG-KEY-ZABBIX
rpm -Uv http://repo.zabbix.com/zabbix/2.4/rhel/7/x86_64/zabbix-release-2.4-1.el7.noarch.rpm
Then, I try to install zabbix
yum install mysql-server zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-java-gateway
But I couldn't because of some dependency could not be installed.
--> Finished Dependency Resolution
Error: Package: zabbix-server-mysql-2.4.5-1.el6.x86_64 (zabbix)
Requires: libmysqlclient.so.16()(64bit)
Error: Package: zabbix-server-mysql-2.4.5-1.el6.x86_64 (zabbix)
Requires: libmysqlclient.so.16(libmysqlclient_16)(64bit)
Error: Package: zabbix-server-mysql-2.4.5-1.el6.x86_64 (zabbix)
Requires: libnetsnmp.so.20()(64bit)
Error: Package: iksemel-1.4-2.el6.x86_64 (zabbix-non-supported)
Requires: libgnutls.so.26()(64bit)
Error: Package: iksemel-1.4-2.el6.x86_64 (zabbix-non-supported)
Requires: libgnutls.so.26(GNUTLS_1_4)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I have searched a bit and I have came accross a lot of people has same problem and you can find some offered solutions to the problem. I have tried to implement the offered solutions but non of them solved the problem.
3.1- Offered solution from centos.org/forum : I could not understand this, I run the commands and result are shown below.
rpm -qR postfix
libmysqlclient.so.18()(64bit)
libmysqlclient.so.18(libmysqlclient_18)(64bit)
rpm -q mysql-libs
package mysql-libs is not installed
3.2- Offered solution from centos.org/forum This problem seems very similar but it does not helped either
3.3- Offered solution from zabbix.com/forum This problem seems exactly same, and a solution is offered. But I could not understand it.
Also, I found that on Zabbix official documentation 4- Zabbix 2.4 manual
Supported for versions: RHEL6, CentOS 6
centos 7 is not listed here, but it contradicts with Zabbix download page, since they provide a link for centos 7. you can check first link.
Please share if you have any idea how to solve this problem.
As #Jan Garaj pointed, the problem was yum try to install el6 packages, although I have changed the zabbix repository which is for rhel/7.
So, I have just cleaned the cache with the commands below and problem is resolved.
yum clean headers
yum clean packages
yum clean metadata
You can find more information about cleaning yum caches on this site:
Centos/clearing yum caches
You can find information about removing a yum repository on tihs site, Just cleaning cache solves this problem, so I did not try to remove yum repository. But, it can be useful if cleaning cache does not help.
serverFault/how to remove yum repo
I had similar problem while installing nginx. For me what helped was continuous release repository CR
Usage:
yum -y install yum-utils
yum-config-manager --enable cr

Error installing make on Intel Galileo

I am trying to install make on my Intel Galileo using the following command:
opkg install make
However, this fails with the following ouput:
Installing make (3.82-r3) to root...
Downloading http://iotdk.intel.com/repos/1.0/iotdk/i586/make_3.82-r3_i586.ipk.
Installing libc6 (2.18-r0) to root...
Downloading http://iotdk.intel.com/repos/1.0/iotdk/i586/libc6_2.18-r0_i586.ipk.
Collected errors:
* check_data_file_clashes: Package libc6 wants to install file /lib/libpthread.so.0
But that file is already provided by package * libpthread0
* opkg_install_cmd: Cannot install package make.
How do I resolve this and get make installed?
Use the latest Intel IoT devkit image. It already brings a great set of developer tools in it, including make.
You can download this image at https://software.intel.com/en-us/iot/hardware/galileo/downloads
The installation manuals can be also found in there.

Resources