HFS+ Compression in 10.11

Discussion in 'OS X El Capitan (10.11)' started by nelly22, Oct 30, 2015.

  1. nelly22 macrumors 6502

    Joined:
    Sep 29, 2009
    #1
  2. leman macrumors 604

    Joined:
    Oct 14, 2008
    #2
    You can install it using homebrew or compile to yourself from the repository: https://github.com/diimdeep/afsctool

    BTW, thanks for teaching me yet another trick about OS X, I didn't know it could do this :)
     
  3. nelly22 thread starter macrumors 6502

    Joined:
    Sep 29, 2009
    #3
    Thanks. I would like to try compiling myself. How i can do this?
     
  4. leman macrumors 604

    Joined:
    Oct 14, 2008
    #4
    If you are asking this question then really, just use homebrew.
     
  5. nelly22 thread starter macrumors 6502

    Joined:
    Sep 29, 2009
    #5
    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
     
  6. MrNomNoms macrumors 65816

    MrNomNoms

    Joined:
    Jan 25, 2011
    Location:
    Wellington, New Zealand
    #6
    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).
     
  7. nelly22 thread starter macrumors 6502

    Joined:
    Sep 29, 2009
    #7
    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.
     
  8. allan.nyholm macrumors 6502a

    allan.nyholm

    Joined:
    Nov 22, 2007
    Location:
    Aalborg, Denmark
    #8
    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.
     
  9. leman macrumors 604

    Joined:
    Oct 14, 2008
    #9
    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.
     
  10. leman macrumors 604

    Joined:
    Oct 14, 2008
    #10
    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.
     
  11. MrNomNoms macrumors 65816

    MrNomNoms

    Joined:
    Jan 25, 2011
    Location:
    Wellington, New Zealand
    #11
    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.
     
  12. MrGimper macrumors 601

    MrGimper

    Joined:
    Sep 22, 2012
    Location:
    Andover, UK
    #12

Share This Page