Maison  >  Questions et réponses  >  le corps du texte

ubuntu - ROR安装求助

安装到rvm是卡壳
接下来该如何操作

xxx@ubuntu:~$ gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
gpg: directory `/home/zhouhang/.gnupg' created
gpg: new configuration file `/home/zhouhang/.gnupg/gpg.conf' created
gpg: WARNING: options in `/home/zhouhang/.gnupg/gpg.conf' are not yet active during this run
gpg: keyring `/home/zhouhang/.gnupg/secring.gpg' created
gpg: keyring `/home/zhouhang/.gnupg/pubring.gpg' created
gpg: requesting key D39DC0E3 from hkp server keys.gnupg.net
gpg: /home/zhouhang/.gnupg/trustdb.gpg: trustdb created
gpg: key D39DC0E3: public key "Michal Papis (RVM signing) <mpapis@gmail.com>" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)

xxx@ubuntu:~$ \curl -sSL https://get.rvm.io | bash -s stable
curl: (7) Failed to connect to get.rvm.io port 443: Connection refused
xxx@ubuntu:~$ \curl -sSL https://get.rvm.io | bash -s stable
curl: (35) gnutls_handshake() failed: Error in the pull function.
黄舟黄舟2709 Il y a quelques jours586

répondre à tous(2)je répondrai

  • 大家讲道理

    大家讲道理2017-04-24 09:13:39

    rvm a été bloqué, j'en ai copié une copie dans mes notes, vous pouvez l'utiliser directement

    $ curl -L /n/1330000004144488/raw | bash -s stable

    répondre
    0
  • 天蓬老师

    天蓬老师2017-04-24 09:13:39

    Arrêtez d'utiliser rvm, utilisez rbenv, suivez le tutoriel : (La condition préalable pour utiliser le tutoriel est que oh-my-zsh ait été installé)
    Exécutez les commandes suivantes dans l'ordre dans le terminal pour terminer l'installation de ruby ​​et rails , le code suivant a été utilisé plus de 5 fois et vérifié sur plus de 3 ordinateurs différents.

    # Ubuntu系统下安装ruby/rails必要的库和编译环境
    sudo apt-get update
    sudo apt-get install -y build-essential openssl curl libcurl3-dev libreadline6 libreadline6-dev git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libxml2-dev libxslt-dev autoconf automake libtool imagemagick libmagickwand-dev libpcre3-dev libsqlite3-dev
    # rbenv环境安装
    git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
    echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
    echo 'eval "$(rbenv init - zsh)"' >> ~/.zshrc
    source ~/.zshrc
    type rbenv
    git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
    # ruby环境安装,首先列出可安装的版本,然后选择后进行下载编译
    rbenv install -l
    rbenv install 2.2.3
    # 设置当前使用的ruby版本并将gem的源改为淘宝镜像
    rbenv global 2.2.3
    rbenv rehash
    gem sources --remove https://rubygems.org/
    gem sources -a http://ruby.taobao.org/
    # 安装rails
    gem install bundler rails --no-rdoc --no-ri
    # 检查安装后的软件版本
    ruby -v
    gem -v
    rake -V
    rails -v

    répondre
    0
  • Annulerrépondre