Checksum failure on mysql-connector-java

View: New views
7 Messages — Rating Filter:   Alert me  

Checksum failure on mysql-connector-java

by Scott Harper :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am trying to install the mysql-connector-java port, but am encountering a checksum failure:

>sudo port install mysql-connector-java
--->  Fetching mysql-connector-java
--->  Verifying checksum(s) for mysql-connector-java
Error: Checksum (md5) mismatch for mysql-connector-java-5.0.4.tar.gz
Error: Target org.macports.checksum returned: Unable to verify file checksums
Error: Status 1 encountered during processing.

Is there a fix or workaround?

thanks
scott


Re: Checksum failure on mysql-connector-java

by Brian Peisley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

There has already been a ticket put in for this (3 weeks ago!)
http://trac.macports.org/projects/macports/ticket/12452

I am also having this problem, and before everybody starts saying
"just change the checksum in the Portfile":

    1) Changing the checksum in the Portfile is at best a silly thing
to do, as it defeats the
        whole purpose of having a checksum.  At worst, you could
really mess things on up
        on your system by attempting to corrupted file, or install
something else entirely
        since you are disregarding the guarantee that the file you
received is the file you
        expected.

    2) It doesn't work for this anyway.  In this case the file in
question is in fact corrupt, and
        changing the checksum will just get you an error message
telling you as much.

This is probably a very simple matter for somebody with the right
permissions to fix, but until that happens there's really not much you
can do other than go download, build, and install the software
yourself.

Brian


On 8/31/07, Scott Harper <scott@...> wrote:

>
> I am trying to install the mysql-connector-java port, but am encountering a
> checksum failure:
>
> >sudo port install mysql-connector-java
> --->  Fetching mysql-connector-java
> --->  Verifying checksum(s) for mysql-connector-java
> Error: Checksum (md5) mismatch for mysql-connector-java-5.0.4.tar.gz
> Error: Target org.macports.checksum returned: Unable to verify file
> checksums
> Error: Status 1 encountered during processing.
>
> Is there a fix or workaround?
>
> thanks
> scott
>
>
> --
> View this message in context: http://www.nabble.com/Checksum-failure-on-mysql-connector-java-tf4360936.html#a12428990
> Sent from the MacPorts - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> macports-users mailing list
> macports-users@...
> http://lists.macosforge.org/mailman/listinfo/macports-users
>


--
Brian Peisley
brian.peisley@...
Die Grenzen meiner Sprache sind die Grenzen meiner Welt. -- Ludwig Wittgenstein
_______________________________________________
macports-users mailing list
macports-users@...
http://lists.macosforge.org/mailman/listinfo/macports-users

Re: Checksum failure on mysql-connector-java

by Scott Harper :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Brian Peisley wrote:
There has already been a ticket put in for this (3 weeks ago!)
http://trac.macports.org/projects/macports/ticket/12452
Thanks Brian.

I did search the "MacPorts - Tickets" forum for "mysql-connector-java" and didn't find that ticket...  my apologies...  I guess I'm not searching the right places.


Re: Checksum failure on mysql-connector-java

by Brian Peisley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey Scott,

Don't worry about it.  I happened to see that ticket a couple weeks
ago when I was looking for tickets about a problem I was having
installing subversion, so I just knew it was there already.

I just wish this would get fixed, because I'd much rather have
macports keep track of the software I've installed than do it myself.
Previous experience suggests that isn't one of my strengths... :-)

Best of luck,
Brian

On 8/31/07, Scott Harper <scott@...> wrote:

>
>
> Brian Peisley wrote:
> >
> > There has already been a ticket put in for this (3 weeks ago!)
> > http://trac.macports.org/projects/macports/ticket/12452
> >
>
> Thanks Brian.
>
> I did search the "MacPorts - Tickets" forum for "mysql-connector-java" and
> didn't find that ticket...  my apologies...  I guess I'm not searching the
> right places.
>
>
> --
> View this message in context: http://www.nabble.com/Checksum-failure-on-mysql-connector-java-tf4360936.html#a12434129
> Sent from the MacPorts - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> macports-users mailing list
> macports-users@...
> http://lists.macosforge.org/mailman/listinfo/macports-users
>


--
Brian Peisley
brian.peisley@...
Die Grenzen meiner Sprache sind die Grenzen meiner Welt. -- Ludwig Wittgenstein
_______________________________________________
macports-users mailing list
macports-users@...
http://lists.macosforge.org/mailman/listinfo/macports-users

Re: Checksum failure on mysql-connector-java

by Simon Ruderich :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Scott Harper wrote:

> I am trying to install the mysql-connector-java port, but am encountering a
> checksum failure:
>
>> sudo port install mysql-connector-java
> --->  Fetching mysql-connector-java
> --->  Verifying checksum(s) for mysql-connector-java
> Error: Checksum (md5) mismatch for mysql-connector-java-5.0.4.tar.gz
> Error: Target org.macports.checksum returned: Unable to verify file
> checksums
> Error: Status 1 encountered during processing.
>
> Is there a fix or workaround?
>
> thanks
> scott

It looks like the distfile (mysql-connector-java-5.0.4.tar.gz) is
corrupted because gzip can't open it (and the checksum doesn't match).

I don't work with java so I don't want to change the port, but you could
try the following to use the newest version of the port (as suggested
some minutes ago by ryandesign@... on the ticket page [1]):

port edit mysql-connector-java

Or if this doesn't work

port dir mysql-connector-java

Open the Portfile in this directory with your favorite editor.

And then change the version to 5.0.7 and the md5 checksum to:

d177ce7397b119f013458cec0418ad2d

Then run "port install" as usual. Please report back if the updated
version works, so we can update it in macports.

Hope this helps,
Simon

[1]: http://trac.macports.org/projects/macports/ticket/12452
- --
+ privacy is necessary
+ using http://gnupg.org
+ public key id: 0x6115F804EFB33229
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFG2JrEYRX4BO+zMikRCg6OAKCdRSp2qkAXUrNLWljmUQsqH6O7VgCeNMyB
LWRFSrofrHhEAD7CdRNNZwk=
=qfuN
-----END PGP SIGNATURE-----
_______________________________________________
macports-users mailing list
macports-users@...
http://lists.macosforge.org/mailman/listinfo/macports-users

Re: Checksum failure on mysql-connector-java

by Scott Harper :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Simon Ruderich wrote:
port edit mysql-connector-java

And then change the version to 5.0.7 and the md5 checksum to:

d177ce7397b119f013458cec0418ad2d

Then run "port install" as usual. Please report back if the updated
version works, so we can update it in macports.
That appears to work properly...

scott

Re: Checksum failure on mysql-connector-java

by Simon Ruderich :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Scott Harper wrote:

>
> Simon Ruderich wrote:
>> port edit mysql-connector-java
>>
>> And then change the version to 5.0.7 and the md5 checksum to:
>>
>> d177ce7397b119f013458cec0418ad2d
>>
>> Then run "port install" as usual. Please report back if the updated
>> version works, so we can update it in macports.
>>
>
> That appears to work properly...
>
> scott

I'm glad it works, I just updated the portfile. The update will be
available to all users in about half an hour.

Thanks for your help,
Simon
- --
+ privacy is necessary
+ using http://gnupg.org
+ public key id: 0x6115F804EFB33229
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFG3XiDYRX4BO+zMikRCitKAJ9T+CCe9gVjDqhK9TIr0ukrftf2uACg1bNT
MqsOep2m5MUqv7CjZZPVyGM=
=ca8i
-----END PGP SIGNATURE-----
_______________________________________________
macports-users mailing list
macports-users@...
http://lists.macosforge.org/mailman/listinfo/macports-users