razetime has quit [Remote host closed the connection]
none_null has quit [Read error: Connection reset by peer]
Spyre has joined #ruby
<Spyre>
Olá pessoal, podem me dar uma ajuda por favor, eu tenho uma aplicação em ruby, só que agora o sistema está caindo contantemente, e quando eu faço login no servidor debin linux, apresenta a seguinte mensagem: suspended (tty output) source /usr/local/rvm/bin/rvm já fiz várias pesquisas mas não sei o que fazer, alguém poderia por favor
<Spyre>
me dar uma ajuda?
<Spyre>
Eu comecei a estudar Ruby, o comando rvm não funciona pois está suspenso!!!
<adam12>
Spyre: screenshot?
<Spyre>
Desculpa adam, primeira vez que eu entro aqui, como eu envio uma imagem ?
<adam12>
Spyre: Instead of screenshot, let's get a bit more info.
<adam12>
Spyre: echo $SHELL
<adam12>
Spyre: `type rvm | head -n 1`
<adam12>
(run both in your shell)
<Spyre>
rvm not found
<adam12>
Spyre: `source ~/.rvm/scripts/rvm` then `type rvm | head -n 1` again
<Spyre>
adam, me desculpa, eu vou ter que sair agora, vou levar meu filho no curso e já volto, pode ser?
<adam12>
Spyre: Yes.
<Spyre>
Você sabe usar o TeamViewer?
<Spyre>
Quando eu chegar eu te mostro ok? Obrigado dede já!!!
<ox1eef_>
mjit.c is the old JIT, I guess?
<adam12>
ox1eef_: old/original/alternative
<ox1eef_>
Ah, yeah. That makes sense. The Rust JIT is opt-in ?
<adam12>
ox1eef_: Yes. If you have Rust available and are compiling from source, the YJIT will compile with it. If you don't have Rust available, and are compiling from source, YJIT won't be built.
<adam12>
(a usable version of Rust that is, not something super old)
<ox1eef_>
I have Rust here, but rather than it being used, it looks like mjit.c was just installed.
<adam12>
You'll likely get both, but yjit has an optional Rust dependency. I think mjit is pure C.
<adam12>
ruby -v
<adam12>
I think it shows yjit if available.
<adam12>
Oh, maybe you need `--enable-yjit` when compiling. I thought it would work if it detected rustc.
<ox1eef_>
Thanks. I will be able to check in a bit, God willing. I'm working on a FreeBSD port that will provide a *standard* installation. The official port murders the standard library, everything but ruby32 is removed on the fly (including rubygems, bundler, etc).
<ox1eef_>
I can't work with that.
<adam12>
ox1eef_: Best of luck. Maybe the openbsd ports could provide some inspiration, since they are maintained by Jeremy Evans.
<ox1eef_>
Indeed. That's been my guide :)
<havenwood>
If you have Rust 1.58+ installed when you build Ruby it should *just work*.
<havenwood>
3.2 autodetects Rust and should build.
<ox1eef_>
I have 1.66.1
<havenwood>
Should be good to go.
<adam12>
havenwood: Do you get +YJIT in ruby --version ?
<ox1eef_>
Alright, will dig deeper as I make more progress.
<adam12>
I don't, but I have --yjit as a flag, so ... I'm very confused.
<adam12>
Actually, I just noticed this is 3.1.2 :O
<adam12>
My local ruby versions are all messed up, and it was one of the things I was going to try to fix over the holidays.
<adam12>
I was using Frum but it doesn't support truffleruby/jruby.
<adam12>
chruby/ruby-install was what I used to use, but ruby-install was having some issues with openssl I didn't care to debug. ruby-build does the local openssl compile+link and everything works.
<adam12>
I don't care for rbenv shims...
<adam12>
I do most of my work in a Docker container. I just like having Ruby available for quick ri access.