-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanyenv_install.sh
More file actions
40 lines (26 loc) · 890 Bytes
/
anyenv_install.sh
File metadata and controls
40 lines (26 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
git clone https://github.com/riywo/anyenv ~/.anyenv
以下を.bash_profileに追記
# setup anyenv
if [ -d ${HOME}/.anyenv ] ; then
export PATH="$HOME/.anyenv/bin:$PATH"
eval "$(anyenv init -)"
for D in `ls $HOME/.anyenv/envs`
do
export PATH="$HOME/.anyenv/envs/$D/shims:$PATH"
done
fi
exec $SHELL -l
anyenv install rbenv
anyenv install pyenv
anyenv install ndenv
anyenv install phpenv
# pyenv+virtualenv
$ git clone https://github.com/yyuu/pyenv-virtualenv.git ~/.anyenv/envs/pyenv/plugins/pyenv-virtualenv
$ exec $SHELL -l
$ pyenv virtualenv --version
pyenv-virtualenv 1.0.0 (virtualenv unknown)
$ pyenv install 2.7.12
# phpenv
brew link --force openssl
brew link --force libxml2
PHP_BUILD_CONFIGURE_OPTS="--with-openssl=$(brew --prefix openssl) --with-libxml-dir=$(brew --prefix libxml2)" PHP_BUILD_EXTRA_MAKE_ARGUMENTS=-j4 phpenv install 7.0.9