0

「すべてを試しました」と言う前に、ここに投稿する必要があります。だから、ここに私の問題があります。
に問題がありましたruby 1.9.3-p194。私の端末は、ルビーまたはレールを含むすべての(!)コマンドでスタックしました。(例:rails s mongrelまたはrails -vruby -v)

それはすべて、次の奇妙なことから始まりました。

$ rvm use 1.9.3-p194
Using /usr/local/rvm/gems/ruby-1.9.3-p194

$ bundle exec rails s mongrel

そして、それは行き詰まりました。だから、私がインストールしたルビーのバージョンを知りたかった:

$ rvm list

rvm rubies

ruby-1.8.7-p370 [ i686 ]

# => - current
# =* - current && default
#  * - default

は?!インストールされていないRubyバージョンを使用していますか?


いくつかの調査の後、多くのアドバイスがパッケージ全体を再インストールすることでした。それで、私は試しました。

$ rvm uninstall 1.9.3-p194
Removing /usr/local/rvm/src/ruby-1.9.3-p194...
/usr/local/rvm/rubies/ruby-1.9.3-p194 has already been removed.

繰り返しますが、念のために..

$ rvm uninstall 1.9.3-p194
/usr/local/rvm/src/ruby-1.9.3-p194 has already been removed.
/usr/local/rvm/rubies/ruby-1.9.3-p194 has already been removed.

まあ、それはよさそうだ。(最初の試行で半分がすでに削除されているという事実を除いて... :| )
その後:

エラー #1

$ rvm reinstall 1.9.3-p194
Removing /usr/local/rvm/src/ruby-1.9.3-p194...
/usr/local/rvm/rubies/ruby-1.9.3-p194 has already been removed.
No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p194.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.9.3-p194, this may take a while depending on your cpu(s)...
ruby-1.9.3-p194 - #downloading ruby-1.9.3-p194, this may take a while depending on your connection...
ruby-1.9.3-p194 - #extracted to /usr/local/rvm/src/ruby-1.9.3-p194 (already extracted)
ruby-1.9.3-p194 - #autoreconf
Error running 'autoreconf', please read /usr/local/rvm/log/ruby-1.9.3-p194/autoreconf.log
Skipping configure step, 'configure' does not exist, did autoreconf not run successfully?
ruby-1.9.3-p194 - #compiling

Error running 'make', please read /usr/local/rvm/log/ruby-1.9.3-p194/make.log
There has been an error while running make. Halting the installation.

次のステップは次のとおりです。

$ rvm uninstall 1.9.3-p194
Removing /usr/local/rvm/src/ruby-1.9.3-p194...
/usr/local/rvm/rubies/ruby-1.9.3-p194 has already been removed.
Removing default ruby interpreter

$ rvm list

rvm rubies


# No rvm rubies installed yet. Try 'rvm help install'.

そこで、 を確認しましたhelp installが、役立つものは何も見つかりませんでした。少なくとも、私は解決策を見ていません..
次へ:

エラー #2

$ rvm install 1.9.3-p194
No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p194.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.9.3-p194, this may take a while depending on your cpu(s)...
ruby-1.9.3-p194 - #downloading ruby-1.9.3-p194, this may take a while depending on your connection...
ruby-1.9.3-p194 - #extracting ruby-1.9.3-p194 to /usr/local/rvm/src/ruby-1.9.3-p194
ruby-1.9.3-p194 - #extracted to /usr/local/rvm/src/ruby-1.9.3-p194
ruby-1.9.3-p194 - #configuring

Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include -L/usr/local/rvm/usr/lib ./configure --enable-shared --disable-install-doc --prefix=/usr/local/rvm/rubies/ruby-1.9.3-p194', please read /usr/local/rvm/log/ruby-1.9.3-p194/configure.log
There has been an error while running configure. Halting the installation.

ここで、rvm をアンインストールします。

$ brew uninstall rvm
Error: No such keg: /usr/local/Cellar/rvm

わかりました..まだ動作するかどうかを確認しましょう..?

$ rvm

<listed standard output, thought that'd be useless here..>

はい、まだあります。もう一度 1.9.3 をインストールしてみましょう..

エラー #2 (前と同じ..)

$ rvm install 1.9.3
No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p327.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.9.3-p327, this may take a while depending on your cpu(s)...
ruby-1.9.3-p327 - #downloading ruby-1.9.3-p327, this may take a while depending on your connection...
ruby-1.9.3-p327 - #extracting ruby-1.9.3-p327 to /usr/local/rvm/src/ruby-1.9.3-p327
ruby-1.9.3-p327 - #extracted to /usr/local/rvm/src/ruby-1.9.3-p327
ruby-1.9.3-p327 - #configuring

Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include -L/usr/local/rvm/usr/lib ./configure --enable-shared --disable-install-doc --prefix=/usr/local/rvm/rubies/ruby-1.9.3-p327', please read /usr/local/rvm/log/ruby-1.9.3-p327/configure.log
There has been an error while running configure. Halting the installation.

それから私は「解決策...」を見つけました、#not..

$ umask g+w
$ export -a rvm_configure_env
$ rvm_configure_env=('LDFLAGS=-L/opt/sm/pkg/active/lib' 'CFLAGS=-I/opt/sm/pkg/active/include' 'CPATH=/opt/sm/pkg/active/include')

うまくいきませんでした.. 1.9.3 を再度インストールしようとしましたが、再度エラー #2が発生しました

そう思いました。束全体を内破させましょう..(可能な解決策としてそれを読んでください)

$ rvm implode
Are you SURE you wish for rvm to implode?
This will recursively remove /usr/local/rvm and other rvm traces?
(anything other than 'yes' will cancel) > yes
Removing rvm-shipped binaries (rvm-prompt, rvm, rvm-sudo rvm-shell and rvm-auto-ruby)
Removing rvm wrappers in /usr/local/rvm/bin
Hai! Removing /usr/local/rvm
rm: /etc/profile.d/rvm.sh: Permission denied
/usr/local/rvm has been removed.
rvm has been fully removed. Note you may need to manually remove /etc/rvmrc and ~/.rvmrc if they exist still.

ああ…Permission deniedいい…

$ sudo rvm implode
Password:
sudo: rvm: command not found

万歳!最後に削除されます。

もう一度インストールしましょう..

$ gem install rvm
Successfully installed rvm-1.11.3.5
1 gem installed
Installing ri documentation for rvm-1.11.3.5...
Installing RDoc documentation for rvm-1.11.3.5...

何?!一度だけ試した後ですか?わかりました.. :)しかし、その後....

エラー #3

$ rvm install 1.9.3-p194
cat: /usr/local/rvm/VERSION: No such file or directory
-bash: /usr/local/rvm/scripts/base: No such file or directory
Unrecognized command line argument: 'impode' ( see: 'rvm usage' )

impode.. ? なに?! まあ、これはおそらく以前のタイプミスからです..

次に、同じエラーを何度も返す他のコマンドをいくつか試しました。

ifonteijne:dash Kers$ rvm install 1.9.3-p194
cat: /usr/local/rvm/VERSION: そのようなファイルやディレクトリはありません
-bash: /usr/local/rvm/scripts/base: そのようなファイルまたはディレクトリはありません
認識されないコマンド ライン引数: 'imstall' (参照: 'rvm の使用法' )
ifonteijne:dash Kers$ rvm impode
cat: /usr/local/rvm/VERSION: そのようなファイルやディレクトリはありません
-bash: /usr/local/rvm/scripts/base: そのようなファイルまたはディレクトリはありません
認識されないコマンド ライン引数: 'impode' (参照: 'rvm の使用法' )
ifonteijne:dash Kers$ rvm implode
cat: /usr/local/rvm/VERSION: そのようなファイルやディレクトリはありません
-bash: /usr/local/rvm/scripts/base: そのようなファイルまたはディレクトリはありません
認識されないコマンド ライン引数: 'impode' (参照: 'rvm の使用法' )
ifonteijne:dash Kers$ rvm install
cat: /usr/local/rvm/VERSION: そのようなファイルやディレクトリはありません
-bash: /usr/local/rvm/scripts/base: そのようなファイルまたはディレクトリはありません
認識されないコマンド ライン引数: 'impode' (参照: 'rvm の使用法' )

今、私は.....として立ち往生しています

誰かが私を助けてくれるなら、お願いします。

インストールしたい:Ruby 1.9.3-p194経由RVM

==編集==試した:

$ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )

# Kers,
#
#   Thank you for using RVM!
#   I sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne

まあ、それはうまくいきました。

$ rvm install 1.9.3-p194
No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p194.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
You requested building with '/Developer/usr/bin/gcc' but it is not in your path.

$ brew install gcc
==> Installing gcc dependency: gmp
==> Downloading http://ftpmirror.gnu.org/gmp/gmp-5.0.5.tar.bz2
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/gmp/5.0.5 --enable-cxx --build=x86_64-apple-darwin
==> make
==> make check
==> make install
                 (...)
Xcode: 4.5.2 => /Volumes/SATA/Applications/Xcode.app/Contents/Developer
CLT: 1.0.0.9000000000.1.1249367152
Error: Homebrew doesn't know what compiler versions ship with your version of
Xcode. Please file an issue with the output of `brew --config`:
  https://github.com/mxcl/homebrew/issues

Error: Failed executing: make (mpfr.rb:31)

言われたように:

$ brew --config
HOMEBREW_VERSION: 0.9.3
HEAD: 360be75b4c4e286365d71664d9a8ab277d7b1fb3
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit arrandale
OS X: 10.8.2-x86_64
Xcode: 4.5.2 => /Volumes/SATA/Applications/Xcode.app/Contents/Developer
CLT: 1.0.0.9000000000.1.1249367152
GCC-4.2: build 5666
LLVM-GCC: build 2335
Clang: 2.1 build 163
X11: 2.7.3 => /opt/X11
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

これが役立つことを願っています。

4

1 に答える 1