<postmodern>
just noticed something weird with `` in ruby and wanted to know what's going on. `man true` in ruby claims there's no man page for the true command (which is incorrect), but running system("man true"), or system("man", "true"), or even doing man_page=$(man true) in Bash all work. Why?
swaggboi has joined #ruby
<neshpion>
i get a man output
shuvarek has joined #ruby
<postmodern>
neshpion, weird, what OS/shell are you using?
<neshpion>
artix linux, bash 5.1.8(1)-release
<nakilon>
I get man too on macos
<postmodern>
weeeeird. only happens when in bundle console in this project on Fedora with bash. Outside of bundler it works. Spooky...
<postmodern>
narrowed it down to something in the kramdown-2.3.1 gem
postmodern has quit [Remote host closed the connection]
goepsilongo has joined #ruby
jetchisel has joined #ruby
ur5us has joined #ruby
neshpion has quit [Ping timeout: 276 seconds]
neshpion has joined #ruby
gr33n7007h has quit [Ping timeout: 245 seconds]
niv has joined #ruby
gr33n7007h has joined #ruby
ur5us has quit [Quit: Leaving]
shuvarek has quit [Ping timeout: 264 seconds]
shuvarek has joined #ruby
Rounin has quit [Ping timeout: 264 seconds]
ur5us has joined #ruby
neshpion has quit [Ping timeout: 276 seconds]
ur5us has quit [Quit: Leaving]
fredlinhares has quit [Quit: WeeChat 2.8]
ur5us has joined #ruby
<\{o}>
/quit
\{o} has quit [Quit: ERC (IRC client for Emacs 27.2)]
Liexei has quit [Ping timeout: 240 seconds]
johnnyt has joined #ruby
Skyfire has quit [Quit: WeeChat 3.3]
hammdist has joined #ruby
jpw has joined #ruby
<hammdist>
`./configure --disable-jit-support --without-valgrind && make && make install` but when I include `ruby.h` I get `#include "ruby/config.h"` not found and indeed the file is not there in /usr/local/include/ruby-3.0.0
ur5us has quit [Quit: Leaving]
reset has quit [Quit: reset]
vit has joined #ruby
m3ow1606 has joined #ruby
nullheroes has joined #ruby
Starfoxxes has quit [Ping timeout: 260 seconds]
_whitelogger has joined #ruby
Starfoxxes has joined #ruby
Furai has quit [Quit: WeeChat 3.3]
Furai has joined #ruby
teclator has quit [Ping timeout: 245 seconds]
teclator has joined #ruby
___nick___ has joined #ruby
goepsilongo has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
goepsilongo has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
goepsilongo has joined #ruby
pull has joined #ruby
<hammdist>
got a few undefined references when trying to link with ruby: https://paste.ee/p/d0kXr
<hammdist>
if I try to manually add `-lruby` I get cannot find -lruby
<hammdist>
in /usr/local/lib there is only libruby-static.a and some directories
gr33n7007h has quit [Ping timeout: 264 seconds]
Inline has quit [Read error: Connection reset by peer]
Inline has joined #ruby
<nakilon>
may I ask why you compile ruby at all instead of installing a package
<nakilon>
I mean an existing package that compiles it for you
Inline has quit [Ping timeout: 268 seconds]
Skyfire has joined #ruby
<adam12>
hammdist: I'd try linking to an older version of Ruby, like 2.3 or 2.4, and see if it works. I feel like in the 2.7 or 3.x lineage, they moved some header files around.
<hammdist>
got it to compile: `gcc -O2 -o ./main ./main.cpp $(pkg-config --cflags --libs ruby-3.0) -lruby-static -lm -ldl -lrt -lpthread -lcrypt` thanks all
<hammdist>
I need to compile ruby because I want to disable pthreads if possible
<hammdist>
well it seems it's not possible anymore at any rate. but I'm disabling the JIT which may be problematic for my use case also
Inline has joined #ruby
<hammdist>
what causes SIGWINCH in stracing a bone-basic program that embeds ruby? https://paste.ee/p/gvx1k
pull has quit [Quit: Czesc]
taupiqueur has joined #ruby
vit has quit [Quit: Konversation terminated!]
sagax has quit [Ping timeout: 264 seconds]
<hammdist>
is mruby on topic here? is there a way to embed only the bytecode interpreter in a program? (e.g., and compile to bytecode ahead of time)
teclator has joined #ruby
sagax has joined #ruby
goepsilongo has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
goepsilongo has joined #ruby
dstein64 has quit [Ping timeout: 252 seconds]
menace has quit [Quit: menace]
dstein64 has joined #ruby
<adam12>
hammdist: It's on topic here.
markong has quit [Ping timeout: 268 seconds]
Inline has quit [Ping timeout: 245 seconds]
Inline has joined #ruby
KOTP has quit [Read error: Connection reset by peer]
KOTP has joined #ruby
___nick___ has quit [Ping timeout: 252 seconds]
goldfish has joined #ruby
taupiqueur has quit [Quit: taupiqueur]
Skyfire has quit [Quit: br]
Skyfire has joined #ruby
jpw has quit [Remote host closed the connection]
dohtem has quit [Quit: Connection closed for inactivity]