From 1524e5b48a9fdf13432c90c5615721bcfe200b6c Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Sat, 19 Jan 2013 17:14:36 +0900 Subject: [PATCH 1/3] write about LD_LIBRARY_PATH --- profile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/profile b/profile index cbb9674..fb397a4 100755 --- a/profile +++ b/profile @@ -31,11 +31,14 @@ __add_to_path(){ # export PATH="${PATH}:${HOME}/bin" __add_to_path ${HOME}/.local/bin /c/mingw/bin /c/mingw/msys/1.0/bin -# it is not so good -# http://archive.linux.or.jp/JF/JFdocs/Program-Library-HOWTO/shared-libraries.html +# # it is not so good +# # http://archive.linux.or.jp/JF/JFdocs/Program-Library-HOWTO/shared-libraries.html +# # http://superuser.com/questions/324613/installing-a-library-locally-in-home-directory-but-program-doesnt-recognize-it +# without this ENV i cannot run tmux. another way is to use --disable-shared +# when building tmux export LD_LIBRARY_PATH="$HOME/.local/lib:$LD_LIBRARY_PATH" -# or LDFLAGS -export CPPFLAGS="$CFLAGS -I$HOME/.local/include" +# this should be used when ./configure +#export CFLAGS="$CFLAGS -I$HOME/.local/include" type setterm >/dev/null 2>&1 && setterm -blank 30 -powersave on # -powerdown 10 # in my environment powerdown does not work From d8d2d9739fc9bf95456848cf73f32dcc905e5f35 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Wed, 23 Jan 2013 13:32:43 +0900 Subject: [PATCH 2/3] local dir got high proprity in PATH --- profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profile b/profile index fb397a4..6be962b 100755 --- a/profile +++ b/profile @@ -25,7 +25,7 @@ __add_to_path(){ for p in "$@" do echo $PATH | grep -E "^$p:|:$p:|:$p$" >/dev/null 2>&1 || \ - PATH="${PATH}:$p" + PATH="$p:${PATH}" done } # export PATH="${PATH}:${HOME}/bin" From 51c2446ffbff34faebd1453302a7ce194b13a047 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Wed, 23 Jan 2013 20:59:35 +0900 Subject: [PATCH 3/3] update path for gem --- profile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/profile b/profile index fb397a4..a136c25 100755 --- a/profile +++ b/profile @@ -21,11 +21,15 @@ test -f "${HOME}/.dotfiles/rc.py" && \ export PYTHONSTARTUP="${HOME}/.dotfiles/rc.py" #export PYTHONPATH="~/.local/share/lib/python3.2/site-packages" +export GEM_HOME="$HOME/.local/lib/gems" +export PATH="$PATH:$HOME/.local/lib/gems/bin" +export RUBYLIB="$RUBYLIB:$HOME/.local/lib/gems/lib" + __add_to_path(){ for p in "$@" do echo $PATH | grep -E "^$p:|:$p:|:$p$" >/dev/null 2>&1 || \ - PATH="${PATH}:$p" + PATH="$p:${PATH}" done } # export PATH="${PATH}:${HOME}/bin"