Install failure due to Checksum (md5) mismatch for patch

Bradley Giesbrecht brad at pixilla.com
Sun Aug 15 19:11:44 PDT 2010


On Aug 15, 2010, at 6:48 PM, System Admin wrote:

> Last login: Sun Aug 15 20:18:56 on ttys000
> server:~ sadmin$ sudo port install php5-gd +apache2 +debug +fastcgi  
> +gmp +imap +ipc +macports_snmp +mysql5 +mysqlnd +pcntl +pear  
> +postgresql83 +pspell +sockets +sqlite +tidy
> Password:
> --->  Computing dependencies for php5-gd
> --->  Dependencies to be installed: freetype zlib jpeg libpng php5  
> apache2 apr apr-util db46 expat libiconv gperf mysql5 openssl  
> readline ncurses ncursesw postgresql83 bison gettext m4 libxml2  
> libxslt ossp-uuid sqlite3 pcre bzip2 autoconf213 gawk perl5 perl5.8  
> gsed libtool automake autoconf help2man p5-locale-gettext mhash  
> pkgconfig
> --->  Fetching zlib
> --->  Attempting to fetch zlib-1.2.5.tar.bz2 from http://www.zlib.net/
> --->  Verifying checksum(s) for zlib
> --->  Extracting zlib
> --->  Applying patches to zlib
> --->  Configuring zlib
> --->  Building zlib
> --->  Staging zlib into destroot
> --->  Installing zlib @1.2.5_0
> --->  Activating zlib @1.2.5_0
> --->  Cleaning zlib
> --->  Fetching freetype
> --->  Attempting to fetch freetype-2.4.2.tar.bz2 from http://downloads.sourceforge.net/freetype
> --->  Attempting to fetch freetype-doc-2.4.2.tar.bz2 from http://downloads.sourceforge.net/freetype
> --->  Verifying checksum(s) for freetype
> --->  Extracting freetype
> --->  Applying patches to freetype
> --->  Configuring freetype
> --->  Building freetype
> --->  Staging freetype into destroot
> --->  Installing freetype @2.4.2_0
> --->  Activating freetype @2.4.2_0
> --->  Cleaning freetype
> --->  Fetching jpeg
> --->  Attempting to fetch jpegsrc.v8b.tar.gz from http://www.ijg.org/files/
> --->  Verifying checksum(s) for jpeg
> --->  Extracting jpeg
> --->  Configuring jpeg
> --->  Building jpeg
> --->  Staging jpeg into destroot
> --->  Installing jpeg @8b_0
> --->  Activating jpeg @8b_0
> --->  Cleaning jpeg
> --->  Fetching libpng
> --->  Attempting to fetch libpng-1.2.44.tar.bz2 from http://downloads.sourceforge.net/libpng
> --->  Verifying checksum(s) for libpng
> --->  Extracting libpng
> --->  Configuring libpng
> --->  Building libpng
> --->  Staging libpng into destroot
> --->  Installing libpng @1.2.44_0
> --->  Activating libpng @1.2.44_0
> --->  Cleaning libpng
> --->  Fetching apr
> --->  Attempting to fetch apr-1.4.2.tar.bz2 from http://www.ibiblio.org/pub/mirrors/apache/apr
> --->  Verifying checksum(s) for apr
> --->  Extracting apr
> --->  Applying patches to apr
> --->  Configuring apr
> --->  Building apr
> --->  Staging apr into destroot
> --->  Installing apr @1.4.2_1
> --->  Activating apr @1.4.2_1
> --->  Cleaning apr
> --->  Fetching db46
> --->  Attempting to fetch patch.4.6.21.1 from http://www.oracle.com/technology/products/berkeley-db/db/update/4.6.21/
> --->  Attempting to fetch patch.4.6.21.2 from http://www.oracle.com/technology/products/berkeley-db/db/update/4.6.21/
> --->  Attempting to fetch patch.4.6.21.3 from http://www.oracle.com/technology/products/berkeley-db/db/update/4.6.21/
> --->  Attempting to fetch patch.4.6.21.4 from http://www.oracle.com/technology/products/berkeley-db/db/update/4.6.21/
> --->  Attempting to fetch db-4.6.21.tar.gz from http://distfiles.macports.org/db4/4.6.21_6
> --->  Verifying checksum(s) for db46
> Error: Checksum (md5) mismatch for patch.4.6.21.1
> Error: Checksum (md5) mismatch for patch.4.6.21.2
> Error: Checksum (md5) mismatch for patch.4.6.21.3
> Error: Checksum (md5) mismatch for patch.4.6.21.4
> Error: Target org.macports.checksum returned: Unable to verify file  
> checksums
> Log for db46 is at: /opt/local/var/macports/logs/ 
> _opt_local_var_macports_sources_rsync 
> .macports.org_release_ports_databases_db46/main.log
> Error: The following dependencies failed to build: php5 apache2 apr- 
> util db46 expat libiconv gperf mysql5 openssl readline ncurses  
> ncursesw postgresql83 bison gettext m4 libxml2 libxslt ossp-uuid  
> sqlite3 pcre bzip2 autoconf213 gawk perl5 perl5.8 gsed libtool  
> automake autoconf help2man p5-locale-gettext mhash pkgconfig
> Error: Status 1 encountered during processing.
> To report a bug, see <http://guide.macports.org/#project.tickets>
> server:~ sadmin$
>
> Any ideas where to go next ?


Oracle may have changed their server configs. Is you paste this path  
into safari you see you get redirected. You are downloading this page  
and hence your checksum is failing.
http://www.oracle.com/technology/products/berkeley-db/db/update/4.6.21/patch.4.6.21.1

The patch files are available here which is where port is fetching  
them from on my system.
http://distfiles.macports.org/db4/4.6.21_6

Download them manually and put them in distpath.
I think this command will show you where they go.
port distfiles db46

On my system it is here:
/opt/local/var/macports/distfiles/db4/4.6.21_6

$ cd /opt/local/var/macports/distfiles/db4/4.6.21_6
$ sudo curl http://distfiles.macports.org/db4/4.6.21_6/patch.4.6.21. 
[1-4] -O


// Brad


More information about the macports-users mailing list