Revert "remove shell"

This reverts commit 65914f8895.
This commit is contained in:
root
2023-09-24 18:58:33 +03:00
parent 65914f8895
commit c793b55750
26 changed files with 132 additions and 132 deletions

View File

@ -16,20 +16,20 @@ tags: [linux, ruby, gcc]
## Установка пакетов для сборки (и не только)
```
```shell
apt -y install wget unzip gcc make autoconf \
squashfs-tools libtool bison gnupg
```
## Установка ruby (из пакета)
```
```shell
apt -y install ruby ruby-dev
```
## Установка ruby (из исходников)
```
```shell
wget -P /tmp https://cache.ruby-lang.org/pub/ruby/<ver.sion>/ruby-<ve.rsi.on>.tar.gz
tar -C /tmp -xvf /tmp/ruby-*.tar.gz
cd /tmp/ruby-*/
@ -40,7 +40,7 @@ make install
## Установка rubyc (форк, 3.1.3, рекомендую)
```
```shell
wget -P /tmp https://github.com/ericbeland/ruby-packer/releases/download/3_1_3/linux-amd64.zip
unzip /tmp/linux-amd64.zip -d /tmp
mv /tmp/linux-amd64/rubyc /usr/local/bin
@ -49,14 +49,14 @@ chmod +x /usr/local/bin/rubyc
## Установка rubyc (unstable, 2.7, не рекомендую)
```
```shell
wget -P /usr/local/bin https://github.com/pmq20/ruby-packer/releases/download/linux-x64/rubyc
chmod +x /usr/local/bin/rubyc
```
## Установка rubyc (stable, 2.4, не рекомендую)
```
```shell
wget -P /tmp https://gw.alipayobjects.com/os/enclose-prod\
/1fd23e6b-d48f-4ed0-94dd-f0f539960253/rubyc-v0.4.0-linux-x64.gz
gzip -d /tmp/rubyc-v0.4.0-linux-x64.gz
@ -79,7 +79,7 @@ require 'bundler/setup'
## Подготовка к сборке
Необходимо собрать gem с помощью Bundle.
```
```shell
gem install bundler
bundle install
bundle exec rake install
@ -88,7 +88,7 @@ bundle exec rake install
## Сборка бинарника
Собираем бинаник. Обязательно при этом необходимо молиться.
```
```shell
cd <ruby-util-dir>
rubyc -r . -d /tmp/ -o <ruby-util> exe/<ruby-util>
```