HFS+ Compression in 10.11


nelly22

macrumors 6502
Original poster
Sep 29, 2009
351
5
If you are asking this question then really, just use homebrew.
I want to learn this.

I tried to drag and drop it to /usr/bin but Capitan don't allow it. Mouse cursor changes to circle with \ when i try to drag and drop.

I dragged it to /usr/local/bin whatever that is.

What's the difference between different bin folders and how i can put it to correct bin folder? Thanks
 

MrNomNoms

macrumors 65816
Jan 25, 2011
1,132
249
Wellington, New Zealand
I want to learn this.

I tried to drag and drop it to /usr/bin but Capitan don't allow it. Mouse cursor changes to circle with \ when i try to drag and drop.

I dragged it to /usr/local/bin whatever that is.

What's the difference between different bin folders and how i can put it to correct bin folder? Thanks
Assuming you're the only one going to use it then you might as well just keep it in your personal direction and execute it using ./ (making sure you have the correct permissions on the file to allow it to be executable).
 

nelly22

macrumors 6502
Original poster
Sep 29, 2009
351
5
Assuming you're the only one going to use it then you might as well just keep it in your personal direction and execute it using ./ (making sure you have the correct permissions on the file to allow it to be executable).
Thanks. Do you mean keep it in my user folder or in root level of hard drive? And where this ./ goes? I'm only user in this computer.
 

allan.nyholm

macrumors 6502a
Nov 22, 2007
955
252
Aalborg, Denmark
Using the Terminal for this it would be much easier to deal with - type
Code:
sudo cp afsctool /usr/bin
type your password(which is invisible when typing btw.)

Have you turned off The System Integrity Protection on El Capitan? Only this allows for the file to be copied to that directory.
 

leman

macrumors G3
Oct 14, 2008
9,963
4,550
I want to learn this.

I tried to drag and drop it to /usr/bin but Capitan don't allow it. Mouse cursor changes to circle with \ when i try to drag and drop.

I dragged it to /usr/local/bin whatever that is.

What's the difference between different bin folders and how i can put it to correct bin folder? Thanks
If you want to learn it, then you should start doing UNIX command line tutorials and learn basics for UNIX/Linux programming. There is no way we are going to teach you this in the forum. The repo I quoted above contains the compiled file (no idea if it works). Dragging it to /usr/local/bin is the correct decision. /usr/bin is reserved for system utilities and starting from 10.11, is write-protected via SIP.

Anyway, once it is in /usr/local/bin, you should be able to use the utility normally, by invoking its name in the terminal.
 

leman

macrumors G3
Oct 14, 2008
9,963
4,550
Using the Terminal for this it would be much easier to deal with - type
Code:
sudo cp afsctool /usr/bin
type your password(which is invisible when typing btw.)

Have you turned off The System Integrity Protection on El Capitan? Only this allows for the file to be copied to that directory.
Please don't do what this person says :D There is absolutely no reason for afsctool to be in a system directory and certainly no reason for you to disable SIP to this end.
 
  • Like
Reactions: mjturner

MrNomNoms

macrumors 65816
Jan 25, 2011
1,132
249
Wellington, New Zealand
Thanks. Do you mean keep it in my user folder or in root level of hard drive? And where this ./ goes? I'm only user in this computer.
Keep it in your user folder - just create a directory and throw it in there. ./afsctool is used to execute the file that is in that current directory (the directory that you're currently working in that the file is located in) or otherwise it won't be able to run since it isn't located in the $PATH configuration. Also, ensure that it is excitable to you as an end user as well - give it chmod 777 and that will make life easier for all concerned.