I have problem with installation. Please help


(Crxch) #1

I want to install homebrew by this command: /usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”

Pressing “Return”, enter root pass, then I see this message:
“Failed during: mkdir: /usr/local/lib: Not a directory
Failed during: /usr/bin/sudo /bin/mkdir -p /usr/local/lib”

Please, help! I`m new in OSx…


(Sean Molenaar) #2

what happens when you run ls -al /usr ?


(Crxch) #3

drwxr-xr-x@ 9 root wheel 288 Dec 1 2017 .
drwxr-xr-x@ 30 root wheel 960 Sep 3 10:39 …
drwxr-xr-x 977 root wheel 31264 Sep 3 10:28 bin
drwxr-xr-x 294 root wheel 9408 Sep 3 10:28 lib
drwxr-xr-x 239 root wheel 7648 Sep 3 10:28 libexec
drwxr-xr-x 15 root wheel 480 Sep 4 11:43 local
drwxr-xr-x 248 root wheel 7936 Sep 3 10:28 sbin
drwxr-xr-x 46 root wheel 1472 Sep 3 10:28 share
drwxr-xr-x 5 root wheel 160 Dec 1 2017 standalone


(Sean Molenaar) #4

And what about ls -al /usr/local?


(Crxch) #5

drwxr-xr-x 15 root wheel 480 Sep 4 11:43 .
drwxr-xr-x@ 9 root wheel 288 Dec 1 2017 …
-rw-r–r-- 1 root wheel 0 Sep 3 10:29 .com.apple.installer.keep
drwxr-xr-x 2 root wheel 64 Sep 4 11:43 Cellar
drwxrwxr-x 2 Sergey admin 64 Sep 4 11:43 Frameworks
drwxr-xr-x 2 root wheel 64 Sep 4 11:43 Homebrew
drwxrwxr-x 20 Sergey admin 640 May 29 10:50 bin
drwxrwxr-x 2 Sergey admin 64 Sep 4 11:43 etc
drwxrwxr-x 2 Sergey admin 64 Sep 4 11:43 include
-rwxrwxr-- 1 Sergey admin 125124 Jun 27 2017 lib
drwxr-xr-x 2 root wheel 64 Sep 4 11:43 opt
drwxr-xr-x 3 root wheel 96 Jan 26 2018 remotedesktop
drwxrwxr-x 2 Sergey admin 64 Sep 4 11:43 sbin
drwxrwxr-x 4 Sergey admin 128 Sep 4 11:43 share
drwxrwxr-x 2 Sergey admin 64 Sep 4 11:43 var


(Sean Molenaar) #6

Some essential directories seem to be owned by root. You can run sudo chown -R $(whoami):admin /usr/local to fix that.