6

https://github.com/wayneeseguin/rvm#installationの指示に従って、RVM を介して Ruby をインストールしました。

情報として、すべてのアーカイブ ( readline-5.2.tar.gz、readline-6.2.tar.gz、ruby-1.9.3-p327.tar.bz2、rubygems-1.8.24.tgz、wayneeseguin-rvm-stable. tgz および yaml-0.1.4.tar.gz ) が~/.rvm/archivesディレクトリにあり、それらを再ダウンロードしたくありません。

私がする時:

sudo /usr/bin/apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config

私は得る:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libxslt1-dev' instead of 'libxslt-dev'
Note, selecting 'libncurses5-dev' instead of 'ncurses-dev'
libtool is already the newest version.
sqlite3 is already the newest version.
libxslt1-dev is already the newest version.
libc6-dev is already the newest version.
openssl is already the newest version.
git-core is already the newest version.
subversion is already the newest version.
zlib1g is already the newest version.
libncurses5-dev is already the newest version.
curl is already the newest version.
libreadline6 is already the newest version.
libyaml-dev is already the newest version.
autoconf is already the newest version.
pkg-config is already the newest version.
libxml2-dev is already the newest version.
build-essential is already the newest version.
libssl-dev is already the newest version.
libreadline6-dev is already the newest version.
automake is already the newest version.
zlib1g-dev is already the newest version.
bison is already the newest version.
libsqlite3-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

私もやった:

$ rvm pkg install readline
$ rvm reinstall 1.9.2 --with-readline-dir=$rvm_path/usr

しかし、私はまだこれを取得していirbます:

Readline was unable to be required, if you need completion or history install readline then reinstall the ruby. You may follow 'rvm notes' for dependencies and/or read the docs page https://rvm.io/packages/readline/ . Be sure you 'rvm remove X ; rvm install X' to re-compile your ruby with readline support after obtaining the readline libraries.

再インストールプロセスを4〜5回実行しました。

4

4 に答える 4

5

どうですか

rvm reinstall 1.9.3

ビルドの必需品などの基本的な依存関係をインストールしたら、それを行うことができます。同様の問題があり、いくつかの依存関係をインストールする必要があり、Ruby を再インストールすることでうまくいきました。

以下の依存関係のリスト

sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core \
zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev \
autoconf libc6-dev libncurses5-dev automake libtool bison subversion pkg-config
于 2012-12-20T09:59:35.403 に答える
4

RVM があることを考えるとrvm requirements、特定の環境/OS で実行する必要があるコマンドが得られる便利なコマンドを利用する必要があります。

于 2012-12-20T04:49:45.277 に答える
2

パッケージがインストールされている場合、Ruby はおそらく readline サポート付きでインストールされているはずですrvm requirements

次のコマンドを実行して、readline がインストールされていることを確認できます。

rvm use 1.9.3
find $MY_RUBY_HOME -name readline.so | xargs ldd

応答に見られることから、適切なフローを繰り返す必要があります。

rm -rf $rvm_path/usr/
rvm get head
rvm remove 1.9.3
rvm install 1.9.3 --debug

それでも動作しない場合は、上記の手順を繰り返してください。追加のフラグやスイッチを追加しないでください。必ずクリーンアップ/etc/rvmrc~/.rvmrc、余分なコンパイル フラグを削除してください。すべて失敗した場合は、rvm install 1.9.3 --debugコマンドの出力を提供してください。

于 2012-12-20T10:19:27.440 に答える
1

昔ながらのconfigure/makeの方法でruby実行可能ファイルを再構築するだけかもしれません。それほど長くはかからないはずです。利点は、readlineなどの依存関係を利用できることです。

于 2012-12-20T04:53:35.643 に答える