#31370 closed defect (duplicate)
Can't update outdated php5.3.8
Reported by: | cristian@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.3 |
Keywords: | Cc: | ||
Port: | php5 |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
I ran the commands
sudo port selfupdate sudo port upgrade outdated
over Snow Leopard this morning and I found this surprise:
---> Computing dependencies for php5 ---> Verifying checksum(s) for php5 Error: Checksum (rmd160) mismatch for php-5.3.8.tar.bz2 Error: Checksum (sha256) mismatch for php-5.3.8.tar.bz2 *** The non-matching file appears to be HTML. See this page for possible reasons for the checksum mismatch: <https://trac.macports.org/wiki/MisbehavingServers> *** Error: Target org.macports.checksum returned: Unable to verify file checksums Log for php5 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_php5/php5/main.log Error: Unable to upgrade port: 1 To report a bug, see <http://guide.macports.org/#project.tickets>
Which seems to be an error of php5 port, I guess. I need to get installed php5-gd and php5-curl, but I can't because these two depend on php5 package, wich can't be upgraded.
Change History (9)
comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Keywords: | php 5.3.8 upgrade outdated fail removed |
Type: | update → defect |
comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports-tickets@… to ryandesign@… |
---|
comment:3 Changed 13 years ago by cristian@…
the file actually contains html.
<html> <head> <title> </title> <script type="text/javascript"> function bredir(a,b,c,d,e){var f,g,h,i,j;var k=false;var l=false;var m=[[300,250,false],[250,250,false],[240,400,false],[336,280,false],[180,150,false],[468,60,false],[234,60,false],[88,31,false],[120,90,false],[120,60,false],[120,240,false],[125,125,false],[728,90,false],[160,600,false],[120,600,false],[300,600,false],[300,125,false],[530,300,false],[190,200,false],[470,250,false],[720,300,true],[500,350,true],[550,480,true]];if(typeof window.innerHeight=="number"){g=window.innerHeight;f=window.innerWidth}else if(typeof document.body.offsetHeight=="number"){g=document.body.offsetHeight;f=document.body.offsetWidth}for(var n=0;n<m.length;n++){j=m[n];h=Math.abs(f-j[0]);i=Math.abs(g-j[1]);if(h<=2&&i<=2){k=true;l=j[2]}}if(k||f<100&&f!==0||g<100&&g!==0){if(l&&self==parent){self.close();return}return"/b"+"anner.php?w="+f+"&h="+g+"&d="+a+"&u="+b+"&r="+c+"&view="+d}else{return e+"&w="+f+"&h="+g}} </script> </head> <body onLoad="location.replace(bredir('uk2.php.net', 'uk2.php.net%2Fdistributions%2Fphp-5.3.8.tar.bz2', '', 'error', '/main?url=uk2.php.net%2Fdistributions%2Fphp-5.3.8.tar.bz2'));" style="margin: 0px;"> <noscript> <iframe frameborder="0" src="/main?url=uk2.php.net%2Fdistributions%2Fphp-5.3.8.tar.bz2" width="100%" height="100%"></iframe> </noscript> </body> </html>
What should the problem be? I mean, why I receive html instead of the proper file? Which should the source be and how do I fix it?
Thanks!
comment:4 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:5 follow-up: 6 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Also, you will then need to "sudo port clean --all php5" to clean out the bad file that was downloaded before.
comment:6 Changed 13 years ago by cristian@…
Replying to ryandesign@…:
Also, you will then need to "sudo port clean --all php5" to clean out the bad file that was downloaded before.
Thanks!
I did it, but without the "-v" parameter. Never noticed the difference (which seems to matter).
The real thing happened when I ran
sudo port clean --all php5
After that everything worked as it should.
Thanks a lot!
comment:7 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
"-v" stands for "verbose"; it just means it will show more information.
You didn't mention what happened the first time you ran selfupdate, but if it updated MacPorts base to a newer version, then you needed to have run selfupdate a second time to actually update the portfiles.
comment:8 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Or perhaps you tried before to upgrade php5, before the 13th, before I had fixed the problem, and now you were trying again, without having cleaned first.
Either way, glad you got it fixed.
comment:9 Changed 13 years ago by cristian@…
Now I remember.
First tried to install php-curl. At that time showed me the error for php5.3.8 (this morning).
Then I tried to update and upgrade outdated. The update surely was installed, but I never cleaned before retrying to upgrade.
My mistake!
Will never happen again! Thanks again!
Did you read MisbehavingServers? What does the file /opt/local/var/macports/distfiles/php5/php-5.3.8.tar.bz2 contain? (Open it in a text editor.)