recentpopularlog in

kme : environmentvariables   24

linux - crontab PATH and USER - Stack Overflow
According to the man 5 crontab, "The value string is not parsed for environmental substitutions or replacement of variables".
crontab  environmentvariables  configfile  solution 
november 2019 by kme
Vim documentation: eval | http://vimdoc.sourceforge.net/
Expand the value of an environment variable into the current buffer:

<code>Ctrl-R, =, expand($LANG)</code>
vim  syntax  function  registers  reference  environmentvariables  solution 
february 2019 by kme
python - Django + mod_wsgi. Set OS environment variable from Apache's SetEnv - Stack Overflow
I solved this problem by changing wsgi.py to this:

from django.core.handlers.wsgi import WSGIHandler
import django
import os

class WSGIEnvironment(WSGIHandler):

def __call__(self, environ, start_response):

os.environ['USKOVTASK_PROD'] = environ['USKOVTASK_PROD']
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "uskovtask.settings")
django.setup()
return super(WSGIEnvironment, self).__call__(environ, start_response)

application = WSGIEnvironment()
apache  django  webdevel  webmaster  mod_wsgi  environmentvariables  envvars  maybesolution 
february 2017 by kme
Environment variables for java installation - Stack Overflow
Set the following user environment variables (== environment variables of type user variables)

JAVA_HOME : C:\Program Files\Java\jdk1.8.0_25
JDK_HOME : %JAVA_HOME%
JRE_HOME : %JAVA_HOME%\jre
CLASSPATH : .;%JAVA_HOME%\lib;%JAVA_HOME%\jre\lib
PATH : your-unique-entries;%JAVA_HOME%\bin (make sure that the longish your-unique-entries does not contain any other references to another Java installation folder.

Notice that all these environment variables are derived from the "root" environment variable JAVA_HOME. This makes it easy to update your environment variables when updating the JDK. Just point JAVA_HOME to the fresh installation.
java  wtf  environmentvariables  windows  devel  maybesolution  butwhy 
march 2016 by kme
PHP: $_ENV - Manual
If $_ENV is empty because variables_order does not include it, it will be filled with values fetched by getenv().

For example, when calling getenv("REMOTE_ADDR"), $_ENV['REMOTE_ADDR'] will be defined as well (if such an environment variable exists).
php  annoyance  solution  environmentvariables  webdevel  webmaster 
july 2015 by kme
path - Which setup files should be used for setting up environment variables with bash? - Super User
Note that sometimes you'll see recommendations to either set environment variables in ~/.bashrc, or start a login shell in each terminal in a GUI environment. Both are bad ideas; one of the reasons is the problem you've experienced, namely that your environment variables were only available in programs started via a terminal, and not in programs started directly with an icon or menu or keyboard shortcut.
bash  shell  dotfiles  rcfiles  initfile  path  environmentvariables  wrongforsolong  solution 
may 2015 by kme
gcc - CFLAGS, CCFLAGS, CXXFLAGS - what exactly do these variables control? - Stack Overflow
Epiphany: there is nothing special about these variables and GCC/G++ does not explicitly look for the definitions of these variables in the environment (they don't seem to be referred to in the info page for GCC anywhere). They're merely a Makefile convention, and the variables need to be included on the gcc/g++ command line within the Makefile. Hence the discrepancy between "CPPFLAGS" seen in some places and "CPPFLAGS" seen in others.

However, having them defined in the environment is *still* useful, because then you can just refer to them within Makefiles, with the expectation that the definition come from the users' environment.

It took me over a decade to come to this realization, finally, in March 2015.
epiphany  devel  gcc  compiler  cflags  environmentvariables 
march 2015 by kme
[CentOS] apache env vars - best practices
I put "export FOO=bar" in /etc/sysconfig/httpd and then PassEnv FOO in httpd.conf. Then scripts (PHP in my case) run by apache inherit FOO in the environment. I can't speak for python though. Don't know why it wouldn't work with what you call complex vars.


This didn't seem to work on CentOS 6 (mod_php). Neither did LoadFile, for that matter.
apache  environmentvariables  webmaster  configfile  maybesolution 
september 2014 by kme
perl - CPAN modules installed locally by cpan/cpanm cannot be used without manual intervention - Stack Overflow
If you're using bash, you could install local::lib add something like this to your .bashrc file

# adds $HOME/perl5/bin to PATH
[ $SHLVL -eq 1 ] && eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)"

That should solve your problem. The issue is the way your local system is configured, so tweak that rather than bringing Dist::Zilla into the mix where it's not required.
perl  homefolderinstallation  shell  environmentvariables  librarypath  solution 
september 2014 by kme
Passing environment variables to Ruby from Phusion Passenger – Phusion Corporate BlogPhusion Corporate Blog
You can set these environment variables by writing a wrapper script. Recall that Phusion Passenger has a “PassengerRuby” configuration option which typically looks like this:

PassengerRuby /usr/bin/ruby

You can point this to a wrapper script:

PassengerRuby /usr/local/my_ruby_wrapper_script
rails  environment  deployment  passenger  environmentvariables  solution 
july 2014 by kme

Copy this bookmark:





to read