Installing snort on Amazon Linux Dependancy Issue (libpcre.so.1) - linux

I am trying to install snort on an amazon virtual machine, and I am running into a dependency issue. I would really appreciate any help! :D
Operating system info below:
# uname -a
Linux hostname 4.1.13-19.30.amzn1.x86_64 #1 SMP Fri Dec 11 03:42:10 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
I have downloaded the snort rpm, (the centos version as that is what amazon linux is based on, I have also tried directly with yum, and I have encountered the same issue). Evidence below:
# yum localinstall snort-2.9.8.0-1.centos7.x86_64.rpm
Loaded plugins: priorities, update-motd, upgrade-helper
Examining snort-2.9.8.0-1.centos7.x86_64.rpm: 1:snort-2.9.8.0-1.x86_64
Marking snort-2.9.8.0-1.centos7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package snort.x86_64 1:2.9.8.0-1 will be installed
--> Processing Dependency: libdnet.so.1()(64bit) for package: 1:snort-2.9.8.0-1.x86_64
--> Processing Dependency: libpcre.so.1()(64bit) for package: 1:snort-2.9.8.0-1.x86_64
--> Finished Dependency Resolution
Error: Package: 1:snort-2.9.8.0-1.x86_64 (/snort-2.9.8.0-1.centos7.x86_64)
Requires: libdnet.so.1()(64bit)
Error: Package: 1:snort-2.9.8.0-1.x86_64 (/snort-2.9.8.0-1.centos7.x86_64)
Requires: libpcre.so.1()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I check the depencdancy with yum, evidence below:
# yum provides libdnet
Loaded plugins: priorities, update-motd, upgrade-helper
libdnet-1.11-1.1.el3.rf.x86_64 : Simple portable interface to lowlevel networking routines
Repo : installed
Could the issue be related to a symbolic link?
Or could it be an operating system incompatibility issue?
Any help at all would be greatly appreciated! :D
Thanks!

This finally fixed the libdnet error for me:
sudo yum install libdnet-devel.x86_64 --enablerepo=epel
I also had to install these through yum to get Snort and DAQ to configure and make properly:
bison.x86_64
flex.x86_64
libpcap.x86_64
pcre-devel.x86_64
Those four didn't require the EPEL (extended package) repo from yum.

Related

Installing xdebug on php 5.6 Amazon Linux AMI

I created an Elastic Beanstalk Environment
ID_LIKE="rhel fedora"
VERSION_ID="2016.03"
PRETTY_NAME="Amazon Linux AMI 2016.03"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2016.03:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"
I'm trying to install xdebug using
sudo yum install php-pecl-xdebug
But I keep get the following error
Loaded plugins: priorities, update-motd, upgrade-helper
Resolving Dependencies
--> Running transaction check
---> Package php-pecl-xdebug.x86_64 0:2.2.3-1.5.amzn1 will be installed
--> Processing Dependency: php(api) = 20090626-x86-64 for package: php-pecl-xdebug-2.2.3-1.5.amzn1.x86_64
--> Processing Dependency: php(zend-abi) = 20090626-x86-64 for package: php-pecl-xdebug-2.2.3-1.5.amzn1.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.3.29-1.8.amzn1 will be installed
--> Processing Conflict: php56-common-5.6.21-1.124.amzn1.x86_64 conflicts php-common < 5.5.22-1.98
--> Finished Dependency Resolution
Error: php56-common conflicts with php-common-5.3.29-1.8.amzn1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
What should I be using instead? And for reference how do I figure out which packages are available?
Thanks alot.
The php-pecl-xdebug depends on the default version of PHP for Amazon Linux, 2.3. Since you have PHP 5.6 installed, you're getting a conflict.
Unfortunately, it looks like Amazon Linux only has packages for xdebug up to PHP 5.5:
[ec2-user#ip-xxx-xxx-xxx-xxx ~]$ sudo yum search xdebug
Loaded plugins: priorities, update-motd, upgrade-helper
============================= N/S matched: xdebug ==============================
php-pecl-xdebug.x86_64 : PECL package for debugging PHP scripts
php54-pecl-xdebug.x86_64 : PECL package for debugging PHP scripts
php55-pecl-xdebug.x86_64 : PECL package for debugging PHP scripts
Name and summary matches only, use "search all" for everything.
Since there is a PECL package, you can install it through that:
[ec2-user#ip-xxx-xxx-xxx-xxx ~]$ sudo yum install php-pear php56-devel gcc
[ec2-user#ip-xxx-xxx-xxx-xxx ~]$ sudo mount -o remount,exec /var/tmp/
[ec2-user#ip-xxx-xxx-xxx-xxx ~]$ sudo pecl install xdebug
[ec2-user#ip-xxx-xxx-xxx-xxx ~]$ sudo mount -o remount,noexec /var/tmp/

How do I know last package version for an old Fedora version

I have an old version of Fedora, version 18, and I need to install google-chrome as well as other packages. However when installing google-chrome, version 43, I'm getting errors for a number of dependencies I should have. I think it is due to having an old Fedora version, version 18. I can not update it because Fedora 22 is too slow in my old PC.
[rodolk#Gandalf Downloads]$ sudo yum install google-chrome-stable
Loaded plugins: langpacks, presto, refresh-packagekit
Resolving Dependencies
--> Running transaction check
---> Package google-chrome-stable.x86_64 0:43.0.2357.132-1 will be installed
--> Processing Dependency: lsb >= 4.0 for package: google-chrome-stable-43.0.2357.132-1.x86_64
--> Processing Dependency: libnss3.so(NSS_3.14.3)(64bit) for package: google-chrome-stable-43.0.2357.132-1.x86_64
--> Finished Dependency Resolution
Error: Package: google-chrome-stable-43.0.2357.132-1.x86_64 (google-chrome)
Requires: lsb >= 4.0
Error: Package: google-chrome-stable-43.0.2357.132-1.x86_64 (google-chrome)
Requires: libnss3.so(NSS_3.14.3)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[rodolk#Gandalf Downloads]$
Thanks in advance.
One solution could be to tweak your /etc/yum.repos.d/fedora.repo file to force him to point on the fedora 18 old repo. Unfortunately I don't think they are maintained anymore (see the void directory at http://mirror.chpc.utah.edu/pub/fedora/linux/releases/).
Otherwise, you can try older versions of chrome (available at http://www.filehippo.com/download_google_chrome/) but you'll have to refuse any proposed upgrade if you manage to install it. Not a good solution tho, because of possible security breach present in older versions.
I suggest installing Fedora with a lightweight GUI (which I suspect is the reason of the degraded peformances on your old machine), like KDE or xfce. You can find more choices here: https://spins.fedoraproject.org/.

Error Installing phpmyadmin on CentOS

I get the this error when i try yo install phpmyadmin on CentOS 6.5 VPS using this.
COMMAND :
sudo yum install phpmyadmin
ERROR :
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.solarvps.com
* epel: epel.mirror.constant.com
* extras: mirror.wiredtree.com
* rpmforge: repoforge.mirror.constant.com
* updates: mirrors.lga7.us.voxel.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package phpmyadmin.noarch 0:2.11.11.3-2.el6.rf will be installed
--> Processing Dependency: php-mbstring >= 4.1.0 for package: phpmyadmin-2.11.11.3-2.el6.rf.noarch
--> Running transaction check
---> Package php-mbstring.x86_64 0:5.3.3-27.el6_5 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-27.el6_5 for package: php-mbstring-5.3.3-27.el6_5.x86_64
--> Finished Dependency Resolution
Error: Package: php-mbstring-5.3.3-27.el6_5.x86_64 (updates)
Requires: php-common(x86-64) = 5.3.3-27.el6_5
Installed: php-common-5.4.30-1.el6.remi.x86_64 (#remi)
php-common(x86-64) = 5.4.30-1.el6.remi
Available: php-common-5.3.3-26.el6.x86_64 (base)
php-common(x86-64) = 5.3.3-26.el6
Available: php-common-5.3.3-27.el6_5.x86_64 (updates)
php-common(x86-64) = 5.3.3-27.el6_5
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Somebody please Help. Thanx in advance
You've installed a more recent PHP version (5.4.30-1) from another source (#remi) than the officials (base) repository provides. Now you're trying to install the phpMyAdmin package, which depends on php-mbstring. php-mbstring is the actual problem here -- it's being automatically installed because phpmyadmin depends on it, but the version you're attempting to install isn't compatible with the rest of your PHP installation.
The solution is easy, though, since remi also provides phpmyadmin (quite a bit more recent version than you're attempting to install, too!). Just install phpmyadmin and php-common from the remi repository like you installed PHP. There are some instructions at http://blog.famillecollet.com/pages/Config-en if you forgot, but you managed to install the upgraded PHP already so you should be able to get the remi phpmyadmin installed pretty easily.
OR....
Download phpMyAdmin from http://www.phpmyadmin.net and uncompress it to your web root and forget about the package. php-mbstring isn't strictly required to run the application anyway, so you don't even need to worry about that part as long as you meet the other requirements.
You installed php5.4 from remi repository.
phpmyadmin needs php to work; but you are installing phpmyadmin from the official repository and that phpmyadmin version needs php5.3.
I guess you don't want to go back to php5.3, so just run this command:
yum --enablerepo=remi install phpmyadmin
If you didn't add remi repositories to you CentOS, you will have to previously run:
sudo rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

How can I solve this Sphinx search dependency issue?

I'm trying to install Sphinx search on a CentOS VPS via SSH but I keep getting dependency issues that I can't seem to resolve.
Here's the OS I'm using:
cat /etc/redhat-release
CentOS 6.4 (Final)
uname -a
Linux host.example.com 2.6.32-042stab074.10 #1 SMP Fri Mar 1 09:18:44 MSK 2013 i686 i686 i386 GNU/Linux
This to me looks like I need the 32-bit CentOS 6 rpm so I tried to install it with this command:
sudo yum install http://sphinxsearch.com/files/sphinx-2.0.8-1.rhel6.i386.rpm
but I get the following error message:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.advancedhosters.com
* extras: centos.mirror.constant.com
* updates: mirror.lug.udel.edu
base | 3.7 kB 00:00
extras | 3.5 kB 00:00
updates | 3.4 kB 00:00
Setting up Install Process
sphinx-2.0.8-1.rhel6.i386.rpm | 5.6 MB 00:30
Examining /var/tmp/yum-root-oMekz6/sphinx-2.0.8-1.rhel6.i386.rpm: sphinx-2.0.8-1.rhel6.i386
Marking /var/tmp/yum-root-oMekz6/sphinx-2.0.8-1.rhel6.i386.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package sphinx.i386 0:2.0.8-1.rhel6 will be installed
--> Processing Dependency: libmysqlclient.so.16 for package: sphinx-2.0.8-1.rhel6.i386
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16) for package: sphinx-2.0.8-1.rhel6.i386
--> Finished Dependency Resolution
Error: Package: sphinx-2.0.8-1.rhel6.i386 (/sphinx-2.0.8-1.rhel6.i386)
Requires: libmysqlclient.so.16
Error: Package: sphinx-2.0.8-1.rhel6.i386 (/sphinx-2.0.8-1.rhel6.i386)
Requires: libmysqlclient.so.16(libmysqlclient_16)
You could try using --skip-broken to work around the problem
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
frontpage-2002-SR1.2.i386 has missing requires of libexpat.so.0
sendmail-cf-8.14.4-8.el6.noarch has missing requires of sendmail = ('0', '8.14.4', '8.el6')
No matter what I try I always seem to be missing libmysqlclient.so.16.
Any idea where I can find this package?
yum install mysql-devel
should do it.
Install the remi repository:
[http://blog.famillecollet.com/pages/Config-en]
Enterprise Linux 6 (with EPEL) i386 or x86_64
wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
then install compat-mysql51
yum --enablerepo=remi install compat-mysql51
then install sphinx from the rpm downloaded
yum localinstall sphinx-2.1.2-1.rhel6.SYSTEM-VERSION.rpm
Use the SphinxSearch docker files (docker hub link) to easily install SphinxSearch.
Grab it:
docker pull leodido/sphinxsearch:latest
If you want to see how to compile from source (which I recommend as the better mode to install SphinxSearch), look into them - e.g., here.

Linux - Yum Install GCC - Missing Kernel-headers

When ever i try to install GCC on my linux (centos) It comes back with missing
glibc-headers-2.5-58.el5_6.4.x86_64 from updates has depsolving problems --> Missing Dependency: kernel-headers is needed by package glibc-headers-2.5-
58.el5_6.4.x86_64 (updates)
glibc-headers-2.5-58.el5_6.4.x86_64 from updates has depsolving problems
-->
Missing Dependency: kernel-headers >= 2.2.1 is needed by package glibc-headers-2.5- 58.el5_6.4.x86_64 (updates)
Error: Missing Dependency: kernel-headers >= 2.2.1 is needed by package glibc-headers-2.5-58.el5_6.4.x86_64 (updates)
Error: Missing Dependency: kernel-headers is needed by package glibc-headers-2.5-58.el5_6.4.x86_64 (updates)
I try yum install kernel-header & kernel-devel but get back:
No package kernel-headers available.
Any suggestions?
Your system is probably configured to exclude the kernel packages.
try:
sudo vi /etc/yum.conf
then comment (or remove the 'kernel*' part):
#exclude=kernel*
Then you should be able to do:
sudo yum install kernel-headers
Edit: Or, as pointed by Andrew Beals, you can simply run:
yum install kernel-headers --disableexcludes=all
Yes, you could edit the yum.conf file, or you could simply do this:
yum install kernel-headers --disableexcludes=all
Do note that even if your admin is trying to install an excluded package from your RHN Satellite server via the normal process, it will still fail due to the local configuration.
(This holds for RHEL6 / cent6 (centos6) as well, of course.)
I ran into this issue trying to install VMWare Tools. It required gcc and kernel headers -> kernel headers were missing.
So on Redhat 7.4 I had to execute 'yum install kernel-devel'.
try
yum search kernel-headers
gives:
arm-gp2x-linux-kernel-headers.noarch : Kernel headers for Cross Compiling to
: arm-gp2x-linux
kernel-headers.x86_64 : Header files for the Linux kernel for use by glibc
If you installed from Cloudlinux ISO, you can't do anything until you activate your server against a license, it will throw above error on a VPS.
I had the same issue. It seems that I need to install the kernel-devel-xx.rpm (from kernel development package) to my custom kernel:
sudo yum install kernel-devel-xx.rpm
Then you should be able to run:
sudo yum install kernel-devel

Resources