This forum has been archived. All content is frozen. Please use KDE Discuss instead.

how to enable the geoip ?

Tags: None
(comma "," separated)
LinuxDoc
Registered Member
Posts
9
Karma
0

how to enable the geoip ?

Thu Jul 20, 2006 11:25 am
Hi,

I compiled ktorrent with "./configure --enable-geoip" but allways it show at Country : "N/A" :-((

I tryed it with the 2.0rc1 and the svn version.

What is my mistake ?
imported4-Ivan
Registered Member
Posts
819
Karma
0

Thu Jul 20, 2006 5:45 pm
There's no need to configure with '--enable-geoip' since it's enabled by default.

Weird thing is that what you get for the country ("N/A") is received from GeoIP code so apparently it should be working but it somehow does not recognize any countries.

Does the file (geoip.dat) exist? It should be somewhere in your $KDEDIR/share/apps/ktorrent
stoeptegel
Registered Member
Posts
1075
Karma
0

Thu Jul 20, 2006 6:56 pm
It's in svn checkout and tar.gz at ktorrent/plugins/infowidget/geoip/, but not on ~/.kde/share/apps/ktorrent/
imported4-Ivan
Registered Member
Posts
819
Karma
0

Thu Jul 20, 2006 7:04 pm
I think you misunderstood me. It's not in your local KDE dir ~/.kde/ but it should be in *global* KDE dir like this: $KDEDIR/share/apps/ktorrent/geoip

On my Dapper it's in this path:

/usr/share/apps/ktorrent/geoip

On SuSE it'll probably be /opt/kde3/share/apps/ktorrent/geoip
stoeptegel
Registered Member
Posts
1075
Karma
0

Thu Jul 20, 2006 7:20 pm
Lol i did confused this, i am still in *just out of bed* mode.
Cp the geoip.dat file back in /usr/share/apps/ktorrent/geoip/ works for me.
LinuxDoc
Registered Member
Posts
9
Karma
0

Thu Jul 20, 2006 9:50 pm
Thanks all :-)

Code: Select all
$ locate geoip.dat
/home/ldoc/ktorrent/plugins/infowidget/geoip/.svn/text-base/geoip.dat.svn-base
/home/ldoc/ktorrent/plugins/infowidget/geoip/.svn/prop-base/geoip.dat.svn-base
/home/ldoc/ktorrent/plugins/infowidget/geoip/.svn/props/geoip.dat.svn-work
/home/ldoc/ktorrent/plugins/infowidget/geoip/geoip.dat

$ cp /home/ldoc/ktorrent/plugins/infowidget/geoip/geoip.dat /usr/share/apps/ktorrent/geoip



now it works :-)
markus
Registered Member
Posts
9
Karma
0

Wed Aug 02, 2006 9:29 pm
This may work for you but it is still an issue in svn. It seems that

if ENABLE_GEOIP
ktdata_DATA += geoip.dat GeoIP-LICENSE.txt
endif

doesn't really add both files to ktdata_DATA. At least these files never get installed currently. I have tried to locate the error but failed so far. Furthermore I don't see why the flags should be installed if I disable GeoIP. Wouldn't it be easier to exclude the whole subdir if GeoIP is disabled?
George
Moderator
Posts
5421
Karma
1

Thu Aug 03, 2006 4:31 pm
markus wrote:This may work for you but it is still an issue in svn. It seems that

if ENABLE_GEOIP
ktdata_DATA += geoip.dat GeoIP-LICENSE.txt
endif

doesn't really add both files to ktdata_DATA. At least these files never get installed currently. I have tried to locate the error but failed so far. Furthermore I don't see why the flags should be installed if I disable GeoIP. Wouldn't it be easier to exclude the whole subdir if GeoIP is disabled?


It's just an error in the configure.in.in files, I still need to fix it.
George
Moderator
Posts
5421
Karma
1

Thu Aug 03, 2006 4:59 pm
OK, this is what happens :
--enable-geoip -> geoip.dat gets installed
--disable-geoip -> geoip.dat does not get installed

This is the correct behavior
markus
Registered Member
Posts
9
Karma
0

Thu Aug 03, 2006 6:00 pm
Not here (latest SVN, FreeBSD 6.1)

pass --enable-geoip to configure -> geoip.dat does not get installed
pass nothing to configure -> geoip.dat does not get installed

In both cases the db should have been installed.

Why not disable the whole geoip subdir if I don't want geoip? Installing the flags doesn't make sense if ktorrent doesn't use them anyway.
George
Moderator
Posts
5421
Karma
1

Sat Aug 05, 2006 10:43 am
markus wrote:Not here (latest SVN, FreeBSD 6.1)

pass --enable-geoip to configure -> geoip.dat does not get installed
pass nothing to configure -> geoip.dat does not get installed

In both cases the db should have been installed.


Are you using automake ? I'm using unsermake here, and maybe there is a difference between the two.

Why not disable the whole geoip subdir if I don't want geoip? Installing the flags doesn't make sense if ktorrent doesn't use them anyway.


Because it is easier to tell people to install one file when they come complaining that they don't see any flags in the infowidget (some distros do not like the database license, the reason why we added this option)
markus
Registered Member
Posts
9
Karma
0

Sat Aug 05, 2006 3:05 pm
George wrote:Are you using automake ? I'm using unsermake here, and maybe there is a difference between the two.


Yes, automake 1.9.6. Apparently that makes the difference, somehow.
George wrote:
Why not disable the whole geoip subdir if I don't want geoip? Installing the flags doesn't make sense if ktorrent doesn't use them anyway.


Because it is easier to tell people to install one file when they come complaining that they don't see any flags in the infowidget (some distros do not like the database license, the reason why we added this option)
Ah, I see.
George
Moderator
Posts
5421
Karma
1

Sun Aug 06, 2006 8:21 am
I will mess around with automake, see where the problem is.
markus
Registered Member
Posts
9
Karma
0

Tue Aug 08, 2006 5:13 pm
Thanks for fixing this!


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft