Mac Upgrade Yosmite (Yosemite) after a problem

Source: Internet
Author: User

This section is intended for server-side developers, and if you are a regular user, a project manager, or a purely IOS developer, you can look directly at the next section.

After the system upgrade is complete, if you are a developer, you will find: Homebrew can not be used because the version of Ruby has become 2.0, vim7.3-66 also can not be used because the Perl version has changed, the original ICloud in the third-party program data disappeared, Java Was killed again, Docker also can not get up, CocoaPods also strike, even video player MPlayer also began to collapse.

"Mother what should I do", you sent a piercing cry, wipe the tears ready to revert to the old version of Mavericks ... Stop! Cup of tea to calm down the mood of despair, and then continue to read Mactalk.

1, first deal with Homebrew problem

Execute the following command:

CD ' Brew--prefix ' # #找到 Homebrew

MV Cellar/tmp # #备份用过 Homebrew installed packages and libraries

Brew Prune # #删除无效 Link

Rm-r ' git ls-files ' # #删除 git info

Rm-r library/homebrew library/aliases Library/formula library/contributions

Rm-rf. Git

RM-RF ~/library/caches/homebrew # #删除缓存

Then reinstall Homebrew://Require VPN

Ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)"

Brew Update

Copy the Backup program back and update all the programs:

Mv/tmp/cellar.

Brew Update

Brew Upgrade

After this combination, most of the programs and libraries you've installed can be revived and re-entered into your programming sequence. The universal video player MPlayer can also play your favorite videos.

2. Vim and Youcompleteme

I've written a lot of vim-related articles before, which shows that I'm a heavy user of vim. The Yosemite upgrade led to a problem with both Vim and Youcompleteme plugins. Since using the Youcompleteme plugin requires a version of Vim at 7.3.584, we need to reinstall Macvim:

Brew Install Macvim # #最新版本是7.4-73_1

Then reset the aliases in the. ZSHRC:

Alias vim= '/usr/local/cellar/macvim/7.4-73_1/macvim.app/contents/macos/vim '

Update plugin Youcompleteme:

CD ~/.vim/bundle/youcompleteme

Git pull

git submodule update--init--recursive

./install.sh--clang-completer

When these commands are executed, you'll find that Vim is a little bit more usable than the last version you used.

3. Java was killed again

Java is gone, all Java-related development tools and middleware are useless, but don't worry, this problem is the easiest to solve.

Execute at the command line:

Java-version

The system will pop up the following window:

Click on "More info" or download it directly to the following URL: Http://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US

The downloaded media is "javaforosx2014-001.dmg", open and click "javaforosx.pkg" to install Java SDK, version is "1.6.0_65". If you want to install an updated version, you can go to Oracle.

With this step, your Eclipse, idea, Pycharm, and other Ides and Java middleware will work.

4. Docker

If you're using Docker on your MAC, you'll need to reinstall Boot2docker:

[Https://github.com/boot2docker/osx-installer/releases]

Reinstall VirtualBox:

[Https://www.virtualbox.org/wiki/Downloads]

If you have a good image before, it is best to export the backup before Yosemite upgrade:

Backup Docker Image: Docker save F81BCD8C1ACD > Gap411.tar

Note: F81BCD8C1ACD is the ID of the mirror

Import in new environment: Docker Load < Gap411.tar

renaming warehouses and Tags: docker tag f81bcd8c1acd ubuntu:gap411

This part does not elaborate, later open a series of single-speaking Docker, I personally very optimistic about the technology docker.

5. Parallels Desktop for Mac

This virtual machine software I have recommended, the use of the effect is good. The downside is that each upgrade price is about the same as the direct purchase price. I used Parallels Desktop 8, which is suitable for Mavericks, but does not support Yosemite, so I spent 300 of the ocean buying parallels Desktop 10, easy to use, is the money is gone. If you choose Crossing, decide for yourself.

6. ICloud Drive

The new version of OS X includes the ICloud Drive feature. icloud Drive is similar to Dropbox and Google take, but it's Apple's own, so it's built directly into the Finder window, and it's not exactly the same as other folders, so here's what we're going to say about enabling Issues with ICloud Drive.

When the system is installed and configured, Apple will ask you, do you really want to enable ICloud drive? You're serious, and then the system will migrate your original icloud files and data to icloud Drive. If you open a third-party app that used ICloud before, it's a surprise to discover that all the data is missing, such as day one, IA Writer, Ulysses, and so on. Is this when you want to kill and hold back? No, data migration takes a little time, go for a stroll, and then open the apps, and you'll find that the data is back intact.

Well, as a developer, after the system upgrade should pay attention to things, say so much. Below we go to the most important UI and feature article, the following is more suitable for all MAC users to read.

Mac Upgrade Yosmite (Yosemite) after a problem

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.