New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus • Advice and insight from world-class Apple enthusiasts • Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Restoring curl


Post Reply New Thread Subscribe

 
Thread Tools
JoeLiberté

 
Member Since: Apr 12, 2013
Posts: 1
JoeLiberté is on a distinguished road

JoeLiberté is offline
Hello everyone,
I did something stupid and need your help.

Thing is, I am kind of new to OSX and I am just trying to find my way around this system. I am used to work on linux machines. And just right now one of my download scripts refused to work.
(I often build little download scripts, because I am on a volume limit with my internet and can't cancel my contract for another one and a half year, so I download what I need at a friend's place.)
Anyway, the reason why my script didn't work was quite simple. I didn't have "wget" on my system.

A simple google question later, I found out that OSX is using curl, but I was unsuccesful finding a follow option similar to wget -f in the man of curl, so I decided to install wget on my system. I found a precompiled version of wget. But I still didn't know where to put it. I figured it would be in the same folder as curl is in. So I ran a "find / -name curl 2>/dev/null" and found curl in /usr/bin/curl. (Could have guessed that.. But after the home folder isn't in /home/username/ I've became careful.)

Anyway, this is the moment when my stupidity struck.
Half overtired, half distracted, I typed in without thinking or looking on my screen:
"sudo mv -v /Users/myname/Downloads/wget /usr/bin/curl"
D'oh!!!

Don't ask me why I did that.. It just happened.
Well, I renamed it to wget and made it executable and my script is working now, but I overwrote curl's binary. And now, I am wondering how to restore it.
Any help?
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,050
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
There are older versions of the binary here. However, if you want/need a more modern version, simply install a package manager such as Homebrew or MacPorts and use those to build it.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks

Post Reply New Thread Subscribe


« Mountain lion and Photo Thumbnails | Mac, download tab help »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
ipad stuck restoring Expatpam iPad Hardware and Accessories 3 01-24-2013 03:30 PM
Applescript Curl and Variable Help FallenAsh OS X - Development and Darwin 3 01-06-2013 01:59 PM
Problem restoring from Time Machine bmrzyglod OS X - Operating System 2 11-19-2012 10:22 AM
No sound from speaker, now not restoring Iphone 4 Help classified01 iPhone Hardware and Accessories 0 11-14-2011 10:52 PM
'restoring previous itunes library' 1monster Music, Audio, and Podcasting 0 09-28-2009 09:05 PM

All times are GMT -4. The time now is 08:15 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?