Installing Geo IP Error

When trying to install geoip, I received this error:  sudo pecl install geoip


configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking for geoip support... yes, shared
checking for geoip files in default path... not found
configure: error: Please reinstall the geoip distribution
ERROR: `/tmp/pear/temp/geoip/configure' failed
LVL 3
Computer GuyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gheistCommented:
On what distribution? What PHP package version?
So far i see PHP cannot find geoip library (geoip-dev or geoip-devel package)
0
MurfurFull Stack DeveloperCommented:
What OS are you using?
GeoIP and dependencies install from the EPEL repository if you're using YUM on RedHat/Fedora/CentOS
yum install geoip-devel

Open in new window

0
gheistCommented:
And you can pick php-geoip from same EPEL too...
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Computer GuyAuthor Commented:
How do I enable that in my php.ini file?
0
MurfurFull Stack DeveloperCommented:
You don't - it is a command you enter on the console, i.e. instead of 'sudo pecl install geoip'
0
Ray PaseurCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.