# Etapa 2

O interpretador Ruby é necessário para executar o GitLab. [Veja os requisitos mínimos do Ruby](/gitlab-no-ubuntu/instalacao-e-configuracao-source/introducao.md#software-requirements).

O uso de gerenciadores de versão Ruby, como [`RVM`](https://rvm.io/), [`rbenv`](https://github.com/rbenv/rbenv) or [`chruby`](https://github.com/postmodern/chruby) com o GitLab em produção, freqüentemente leva a problemas difíceis de diagnosticar. Os gerenciadores de versão não são suportados e recomendamos fortemente a todos que sigam as instruções abaixo para usar um sistema Ruby.

As distribuições do Linux geralmente têm versões mais antigas do Ruby disponíveis, portanto, essas instruções foram projetadas para instalar o Ruby a partir do código-fonte oficial.

[Install Ruby](https://www.ruby-lang.org/en/documentation/installation/).

### apt (Debian ou Ubuntu) <a href="#apt" id="apt"></a>

Para o gitlab versão 15-10, Download Ruby and compile it:&#x20;

```
mkdir /tmp/ruby && cd /tmp/ruby
curl --remote-name --location --progress-bar "https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.5.tar.gz"
echo '9afc6380a027a4fe1ae1a3e2eccb6b497b9c5ac0631c12ca56f9b7beb4848776 ruby-3.0.5.tar.gz' | sha256sum -c - && tar xzf ruby-3.0.5.tar.gz
cd ruby-3.0.5

./configure --disable-install-rdoc --enable-shared
make
sudo make install
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://liedsons-organization.gitbook.io/gitlab-no-ubuntu/instalacao-e-configuracao-source/etapa-2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
