I am trying to get the db files from the geo ip, but my folder /usr/share/GeoIP folders is always empty. When running: yum install GeoIP, I am getting message:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.xtom.nl
* epel: mirror.hostnet.nl
* extras: mirror.seedvps.com
* updates: mirror.dataone.nl
Package GeoIP-1.5.0-14.el7.x86_64 already installed and latest version
Nothing to do
Any clue why my folder is empty ? PS: I removed the GeoIP folder (with the old version of the db) and recreated it manually.
Thnx
Seems like the package locate file in different directory. You can check where the files are located with command:
rpm -ql GeoIP
Related
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've tried to install GMP on CentOS and this error appears:
yumdownloader --source gmp
Enabling mysql-tools-community-source repository
Enabling mysql-connectors-community-source repository
Enabling mysql56-community-source repository
Loading mirror speeds from cached hostfile
* base: centos.mirrors.ovh.net
* epel: nl.mirror.babylon.network
* epel-source: nl.mirror.babylon.network
* extras: centos.mirrors.ovh.net
* updates: centos.mirrors.ovh.net
No source RPM found for gmp-4.3.1-10.el6.x86_64
No source RPM found for gmp-4.3.1-10.el6.i686
Nothing to download
Can you help me please?
How to install GMP : # yum install gmp-devel
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
i'm trying to install imagemagick on my server (centos 7.1 minimal) by this url:
imagemagick installation steps
get this error in step 1:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.de.leaseweb.net
* epel: mirrors.n-ix.net
* extras: mirror.de.leaseweb.net
* remi: remi.schlundtech.de
* remi-php55: remi.schlundtech.de
* remi-php56: remi.schlundtech.de
* remi-safe: remi.schlundtech.de
* remi-test: remi.schlundtech.de
* updates: mirror.de.leaseweb.net
Package gcc-4.8.3-9.el7.x86_64 already installed and latest version
No package php-devel available.
No package php-pear available.
Nothing to do
Because this item has been questioned on many sites, I fully explain the installation process...
this proccess tested on centos 6.5 and php56 and imagick-3.4.3(ImageMagick-7)
Change the installation process for any part that needs to be changed like as your php version or folder.
you can find lasted version of "ImageMagick" in ImageMagick versions
; use lasted stable version.
If you have already installed "ImageMagick" several times, first remove all of them and find "ImageMagick" & "imagick" folders & files and clean all of them and continue the installation process with this process.
# yum remove ImageMagick ImageMagick-devel
Use the following command to find a file or folder:
# find / -name 'ImageMagick*'
# find / -name 'imagick*
Find and delete all the files and folders that are displayed
Start Installation php-pear:
Ensure you have php-pear installed, which will be used later to install Imagick PHP module.
If you don’t have pear, you can install using Yum:
# yum install php-pear
If you see the following error:
No package php—pear available.
Error: Nothing to do
solation:
# cd /etc/
and open yum.conf
OR
# nano /etc/yum.conf
And then find and remove php* and save file
then type:
# yum install --enablerepo remi php-pear php-devel
for test success Installation:
type:
# yum info php-pear
result is something like this :
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* epel: yum.ds.stackexchange.com
stack-local-prod | 2.9 kB 00:00
Available Packages
Name : php-pear
Arch : noarch
Epoch : 1
Version : 1.9.4
Release : 4.el6
Size : 393 k
Repo : base
Summary : PHP Extension and Application Repository framework
URL : http://pear.php.net/package/PEAR
License : BSD and PHP and LGPLv2+
Description : PEAR is a framework and distribution system for reusable PHP
: components. This package contains the basic PEAR components.
Start Installation ImageMagick:
# yum install ImageMagick
# yum install ImageMagick-devel
# pecl install Imagick
Important: copy "ImageMagick" folder from "/usr/include" to "/usr/local/include" for ImageMagick find "MagickWand.h"
# cd /usr/include
# cp ImageMagick /usr/local/include
before below lines don't forget: go to "php.ini" find "disable_functions" and clean "proc_open,popen,proc_close" becuase make imagick needs these functions, after complete installation you can add this functions to your "disable_functions" on "php.ini" file.
continue:
# cd /usr/local/src
# wget http://pecl.php.net/get/imagick-3.4.3.tgz
# tar xzfv imagick-3.4.3.tgz
# cd imagick-3.4.3
# phpize
# ./configure --with-php-config=/usr/local/php56/bin/php-config
# make
# make install
copy Installing shared extensions: "/usr/local/php56/lib/php/extensions/no-debug-non-zts-20131226/" this is extension dir
Copy "imagick.so" from "/usr/local/php56/lib/php/extensions/no-debug-non-zts-20131226/" to "/usr/local/php56/lib/php/extensions/" extension directory.
# cd /usr/local/php56/lib/php/extensions/no-debug-non-zts-20131226/
# cp imagick.so /usr/local/php56/lib/php/extensions/
Then, edit "php.ini", find "Dynamic Extensions" add extension=imagick.so in a empty line, don't forget there are 2 or more "php.ini" on your server, you can find all of them:
# find / -name 'php.ini'
result may be like this
/etc/php.ini
/usr/local/php56/lib/php.ini
Use this file at all stages:
/usr/local/php56/lib/php.ini
for test success Installation:
# php -m | grep imagick
result should be: imagick
for find all php functions and extensions use :
# php -m
now you can find "imagick" at showed list
Don't forget:
edit "php.ini", find "disable_functions" and add "proc_open,popen,proc_close" to disable_functions For server security!
now reboot your server
# reboot
for test imagick installation on php, use this code at php file:
if(extension_loaded('imagick')) {
$imagick = new Imagick();
print_r($imagick->queryFormats());
}
else {
echo 'imagick is not available.';
}
OR use
echo phpinfo();
According to the repository list in your paste, you are using "remi" repository for PHP. So, just
yum install php-pecl-imagick
No need to build from sources, when a RPM package exists.
But as yum doesn't even found php-devel, check yum configuration for "exclude" line, looks like a cpanel host which replace lot of base packages by their own.
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