rvmを導入しようとしてなかったことにするまで
rvmを導入しようとしてなかったことにするまでの顛末
自分の知識が足りないため挫折
rvm自体はすんなり入ったあと
$ sudo rvm install 1.9.2-head
<i> Installing Ruby from source to: /usr/local/rvm/ruby-1.9.2-head </i>
<i> Running autoconf </i>
<e> Error running '/usr/bin/autoconf', please check /usr/local/rvm/log/ruby-1.9.2-head/autoconf.error.log </e>
<e> Skipping configure step, 'configure' script does not exist, did autoconf not run successfully? </e>
<i> Compiling ruby-1.9.2-head, this may take a while, depending on your cpu(s)... </i>
<e> Error running 'make ', please check /usr/local/rvm/log/ruby-1.9.2-head/make.error.log </e>
$ view /usr/local/rvm/log/ruby-1.9.2-head/autoconf.error.log
[2009-12-07 00:06:55] /usr/bin/autoconf
configure.in:6: error: Autoconf version 2.60 or higher is required
configure.in:6: the top level
autom4te: /usr/bin/m4 failed with exit status: 63
$ autoconf --version
autoconf (GNU Autoconf) 2.59
Written by David J. MacKenzie and Akim Demaille.
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ cd src/
$ wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.65.tar.gz
$ tar xzf autoconf-2.65.tar.gz
$ cd autoconf-2.65
$ ./configure --prefix=/opt/autoconf2_65
$ make
$ sudo /usr/sbin/checkinstall --fstrans=no -R
# rpm -ivh /usr/src/redhat/RPMS/i386/autoconf-2.65-1.i386.rpm
# autoconf -V
autoconf (GNU Autoconf) 2.59
Written by David J. MacKenzie and Akim Demaille.
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# /opt/autoconf2_65/bin/autoconf -V
autoconf (GNU Autoconf) 2.65
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>, <http://gnu.org/licenses/exceptions.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by David J. MacKenzie and Akim Demaille.
気を取り直して
$ sudo rvm install 1.9.2-head
autoconfが古いって言われる
設定でautoconfの場所指定できないかなと思って探しはじめたのが間違いだった
/usr/bin/autoconf
決め打ちなわけないって所に気づくまでが長い
rvmのそれっぽいところのソース見たら
rvm_autoconf="$(which autoconf)"
って書いてあった
ここを上書くコマンドオプションはなさげ。どこ見てるんだろう。PATHかな?ってようやく把握。
$ which autoconf
/usr/bin/autoconf
$ echo $PATH
/usr/local/rvm/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/sane/bin:/opt/python2.6/bin/:/opt/curl/bin/
$ PATH=/opt/autoconf2_65/bin/:$PATH
$ export PATH
$ sudo rvm install 1.9.2-head
<i> Installing Ruby from source to: /usr/local/rvm/ruby-1.9.2-head </i>
<i> Updating ruby from http://svn.ruby-lang.org/repos/ruby/trunk </i>
<i> Running autoconf </i>
<i> Configuring ruby-1.9.2-head, this may take a while depending on your cpu(s)... </i>
<i> Compiling ruby-1.9.2-head, this may take a while, depending on your cpu(s)... </i>
<i> Installing ruby-1.9.2-head </i>
<i> Installation of ruby-1.9.2-head is complete. </i>
<i> Updating rubygems for ruby-1.9.2-head </i>
<i> Installing gems for ruby-1.9.2-head. </i>
<i> Installing rake </i>
<i> Installation of gems for ruby-1.9.2-head is complete. </i>
できたっ!
$ rvm list
ruby-1.9.2-head ( ruby -v # => ruby 1.9.2dev (2009-12-06 trunk 26029) [i686-linux]) )
=> system ( ruby -v # => ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-linux] )
$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-linux]
$ rvm 1.9.2-head
cp: cannot create regular file `/usr/local/rvm/ruby-1.9.2-head/.irbrc': 許可がありません
$ sudo rvm 1.9.2-head
$ ruby -v
ruby 1.9.2dev (2009-12-06 trunk 26029) [i686-linux]
おおお
$ rvm system
$ ruby -v
ruby 1.9.2dev (2009-12-06 trunk 26029) [i686-linux]
ありゃりゃ
$ sudo rvm system
$ ruby -v
-bash: /usr/local/bin/ruby: そのようなファイルやディレクトリはありません
しょんあ
$ rvm list
ruby-1.9.2-head ( ruby -v # => ruby 1.9.2dev (2009-12-06 trunk 26029) [i686-linux]) )
<i> No system ruby found. </i>
ひょえー
$ sudo rvm use ruby -v 1.8.7
<i> Now using ruby 1.8.7 p174 </i>
$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-linux]
$ gem list
*** LOCAL GEMS ***
rake (0.8.7)
ぎゃふん
も、もとのgemは…
まあいっかあ
やっぱよくない
passengerの動かし方とかpgのインストール方法とか手順はちゃんと書いてあるけど めんどいな…
自分だとどこが問題か切り分け出来なくなりそ
rvm: Ruby Version Manager - Troubleshooting
http://rvm.beginrescueend.com/troubleshooting/
rvmはなかったことにしよう
$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-linux]
帰ってきたgemたち
$ gem list
*** LOCAL GEMS ***
actionmailer (2.3.5, 2.3.4, 2.3.3, 2.3.2, 2.2.2)
略
ZenTest (4.0.0)
おしまい
最近のコメント