I'm new to Ubuntu (2 weeks trial & error) but quickly learning. I'm running Windows Subsystem for Linux (WSL) on Windows 10 Home edition with 18.04.3 LTS (Bionic Beaver). GUI working fine via LXDE and UBUNTU-DESKTOP up and running. All software and packages up to date as per standard repositories via synaptic.
I have installed CMAKE-GUI latest version and successfully compiled and installed with that program and the console an app "eccodes" latest version. Now I want to adjust my environment variables so I can run the latest version of this app, instead of the older version installed.
I have gone over related threads here and there and here and checked-out the official manual here; https://help.ubuntu.com/community/EnvironmentVariables
So I added a .sh file in /etc/profile.d named "extra_parameters_Herman.sh"
And put in the line
export ECCODES_PATH=/tmp/build_eccodes.2.14.1
When I run printenv after logging off/on I get (snippet)
.. ECCODES_PATH=/tmp/build_eccodes.2.14.1 ..
But my Ubuntu doesn't buy it. I'm still at eccodes version 2.6 instead of 2.14. A screenshot of the target directory is included.
I have tried for a day now and got stuck. So any help is appreciated!
/etc/profile.d
is for all shells, not just Bash, so you should not useexport variable=value
syntax. Instead, put justvariable=value
and thenexport variable
on a separate line. – tripleee Nov 21 '19 at 12:03printenv
does what you expected. – tripleee Nov 21 '19 at 12:09export var=value
not available? – tripleee Nov 21 '19 at 12:17apt
, anddpkg
) don't know about software that you install from source (unless you use something likecheckinstall
to create a local .deb package and install that) – steeldriver Nov 21 '19 at 12:41