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 - Development and Darwin Discussion and questions about development for Mac OS X.

installing 'ack' and terminal help


Post Reply New Thread Subscribe

 
Thread Tools
joeminkie

 
Member Since: Dec 11, 2008
Posts: 4
joeminkie is on a distinguished road

joeminkie is offline
hey, i'm trying to install ack: http://petdance.com/ack/ but the instructions on the site aren't working:

Code:
curl http://ack.googlecode.com/svn/tags/latest/ack-standalone > ~/bin/ack && chmod 0755 !$
at work yesterday i asked a linux guy for help to install it on my work machine, but i'm not totally sure how he did it and i can't recreate what he did at home now. i get the gist of what is supposed to be happening but no matter what directory i put as the target path it says either "No such file or directory" or "Permission denied." i've tried /bin, /usr/local/bin, /usr/bin, and created a directory /usr/local/ack but it still won't DL. i'm sure i'm missing something simple about terminal/unix but i've been trying to figure this out for hours over the past few nights and google is no help. i have tried prefacing the commands with sudo as well but still get the same responses. i appreciate any help, even if it's a pointer to material to read.
thanks,
joe
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,638
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
what returns when you do a which curl?

mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks
joeminkie

 
Member Since: Dec 11, 2008
Posts: 4
joeminkie is on a distinguished road

joeminkie is offline
/usr/bin/curl
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,638
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
Ok, so if you're issuing...

curl http://ack.googlecode.com/svn/tags/l...ack-standalone > ~/bin/ack && chmod 0755 !$


do you have a ~/bin/ack directory? If you do, do you have write permissions?

mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks
joeminkie

 
Member Since: Dec 11, 2008
Posts: 4
joeminkie is on a distinguished road

joeminkie is offline
i didn't, i thought the command would make one. so after it didn't work i tried making the ack directory (with mkdir) and i could cd to it, but still got Permission Denied. I did get the ack file to DL to my user directory (as in ~/ not ~/usr/) but i figured that's not where its supposed to go...? If i have that file and i can see my hidden files can i just drag it into the ack directory i made and authenticate with my password? If that works can i chmod that file or directory?

Thanks for any help, I would really like to learn more about terminal commands. It seems like it opens a whole new playground on the computer.
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,638
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
curl does nothing more than a get on an http address. So once the file is on your system you can move it around, etc. Personally, I'd put it in /usr/bin/
then chmod it to 755, that way it's in the path

mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks
joeminkie

 
Member Since: Dec 11, 2008
Posts: 4
joeminkie is on a distinguished road

joeminkie is offline
awesome, thanks. i used the GUI to drag the ack file into /usr/bin then used terminal to chmod it to 0755 and now it works. i appreciate the help.

i guess i wanted to do it through terminal to learn how it works (instead of "cheating" by using the GUI like i'm used to). i'll continue reading up online about it.
later,
joe
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,638
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
in terminal you could have done a

mv filename /usr/bin && chmod 755 /user/bin/filename


mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks

Post Reply New Thread Subscribe


« MS-DOS batch file equivelent on OSX | iMac G5 fan control »
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

All times are GMT -4. The time now is 12:44 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?