さくらのレンタルサーバでデフォルトのシェルを変更する
perlbrewをさくらのレンタルサーバで使おうと思ったら、bash読み込む時点でsetenvコマンドがないといわれた。
bash: setenv: command not found bash: setenv: command not found bash: setenv: command not found
調べると、setenvコマンドはcshなどの場合の環境変数設定コマンドで、bashでは使えない。
そもそもデフォルトのシェルがcshっぽいので、それをbashに変えて、再度perlbrewのinit処理をした。
$ chsh -s /usr/local/bin/bash Password: (loginパスワード) $ ~/perl5/perlbrew/bin/perlbrew init $ source ~/perl5/perlbrew/etc/bashrc