Архивы: Март 2016

Warning the user/local/mysql/data directory is not owned by the mysql user

Получил на маке данную ошибку говорящую о том, что мускуль не владелец директории mysql, нам надо выставить права:

$ sudo chown -RL root:mysql /usr/local/mysql
$ sudo chown -RL root:mysql /usr/local/mysql
$ sudo /usr/local/mysql/support-files/mysql.server start

Ошибка Ruby (kernel_require.rb:55:in `require’) при использовании brew на mac os

Получил вот такую ошибку:

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- mach (LoadError)
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /usr/local/Library/Homebrew/extend/pathname.rb:2:in `<top (required)>'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /usr/local/Library/Homebrew/global.rb:3:in `<top (required)>'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /usr/local/Library/brew.rb:16:in `<main>'

Лечим в консоли:

$ sudo chown -R $(whoami):admin /usr/local
$ cd /usr/local  
$ git reset --hard  
$ git clean -df
$ brew update