リモートssh

[hayato@falcon21 ~]$ su -
パスワード:
最終ログイン: 2018/06/02 (土) 08:48:12 JST日時 pts/0
-bash: eval: 行 24: 予期しないトークン `(' 周辺に構文エラーがあります
-bash: eval: 行 24: `export PATH="/root/.phpenv/shims:${PATH}" export RBENV_SHELL=bash sou rce '/root/.phpenv/libexec/../completions/rbenv.bash' command phpenv rehash 2>/dev/null ph penv() { local command command="${1:-}" if [ "$#" -gt 0 ]; then shift fi case "$command" i n rehash|shell) eval "$(phpenv "sh-$command" "$@")";; *) command phpenv "$command" "$@";; esac }'

----------------------
phpenv エラー    

[root@falcon21 ~]# vi .bashrc   ・・・修正

export PATH="/root/.phpenv/bin:$PATH"
eval "$(phpenv init -)"

------------------
[root@falcon21 ~]# reboot

Using username "hayato".
hayato@192.168.2.101's password:
Last login: Sun Jun 3 08:59:12 2018 from hayato.falcon21.space
[hayato@falcon21 ~]$

エラーがなくなった。

**************************************************************************************************


投票数:1 平均点:10.00

 
Back to Top