Curl beeps at me and displays binary on Mac Terminal
I went through the very arduous, yet somehow rewarding, experience of building MySQL from scratch on my Mac.
This article explains how and why you might want to install mysql from source on mac os x.
I then finished, went to bed, and this morning decided to use my own Mac (rather than the family mac, ie: my wife’s), and found I had no MySQL. Drat!. Alright, second time is easier, right?
Beep, beep, beep, beep… FAIL
One of the steps required is to use curl to bring down the source. The first time through, I entered the command as instructed
curl -O http://mysql.he.net/Downloads/MySQL-5.1/mysql-5.1.33.tar.gz
Strange, alien looking glyphs flash past the green themed terminal screen while the computer beeps repeatedly. I had a hard time finding any reference as to why this might be happening. I finally gave up, downloaded using Safari, copied manually, and skipped curl. Today, I was determined to discover the cause.
In reviewing the options, I found an argument to send output to a file rather than the terminal window or STOUT. That did the trick! In addition, I added the “progress bar” argument so I had something to watch.
curl -0 http://mysql.he.net/Downloads/MySQL-5.1/mysql-5.1.35.tar.gz -o mysql-5.1.35.tar.gz -#
curl -0 http://mysql.he.net/Downloads/MySQL-5.1/mysql-5.1.35.tar.gz -o mysql-5.1.35.tar.gz -#
I am now dangerous with curl. Hope this helps some other Windows defector
June 9th, 2009 at 9:40 pm
You should note that in the first example, the code is right. The URL is wrong, since if you were to open the file as an xHTML 1.1 document, it would tell you that you have reached a 404 error.
The second code example, you are actually doing something somewhat correct, but more complicated than you need to. You have two different URLs here as well, so your first example that does not work is pointing to MySQL 5.1.33, where as the second is pointing to 5.1.35. The hosting provider that mirrors MySQL’s source package that you have chosen has decided to host only the latest package, and not archive all of them. The second will fail as well if you use the original URL.
when using cURL, be sure that you are typing a capital O (as the word omega) not the numeral zero (0). This switch writes a file locally with the same name as the remote file. when using the switch -0 (zero), you’re telling curl to force a http 1.0 connection.
So, what I’m getting at, is: Use the first example, but correct the URL to point to the correct package.
July 28th, 2009 at 1:33 pm
shemale fucks female…
Very usefull. Thanks! shemale fucks female…