I´m building a new development machine and I need to setup Eclipse for C++ and PHP projects.
I´ve installed Ubuntu 15.10 and I started installing Eclipse Mars (4.5).
I choosed to use the new Eclipse installer, and did the installation of both packages (C++ and PHP) to the same location: /opt/eclipse
. I want eclipse to be available to all users on that development machine.
Then I´ve build a symlink to call eclipse from anywhere using:
sudo ln -s /opt/eclipse/eclipse /usr/bin/eclipse
From my user console, when I type eclipse
I´m getting the following error:
cox@dev1:~/projects$ eclipse
/root/.p2/poll/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.300.v20150602-1417: cannot open shared object file: Permission denied
Gtk-message: GtkDialog mapped without a transient parent. This is discouraged.
cox@dev1:~/projects$ sudo eclipse
Gtk-message: GtkDialog mapped without a transient parent. This is discouraged.
Clearly something is very wrong with my installation, so here are my questions:
a) Does C++ and PHP can be installed in the same folder ?
b) Is the /opt the correct place to install it - considering every machine user shall use eclipse ?
c) What would be the correct steps to install both packages of Eclipse ?
d) What is wrong with my installation ?
e) Is there an easy apt-get install
command to install Eclipse Mars 4.5 on Ubuntu 15.10 ?
f) How can I fix my installation and let Eclipse run ?
Thanks for helping.