I. Finding problems
The phenomenon is more common, the crash is frequent, and open chrome has been the core of the IDE must be frozen. Initially thought it was a 10.9 system problem, and later came to think of the problem of memory or hard disk.
An artifact on the Web: TechTool
If you do not trust your hard drive can also go to test the results of the test:
Smart check failed
Hard drive has an unrecoverable hardware problem, please replace the hard drive
Well, it's a direct sentence of death.
Quickly go online to buy a hard drive, and a hard drive box.
And from the friend side took a special screwdriver box to remove the Mac.
To be on the safe side, borrowed a mobile hard drive from a friend and backed up all the data.
Two. Production system
Say because buy Mac when did not give system disk such things, so go online Amoy, more fortunate already someone do: Mac OS X 10.9 Mavericks u disk complex, export it as a U disk can be.
The method of exporting to U disk is also simple:
Get a 8G USB drive.
Execute the system's own disk tool and restore the downloaded DMG to a USB flash drive
Have a cup of coffee, wait half an hour, finish
Three. Replace the hard drive, install the system
Remove the hard drive or relatively simple, in the case of power off shutdown, a few screws unloaded, and then replaced.
Then restart the computer and press ALT to know that the boot selection interface appears. Do you see your new disk when you enter it? Don't worry, first partition the new disk with the disk tool, I am divided into a section, the format for the OS Extend
Then go back to the selection interface, install the system can
Four. Data recovery
Recover data Here is really a cup, because the previous data is backed up with another mobile hard disk, the results of the copy back, with git status a look, found that all are modified.
Careful contrast, found that only the format of the line break changed, the key whether it is a text file or binary files, all of the changes have occurred!
Fortunately, before preparing the hard disk box, the original hard drive around the 4 screws removed, put into the hard disk box, copy data, all normal ~
Five. Initialization environment
My current development environment is still relatively simple, one by one.
Note that no special instructions are installed with the default user, and do not use root.
First of all, must first put the Xcode, otherwise nothing can do, this direct to the App Store download can.
Note that although the XCODE5 version, as long as the XCODE,GCC, make and other commands will automatically appear on the command line, but still want to perform xcode-select–install, so that some header files can be copy to the/usr/include directory, can also solve the problem of Macvim installation failure with brew
Then install the Iterm2, go to the official website to download can
After the installation of homebrew, is also in accordance with the official website of the instructions installed. After the installation, call brew doctor to see what the error message is. and homebrew suggested that/usr/local/bin be placed at the front of the path.
The next step is to install Python:brew install Python
After that is macvim:brew install Macvim, note that if you have not previously installed the Xcode command-line tool, you will report a compilation error
MySQL installation is more complex, I directly put the previous tutorial on the following
Download the 64-bit DMG installation package to http://dev.mysql.com/downloads/and remember to select version 5.5. Because Mysql-python only supports the 5.5 version.
Download and load DMG,
Click mysql-5.5.16-osx10.6-x86_64.pkg: This is MySQL's main package;
Click on the MYSQL_STARTUPITEM.PKG:MYSQL start item;
Click Mysql.prefpane: After installation, the system will appear in the preferences, MySQL preferences, which is mainly used to start the MySQL service.
To be able to use MySQL at the command line
Ln-s/usr/local/mysql/bin/mysql/usr/local/bin/
No error in order to install Mysql-python
Ln-s/usr/local/mysql/bin/mysql_config/usr/local/bin/
Add in ~/.profile:
Export Dyld_library_path=/usr/local/mysql/lib: $DYLD _library_path
Uninstall method:
Stop all MySQL-related processes first.
sudo rm/usr/local/mysql
sudo rm-rf/usr/local/mysql*
sudo rm-rf/library/startupitems/mysqlcom
sudo rm-rf/library/preferencepanes/my*
Vim/etc/hostconfig and removed the line mysqlcom=-yes-
RM-RF ~/library/preferencepanes/my*
sudo rm-rf/library/receipts/mysql*
sudo rm-rf/library/receipts/mysql*
sudo rm-rf/var/db/receipts/com.mysql.*
Then put Pycharm, Appcode, IntelliJ idea on
This is almost the ending, simple record here, hope to be useful to everyone