Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mulo

macrumors 68020
Original poster
where are terminal apps stored?

say i have downloaded and compiled pngcrush and want to make it so that i can access it from terminal simply by typing pngcrush bla bla bla instead of having to specify the path to it?

unlike say wget, i can't "sudo make install" pngcrush
 
where are terminal apps stored?

say i have downloaded and compiled pngcrush and want to make it so that i can access it from terminal simply by typing pngcrush bla bla bla instead of having to specify the path to it?

unlike say wget, i can't "sudo make install" pngcrush

If you downloaded version 1.7.12 and invoked "make" then there should be a file named pngcrush in the source directory. You could move that file wherever you want. I suppose it would be standard to move it to /usr/local/bin. You can do that by typing the following in Terminal, assuming that the pngcrush source directory is the current working directory:

sudo cp ./pngcrush /usr/local/bin

You can then type /usr/local/bin/pngcrush to run the app. If /usr/local/bin is in your PATH you could just type pngcrush. Or just make an alias.
 
so not /usr/sbin/ like linux? 😛 - ill give it a shot 🙂

aa it works, thanks! 🙂
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.