Obtendo o erro sudo: source: command não encontrado no Ubuntu

0

Eu preciso instalar o Ruby versão 2.1.5 e Rails versão 4.2.0 no meu servidor Ubuntu. Aqui estou recebendo erro que é dado abaixo.

Erro:

sudo:source: command not

Eu segui os passos abaixo para instalar o ROR.

sudo apt-get install curl
sudo gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
sudo curl -sSL https://get.rvm.io | bash -s stable

mas quando eu corro este comando abaixo eu recebi o erro acima.

sudo source /etc/profile.d/rvm.sh

Novamente, se eu estiver executando o comando abaixo

sudo rvm requirements

eu também estou recebendo o erro abaixo.

sudo:rvm:command not found

Por favor, ajude-me a resolver este erro e instale o ambiente ROR.

    
por satya 09.09.2015 / 06:31

1 resposta

1

  1. Iniciar

    sudo -i gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
    

    Exemplo de saída

    gpg: directory '/root/.gnupg' created
    gpg: new configuration file '/root/.gnupg/gpg.conf' created
    gpg: WARNING: options in '/root/.gnupg/gpg.conf' are not yet active during this run
    gpg: keyring '/root/.gnupg/secring.gpg' created
    gpg: keyring '/root/.gnupg/pubring.gpg' created
    gpg: requesting key D39DC0E3 from hkp server keys.gnupg.net
    gpg: /root/.gnupg/trustdb.gpg: trustdb created
    gpg: key D39DC0E3: public key "Michal Papis (RVM signing) <[email protected]>" imported
    gpg: no ultimately trusted keys found
    gpg: Total number processed: 1
    gpg:               imported: 1  (RSA: 1)
    

    e NÃO

    sudo gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
    
  2. Iniciar

    sudo -i sh -c "curl -sSL https://get.rvm.io | bash -s stable"
    

    Exemplo de saída

    Downloading https://github.com/rvm/rvm/archive/1.26.11.tar.gz
    Downloading https://github.com/rvm/rvm/releases/download/1.26.11/1.26.11.tar.gz.asc
    gpg: Signature made Mo 30 Mär 2015 23:52:13 CEST using RSA key ID BF04FF17
    gpg: Good signature from "Michal Papis (RVM signing) <[email protected]>"
    gpg: WARNING: This key is not certified with a trusted signature!
    gpg:          There is no indication that the signature belongs to the owner.
    Primary key fingerprint: 409B 6B17 96C2 7546 2A17  0311 3804 BB82 D39D C0E3
         Subkey fingerprint: 62C9 E5F4 DA30 0D94 AC36  166B E206 C29F BF04 FF17
    GPG verified '/usr/local/rvm/archives/rvm-1.26.11.tgz'
    Creating group 'rvm'
    
    Installing RVM to /usr/local/rvm/
    Installation of RVM in /usr/local/rvm/ is almost complete:
    
      * First you need to add all users that will be using rvm to 'rvm' group,
        and logout - login again, anyone using rvm will be operating with 'umask u=rwx,g=rwx,o=rx'.
    
      * To start using RVM you need to run 'source /etc/profile.d/rvm.sh'
        in all your open shell windows, in rare cases you need to reopen all shell windows.
    
    # aboettger,
    #
    #   Thank you for using RVM!
    #   We sincerely hope that RVM helps to make your life easier and more enjoyable!!!
    #
    # ~Wayne, Michal & team.
    
    In case of problems: http://rvm.io/help and https://twitter.com/rvm_io
    

    e NÃO

    sudo curl -sSL https://get.rvm.io | bash -s stable
    
  3. Iniciar

    sudo bash -c "source /etc/profile.d/rvm.sh"
    

    e NÃO

    sudo source /etc/profile.d/rvm.sh
    
  4. Iniciar

    sudo -i rvm requirements
    

    Exemplo de saída

    Checking requirements for ubuntu.
    Installing requirements for ubuntu.
    Updating system.....................
    Installing required packages: libreadline6-dev, libyaml-dev, libsqlite3-dev, libgdbm-dev, libncurses5-dev, bison, libffi-dev........
    Requirements installation successful.
    

    e NÃO

    sudo rvm requirements
    
por A.B. 09.09.2015 / 06:41