Installing charts on linux

I am new to using Linux. I installed grails by setting the env variable GRAILS_HOME and adding ot to the PATH variable. I also exported both when I typed the grails command .. This worked fine. When I closed the terminal session and opened another new session, all the env variables that I created all disappeared.

I was wondering how to make them available for all sessions.

Any help is appreciated

thanks

+4
source share
7 answers

Modify the .bashrc file of the user running Grails.

Add the same lines as your commands:

GRAILS_HOME=/home/of/grails export GRAILS_HOME PATH=$PATH:$GRAILS_HOME/bin 
+15
source

you need to add $GRAILS_HOME/bin to PATH (and not $GRAILS_HOME )

Update

The best way to install Grails on Linux / Mac is to use GVM .

GVM is a tool for managing concurrent versions of several software development kits on most Unix-based systems. It provides a convenient command line interface for installing, switching, uninstalling, and listing candidates.

In addition to Grails, you can also use GVM to manage your installation.

  • Groovy
  • Griffon
  • Gradle
  • vert.x
+4
source

If you have Ubuntu installed (or equal). You can add a repository to it. He must do everything for you:

 sudo add-apt-repository ppa:groovy-dev/grails sudo apt-get update sudo apt-get install grails 
+3
source

you need to install them in the ~ / .bashrc file, and then enter source ~/.bashrc in your terminal so you don't have to close and reopen it.

0
source

In /etc/profile.d/ create a script name grails.sh :

 export GRAILS_HOME=/opt/grails export PATH=$GRAILS_HOME/bin:$PATH 

Change /opt/grails to where you unzipped grails.

This will make it accessible to all users.

0
source

If you are on ubuntu, define the GRAILS_HOME variable with the installation path in / etc / environment and edit the system path variable as shown in the second line

GRAILS_HOME = / opt / Grails PATH = "/ USR / local / SBIN: / USR / local / bin: / USR / SBIN: / USR / bin: / SBIN: / bin: / USR / games: / OPT / grails2 / bin : "

0
source

Groovy Installing Grails:

Install JAVA on Linux system before starting

Check java version using command

 $> java -version 

Install grails on Linux using Installing-a-grails-development-environment-on-linux

Before installing grails, you will need to install GVM (Grails version manager) from Installing GVM Tool

After installing GVM from the link above, we can run the sample Grails application. Check it out by the team

 $> grails -version 

Checking the environment variable is set or not for Java, as well as for Grails with the command

 $> printenv 

Create a demo application and start the server for Grails using:

 $> grails create-app demo 

Go to the way

 $> cd demo/ 

Start the server

 $> grails run-app 

Start the server on a specific port 9090

 $> grails run-app -Dserver.port=9090 

Tools and work environment configured for Groovy Grails:

Install the GGTS (Groovy Grails Tool Suit) using the GGTS with the Eclipse IDE and tool

Select the Eclipse package in linux from the link above:

YouTube Video Tutorial:

All Grails video documentation videos for installing and running the sample application are here YouTube Channel

0
source

Source: https://habr.com/ru/post/1392162/


All Articles