Unix (sh System) < 2. Environmental Variables < Stage C < Installation < Viivi's Cell < Entrance


Viivi Setting Environmental Variables (Unix-like sh System)

Here the Viivi system directory is assumed to be ${HOME}/Viivi/.

C-2-a Edit the environment Configuration File

Append the four-lines

	VIIVI_HOME=${HOME}/Viivi/
	export VIIVI_HOME
	PATH=${PATH}:${VIIVI_HOME}
	export PATH
to the end of the environment configuration file
	${HOME}/.profile			for sh
	${HOME}/.kshrc				for ksh
	${HOME}/.bashrc				for bash
At the first line, don't forget to append '/' to the end of the line.

C-2-b Load the Environment Configuration File

When you finished editing the environment configuration file, load the file as follows, in order to reflect the new settings.
Here, $ is the prompt of sh / ksh / bash.

	$ . ${HOME}/.profile⮠		for sh
	$ . ${HOME}/.kshrc⮠			for ksh
	$ . ${HOME}/.bashrc⮠			for bash

C-2-c Confirm the Environmental Settings

Please confirm the strings set to the environmental variables VIIVI_HOME and PATH, using the command echo.

	$ echo ${VIIVI_HOME}⮠
	$ echo ${PATH}⮠
If you can see the Viivi system directory ${HOME}/Viivi/ in the string directed by each of the environmental variables, the environmental settings are done.



Unix (sh System) < 2. Environmental Variables < Stage C < Installation < Viivi's Cell < Entrance


Contact

Exhibited on 2022/03/02
Copyright(C) 2003-2022 ilma <ilma@viivi.io> All rights reserved.