2016-10-23 3 views
0

私はウェブスクレイピングスクリプトを作成していますが、現在のgemのバージョンではインストールするパッケージが与えられていません。WindowsのLinuxサブシステムにRVMをインストールする方法

私はそれがインフラの変更理由のためだと知っていますが、今はWindows 10から記念日アップデートをインストールし、Linuxサブシステムをインストールしました。

正しくインストールされているNodeJS + npmが既にインストールされていますが、問題はそのサブシステムにRubyをインストールすることです。私はこれをどのように解決するのです

[email protected]:~$ sudo apt-get install rvm 
sudo: unable to resolve host DESKTOP-TK9ELEL 
Reading package lists... Done 
Building dependency tree 
Reading state information... Done 
Some packages could not be installed. This may mean that you have 
requested an impossible situation or if you are using the unstable 
distribution that some required packages have not yet been created 
or been moved out of Incoming. 
The following information may help to resolve the situation: 

The following packages have unmet dependencies: 

rvm : Depends: libreadline6-dev but it is not installable 
     Depends: autoconf but it is not installable 
     Depends: libgdbm-dev but it is not installable 
     Depends: libncurses5-dev but it is not installable 
     Depends: automake but it is not installable 
     Depends: libtool but it is not installable 
     Depends: bison but it is not installable 
     Depends: pkg-config but it is not installable 
E: Unable to correct problems, you have held broken packages. 

:私はそれは私にエラーを与えているRVMをインストールしようとした

答えて

1

自分のサイトにあるinstall directions for RVMに従ってください。誰もRVMを著者よりよく知っていることはありません。

\curl -sSL https://get.rvm.io | bash -s stable --ruby 

これは、安定版のRVMとRubyをインストールします。その使用後

rvm use [whichever Ruby was installed] --default 

そのルビーをデフォルトにRVMを指示します。

RVMでは、* nixディストリビューションの必要条件をインストールすることができます。 RVMをインストールしたら、sudoまたはyumを使用してRVM管理のRuby用のものをインストールする必要はありません。つまり、を使用しません。sudo rvm install ruby...またはsudo gem install some_gemを使用してください。あなたがすれば、あなたのシステムに間違ったことをさせるだけです。

+0

以前これを試しましたがエラーが発生しました>>> GPG署名検証に失敗しました '/home/ins/.rvm/archives/rvm-1.27.0.tgz' - 'https://github.com/rvm /rvm/releases/download/1.27.0/1.27.0.tar.gz.asc '! – insCode

+0

インストールの手順の最初のステップを実行しましたか?もしそうなら、それについてのサポート質問を検索しましたか? –

関連する問題