Raised This Month: $51 Target: $400
 12% 

Geo IP Pure Perl


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Julius95
Senior Member
Join Date: Jul 2013
Location: Sweden
Old 08-08-2013 , 12:08   Geo IP Pure Perl
Reply With Quote #1

I installed it but I still need help with this
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Q: I'm getting errors with Geo::IP:urePerl. What is it? What does it require?
Q: The users country flags do not work, I only get the default flags, why?


ERROR: GeoIP method set to binary file lookup but Geo::IP:urePerl module NOT FOUND

[B]That's the error I get[/B]

A: HlstatsX:CE has the option of allowing country flags. It requires certain programs in order for this to work. Geo::IP:urePerl is such a package and can be installed in a different of ways:

Via CPAN
Again go to a linux command line. Do the following as root:
Code:
cpan
install Geo::IP:urePerl
It should now be installed.

I have installed it but I don't get the last part... execute etc... I'm getting confused what am I going to do exactly and write exactly in which files?

After installing Geo::IP:urePerl you will need to set the method you are going to use with the flags.
Go to the /scripts/GeoLiteCity/ directory, and execute the file called "install_binary.sh". It might be nessecary to chmod the file to +x (execute) before you will be able to run it. This will download the GeoLiteCity.dat.

Now the only thing left is to go to your stats website, login as admin, choose "HLstatsX:CE Settings", browse down to "award settings" and select "GeoIP lookup via binary file" option. Restart the daemon afterwards!

Last edited by Julius95; 08-08-2013 at 12:30.
Julius95 is offline
Send a message via ICQ to Julius95 Send a message via AIM to Julius95 Send a message via MSN to Julius95 Send a message via Yahoo to Julius95 Send a message via Skype™ to Julius95
Walliski
Senior Member
Join Date: May 2013
Old 08-08-2013 , 17:33   Re: Geo IP Pure Perl
Reply With Quote #2

I suppose you are running linux?

To install the Perl modules required:

Code:
cpan
install GEo::IP:PurePerl
quit
To install the binary files needed:
Code:
cd scripts/GeoLiteCity/          #Changes folder to the GeoLiteCity folder, change to correct one
chmod +x install_binary.sh   #Makes the install_binary.sh file runnable
./install_binary.sh                 #Runs the file so that it will download the files needed for country lookup
After you have done this, just make the website use "binary data" for geo lookup as instructed...

More questions?

Last edited by Walliski; 08-08-2013 at 17:39.
Walliski is offline
Julius95
Senior Member
Join Date: Jul 2013
Location: Sweden
Old 08-09-2013 , 01:58   Re: Geo IP Pure Perl
Reply With Quote #3

Quote:
Originally Posted by Walliski View Post
I suppose you are running linux?

To install the Perl modules required:

Code:
cpan
install GEo::IP:PurePerl
quit
To install the binary files needed:
Code:
cd scripts/GeoLiteCity/          #Changes folder to the GeoLiteCity folder, change to correct one
chmod +x install_binary.sh   #Makes the install_binary.sh file runnable
./install_binary.sh                 #Runs the file so that it will download the files needed for country lookup
After you have done this, just make the website use "binary data" for geo lookup as instructed...

More questions?
No I run windows.

How do I install binary files? that seemed complicated
Julius95 is offline
Send a message via ICQ to Julius95 Send a message via AIM to Julius95 Send a message via MSN to Julius95 Send a message via Yahoo to Julius95 Send a message via Skype™ to Julius95
XAFAfterShock
Member
Join Date: Feb 2009
Old 08-09-2013 , 03:48   Re: Geo IP Pure Perl
Reply With Quote #4

you need to go into your stats folder and create a folder named perl then inside that folder create another folder named GeoLiteCity and in that folder is where the GeoLiteCity.dat goes, after that restart your daemon.
XAFAfterShock is offline
Walliski
Senior Member
Join Date: May 2013
Old 08-09-2013 , 04:09   Re: Geo IP Pure Perl
Reply With Quote #5

Installing Binary files on Windows:
Download this file:

http://geolite.maxmind.com/download/...iteCity.dat.gz

unzip it with WinRAR / 7zip or whatever program you use. Place the GeoLiteCity.dat file into the scripts/GeoLiteCity folder, and you are done.

Try restarting the daemon after this, and see if it works.
Walliski is offline
Julius95
Senior Member
Join Date: Jul 2013
Location: Sweden
Old 08-09-2013 , 10:17   Re: Geo IP Pure Perl
Reply With Quote #6

I still can't manage to install the binary files

a video tutorioual would be nice or something or pictures, what programs needed on a windows machine?

here is my site


http://julius95.zapto.org/stats/hlstats.php?game=tf

seemse some pictures are missing like the Server load graph

and here at my profile
http://julius95.zapto.org/stats/hlst...info&player=15

forum signature seems to not work :/
Julius95 is offline
Send a message via ICQ to Julius95 Send a message via AIM to Julius95 Send a message via MSN to Julius95 Send a message via Yahoo to Julius95 Send a message via Skype™ to Julius95
Walliski
Senior Member
Join Date: May 2013
Old 08-10-2013 , 04:24   Re: Geo IP Pure Perl
Reply With Quote #7

Cant really help you with the graphs and stuff, since I dont know how it works in Windows, since I am using Linux myself, and have never had a Windows server...
Walliski is offline
Rytis
Veteran Member
Join Date: Feb 2012
Location: Germany
Old 08-10-2013 , 06:54   Re: Geo IP Pure Perl
Reply With Quote #8

Server load graph: http://julius95.zapto.org/stats/show...8&color=FFFFFF Just read the error and google it.
Signatures are not working, because the rewrite rules are not set
Rytis is offline
XAFAfterShock
Member
Join Date: Feb 2009
Old 08-10-2013 , 13:47   Re: Geo IP Pure Perl
Reply With Quote #9

Quote:
Originally Posted by Julius95 View Post
I still can't manage to install the binary files

a video tutorioual would be nice or something or pictures, what programs needed on a windows machine?

here is my site


http://julius95.zapto.org/stats/hlstats.php?game=tf

seemse some pictures are missing like the Server load graph

and here at my profile
http://julius95.zapto.org/stats/hlst...info&player=15

forum signature seems to not work :/
sent you a pm
XAFAfterShock is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode