2

rvm で Ruby 1.9.3 をインストールできません。すでにダウンロードおよびインストールされているにもかかわらず、Homebrew ライブラリ 'libksba' を要求し続けます。「brew list」コマンドを実行すると、はっきりと表示されます。

Xcode 4.5もインストールしています。

これは環境変数の構成の問題ですか? 相互に認識できるようにパスを構成する必要がありますか? そうである場合、どのように設定すればよいですか?

Homebrew と rvm はどのように連携しますか? これについてはよくわかりません。

ありがとうございました。

rvm install 1.9.3






















Ruby (and needed base gems) for your selection will be installed shortly.
Before it happens, please read and execute the instructions below.
Please use a separate terminal to execute any additional commands.

  Notes for Mac OS X 10.8.2, Xcode 4.5.2.

For JRuby:  Install the JDK. See http://developer.apple.com/java/download/  # Current Java version "1.6.0_26"
For IronRuby: Install Mono >= 2.6
For Ruby 1.9.3: Install libksba # If using Homebrew, 'brew install libksba'
For Opal: Install Nodejs with NPM. See http://nodejs.org/download/

To use an RVM installed Ruby as default, instead of the system ruby:

    rvm install 1.8.7 # installs patch 357: closest supported version
    rvm system ; rvm gemset export system.gems ; rvm 1.8.7 ; rvm gemset import system.gems # migrate your gems
    rvm alias create default 1.8.7

And reopen your terminal windows.

Xcode and gcc:

:

「brew list」コマンドの出力

brew list
apple-gcc42 automake    libgpg-error    libxml2
autoconf    git     libksba     libxslt

最新のセッション:

brew upgrade libksba エラー: libksba-1.2.0 は既にインストールされています $ brew update Homebrew を 5909e2c6 から 0e0ef31f に更新しました。==> 新しい式 globus-toolkit postgres-xc ==> 更新された式 casperjs cunit dxflib mysql-cluster smake cdrtools dvdrtools ivy shmcat webalizer ==> 削除された式 トランスコード unknown7cd1c3e98b07:~ pdenlinger$ rvm install 1.9.3

選択した Ruby (および必要なベース gem) がまもなくインストールされます。それが起こる前に、以下の指示を読んで実行してください。追加のコマンドを実行するには、別のターミナルを使用してください。

Mac OS X 10.8.2、Xcode 4.5.2 に関する注意事項。

JRuby の場合: JDK をインストールします。http://developer.apple.com/java/download/を参照 # 現在の Java バージョン "1.6.0_26" IronRuby の場合: Mono >= 2.6 をインストール Ruby 1.9.3 の場合: libksba をインストール # Homebrew を使用している場合は、'brew install libksba' Opal の場合: NPM を使用して Nodejs をインストールします。http://nodejs.org/download/を参照

システム Ruby の代わりに、RVM がインストールされた Ruby をデフォルトとして使用するには:

rvm install 1.8.7 # installs patch 357: closest supported version
rvm system ; rvm gemset export system.gems ; rvm 1.8.7 ; rvm gemset import system.gems # migrate your gems
rvm alias create default 1.8.7

ターミナル ウィンドウを再度開きます。

Xcode と gcc:

:

追加された C コンパイラ エラー:

rvm install 1.9.3
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p362.
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-p362, this may take a while depending on your cpu(s)...
ruby-1.9.3-p362 - #downloading ruby-1.9.3-p362, this may take a while depending on your connection...
ruby-1.9.3-p362 - #extracted to /usr/local/rvm/src/ruby-1.9.3-p362 (already extracted)
ruby-1.9.3-p362 - #configuring
Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure --enable-shared --disable-install-doc --prefix=/usr/local/rvm/rubies/ruby-1.9.3-p362 --with-opt-dir=/usr/local/rvm/usr', please read /usr/local/rvm/log/ruby-1.9.3-p362/configure.log
There has been an error while running configure. Halting the installation.
$ cat /usr/local/rvm/log/ruby-1.9.3-p362/configure.log
[2013-01-01 20:20:35] env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure --enable-shared --disable-install-doc --prefix=/usr/local/rvm/rubies/ruby-1.9.3-p362 --with-opt-dir=/usr/local/rvm/usr
checking build system type... x86_64-apple-darwin12.2.1
checking host system type... x86_64-apple-darwin12.2.1
checking target system type... x86_64-apple-darwin12.2.1
checking for C compiler default output file name... 
configure: error: C compiler cannot create executables
See `config.log' for more details.

環境変数フラグ:

$ brew update
Already up-to-date.
$ brew tap homebrew/dupes
Error: Already tapped!
$ brew install autoconf automake apple-gcc42
Error: autoconf-2.69 already installed
Error: automake-1.12.6 already installed
Error: apple-gcc42-4.2.1-5666.3 already installed
$ rvm pkg install openssl
Fetching openssl-1.0.1c.tar.gz to /usr/local/rvm/archives
Extracting openssl to /usr/local/rvm/src/openssl-1.0.1c
Configuring openssl in /usr/local/rvm/src/openssl-1.0.1c.
Compiling openssl in /usr/local/rvm/src/openssl-1.0.1c.
Installing openssl to /usr/local/rvm/usr

Please note that it's required to reinstall all rubies:

    rvm reinstall all --force

Updating openssl certificates
$ rvm reinstall all --force
$ rvm install 1.9.3
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p362.
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-p362, this may take a while depending on your cpu(s)...
ruby-1.9.3-p362 - #downloading ruby-1.9.3-p362, this may take a while depending on your connection...
ruby-1.9.3-p362 - #extracted to /usr/local/rvm/src/ruby-1.9.3-p362 (already extracted)
ruby-1.9.3-p362 - #configuring
Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure --enable-shared --disable-install-doc --prefix=/usr/local/rvm/rubies/ruby-1.9.3-p362 --with-opt-dir=/usr/local/rvm/usr', please read /usr/local/rvm/log/ruby-1.9.3-p362/configure.log
There has been an error while running configure. Halting the installation.
unknown7cd1c3e98b07:~ pdenlinger$ cat /usr/local/rvm/log/ruby-1.9.3-p362/configure.log
[2013-01-02 09:58:08] env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure --enable-shared --disable-install-doc --prefix=/usr/local/rvm/rubies/ruby-1.9.3-p362 --with-opt-dir=/usr/local/rvm/usr
checking build system type... x86_64-apple-darwin12.2.1
checking host system type... x86_64-apple-darwin12.2.1
checking target system type... x86_64-apple-darwin12.2.1
checking for C compiler default output file name... 
configure: error: C compiler cannot create executables
See `config.log' for more details.
$ cat config.log
cat: config.log: No such file or directory
$ 
4

1 に答える 1

2

表示されるのrvm requirementsは、show using less=> 上下矢印を使用してナビゲートし、qless を終了してインストールを続行するという出力です。

要件は、Ruby を初めてインストールするときにのみ表示されます。

それはバグで、壊れたコードは既に修正されています

于 2013-01-01T23:39:07.290 に答える