Dec 20, 2013

Upgrade (and keep synced with system update) git version on ubuntu 12.04

My git version was 1.7.9.5, while the latest version is 1.8.5.2, wanted to upgrade it to use the --diff-dir option available from version 1.7.11.

Tried the way of download source code and build locally (https://www.digitalocean.com/community/articles/how-to-install-git-on-ubuntu-12-04), not working for me.

Finally, found this page:

and steps are:

1. add git ppa
$sudo add-apt-repository ppa:git-core/ppa
2. update
$sudo apt-get update
3. upgrade git
$sudo apt-get install git

Check version with command
$git --version
git version 1.8.5.2

Yeah~

Dec 6, 2013

[Resolved] Eclipse 4.3.1 has no PHP perspective after PDT installed

Last night I installed Eclipse 4.3.1 on my iMac under ubuntu 13.10, all good till I found that no matter how I tried, Eclipse wouldn't show out the PHP perspective. The PHP perspective even did not exist in Window->Open Perspective->Other... dialogue.

This made me a bit crazy.

However, finally, here is the dramatic end of the story.

After struggling with uninstall/reinstall several versions of several plugins, and searched online, no luck though. But one thread made me thought about the permission of the path I installed Eclipse, /opt/eclipse.

Then I entered in plugins folder in that path, no PDT plugin found there, and no CDT plugin I installed for testing either. Then this came to a 99 percent fact that it was a permission issue.

Think I could install PDT again under sudo executing eclipse, but I chose another way, installed another eclipse 4.3.1 in user folder this time, ~/ide/eclipse, where I have full privilege.

And the ending was happy.

Although it was my stupid, and this story maybe not worth telling, but considering I almost gave it up, and there was not any really helpful clue online, so I tell it out here.

Cheers and good night~~

Dec 5, 2013

Install PDT 3.1.1 on Eclipse 3.7 (Indigo)

At first, when I tried to install PDT 3.1.1 on Eclipse 3.7 (Indigo), there was an error that a dependency software missing: DLTK 4.0.

It recalled me about the similar issue when I tried to install ShellED, a bash editor plugin of Eclipse, last month.


While I couldn't update DLTK from Indigo repository:


  http://download.eclipse.org/releases/indigo/

Or

  http://download.eclipse.org/technology/dltk/updates/

But there's a link for the nightly build on DLTK's page http://www.eclipse.org/dltk/install.php

I tried this link in Eclipse install new software dialogue window, this time it returned all DLTK 4.0 packages, wonderful!

After DLTK 4.0 installed, just install PDT 3.1.1 via this source in the installation dialogue:

  http://download.eclipse.org/tools/pdt/updates/release

and finally, as a frosting on the cake, I installed ShellED via this soource:

  http://sourceforge.net/projects/shelled/files/shelled/update/

Happy happy~~