Hi, JC Janos schrieb:
Hello,
I'm attempting to build your ipv6calc utility on OpenSuse 11.0.
cd /usr/local/src/ipv6calc ./configure --enable-geoip make update
Here, I have a failure that I don't understand,
... echo "Create database files for IPv4" Create database files for IPv4 cd ../ipv4-assignment && make update make[2]: Entering directory `/usr/local/src/ipv6calc/databases/ipv4-assignment' echo "Generate new header file, if necessary" Generate new header file, if necessary ./check-run-create.sh Found newer than dbipv4addr_assignment.h files: IANA=0 ARIN=1 APNIC=1 RIPENCC=1 LACNIC=1 AFRINIC=1 Generate subnet powers Proceed file: ../registries/iana/ipv4-address-space Cannot open file: ../registries/iana/ipv4-address-space at ./create-registry-list.pl line 126. make[2]: *** [update] Error 2 make[2]: Leaving directory `/usr/local/src/ipv6calc/databases/ipv4-assignment' make[1]: *** [update] Error 2 make[1]: Leaving directory `/usr/local/src/ipv6calc/databases/registries'
This seems to be a bug. Or, perhaps, a problem with my procedure?
It's a bug in the update script. Looks like at least me has never tested this on a fresh installation. Very simple patch is attached, will try to push 0.71.1 today or on Sunday. Thank you for notification. Regards, Peter --- databases/registries/update-registries.sh.old 2008-11-19 18:53:39.000000000 +0100 +++ databases/registries/update-registries.sh 2008-11-19 18:54:25.000000000 +0100 @@ -3,7 +3,7 @@ # Project : ipv6calc/databases/registries # File : update-registries.sh # Version : $Id: update-registries.sh,v 1.4 2007/03/03 11:57:29 peter Exp $ -# Copyright : 2002-2007 by Peter Bieringer <pb (at) bieringer.de> +# Copyright : 2002-2008 by Peter Bieringer <pb (at) bieringer.de> # replaces ../ipv4-assignment/update-ipv4-assignment.sh # replaces ../ipv6-assignment/update-ipv6-assignment.sh # @@ -33,6 +33,7 @@ get_urls | while read subdir url filename format; do echo "Check: $subdir" + [ ! -d "$subdir" ] && mkdir "$subdir" pushd $subdir || exit 1 wget $url$filename --timestamping --retr-symlinks retval=$?