11월, 2014의 게시물 표시

mysql yosemite

이미지
MySQL MySQL is again a missing component in OS X 10.10 and needs to be  dowloaded from the MySQL site  use the  Mac OS X ver. 10.9 (x86, 64-bit), DMG Archive  version (works on 10.10). The latest version available is MySQL 5.6.21. Their is an issue with this version and Yosemite in that it won’t start on reboot – it will need to be started via command line explained below. If you are upgrading from a previous OSX and have an older MySQL version you do not have to update it, it will work just with the same start up issue. One thing with MySQL upgrades always take a data dump of your database in case things go south and before you upgrade to Yosemite make sure your MySQL Server is not  running. When downloading you don’t have to sign up, look for  » No thanks, just take me to the downloads!   – go straight to the download mirrors and download the software from a mirror which is closest to you. Once downloaded open the .dmg and run the installer. You will get a fail

Homebrew: ruby bad interpreter: No such file or directory

After installing 10.10 DP1 Yosemite (yeah I couldn’t resist the temptation) homebrew gave me the following error: /usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory This error can easily be fixed in the following steps: 1) Open terminal 2) nano /usr/local/Library/brew.rb 3) In the first line change “1.8” to “Current”, so it should look like this: #!/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby -W0

HowTo: Set an Environment Variable in Mac OS X - Terminal Only

(from : http://www.dowdandassociates.com/blog/content/howto-set-an-environment-variable-in-mac-os-x-terminal-only/) The process of setting environment variables in the Terminal will be familiar to those with experience with Linux or UNIX. It involves editing files in /etc for global environment variables, and in your home directory for user specific environment variables. Login shell vs non-login shell A login shell is the shell that is started when you open a new terminal window. A non-login shell is when you start a sub-shell in the window, for example, typing bash when you have the bash shell running already. Global PATH only If you just want to edit the global PATH variable, you can put a file in /etc/paths.d with a the path you want to add. For example, we will create a file /etc/paths.d/ec2-api-tools and put the following in: /etc/paths.d/ec2-api-tools 1 /opt/aws/ec2-api-tools/bin Open a new Terminal and $PATH will reflect the chan