On 08/08/2016 03:25 PM, Gordon Messmer wrote:> # yum install centos-release-scl > # yum list devtoolset-4-eclipse\*Of course, the next question is: Is it possible to install Eclipse in a way that doesn't require users to run "scl enable devtoolset-4 bash" in a terminal? Or can selected software collections be enabled by default in new sessions?
On Tue, 9 Aug 2016 01:30, Gordon Messmer wrote:> On 08/08/2016 03:25 PM, Gordon Messmer wrote: >> # yum install centos-release-scl >> # yum list devtoolset-4-eclipse\* > > Of course, the next question is: Is it possible to install Eclipse in a way > that doesn't require users to run "scl enable devtoolset-4 bash" in a > terminal? Or can selected software collections be enabled by default in new > sessions? >Hint: put a scriplet into /etc/profile.d/ and it will be executed on login. See already existing files for examples. - Yamaban. --
On Mon, 8 Aug 2016 16:30:33 -0700 Gordon Messmer wrote:> Of course, the next question is: Is it possible to install Eclipse in a > way that doesn't require users to run "scl enable devtoolset-4 bash" in > a terminal?Option 1: Write a little bash script that contains that command. Name it eclipse and put it into ~/bin. Option 2: Write a little bash script that contains that command. Create a custom launcher with Mate, Kde, Gnome or what's your pleasure. -- MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com
On Aug 8, 2016, at 20:03, Frank Cox <theatre at melvilletheatre.com> wrote:> Option 2: Write a little bash script that contains that command. Create a custom launcher with Mate, Kde, Gnome or what's your pleasure.I believe the scl package that contains eclipse already includes a .desktop file that launches eclipse. -- Jonathan Billings <billings at negate.org>
On 08/08/2016 04:57 PM, Yamaban wrote:> Hint: > put a scriplet into /etc/profile.d/ and it will be executed on login.If you haven't used "scl," and I hadn't before yesterday, it creates a new session with environment variables set up to access applications installed in a semi-isolated path. It can't be called from the bash profile as far as I can tell, and its execution isn't documented in its own man page. I could check its code to duplicate its functionality, but I was hoping for a simple answer from someone who uses it.