<Wafficus>
I am trying to run 'bundle' in my project which contains a 'GEMFILE' for dependencies for the 'glimmer-dsl-tk' GUI framework, and am receiving this error:
<Wafficus>
I installed 'ruby' via 'Homebrew' package manager on MacOS. Also, I tried installing the other dependency 'tcl-tk' via Homebrew but it said I already had the latest up-to-date version of this package as well for reference, as I am trying to go through the installation prerequisites:
<adam12>
Wafficus: Might need to manually provide a path to the tk dev files.
<Wafficus>
ah, like within the 'GEMFILE' itself right?
<adam12>
Wafficus: There's an override for it. But the tk gem is a binding to the tk library. This normally means it might look for /usr/lib/libtk.so or something, but if you install with Homebrew or similar, then it might get placed in a non-standard location. You then need to "suggest" to the tk gem where it's installed.
<adam12>
Wafficus: I see it's still using jRuby, which might also be the issue.
<adam12>
JRuby doesn't support linking to C libraries. It might be failing just because of that.
Bounga has quit [Ping timeout: 256 seconds]
<adam12>
Were you still using jruby for a reason?
<Wafficus>
hmm well, if it was installed with Brew, then it probably wasn't installed via a .gem file in the first place
<Wafficus>
I don't think I'm using Jruby in this case
<adam12>
Wafficus: We're talking two different things. there's tk the Ruby gem, and there's tk the library.
<adam12>
I thought you were on Mac (if you're the person from yesterday)
<Wafficus>
no, this would be on MacOS (but I totally use Linux on the side)
<adam12>
Oh nm.
<Wafficus>
I am the person from 2 days ago though :)
<adam12>
I didn't realize gtk3 will work on Mac. Maybe it uses the X11 server somehow...
<Wafficus>
me too, never knew
<Wafficus>
didn't know you could tap into X11 on MacOS
<Wafficus>
otherwise I would have overhauled the window manager a while back :)
hwrd has quit [Remote host closed the connection]
<adam12>
I think you could probably get tk to work, but you'd need to somehow get the gem to find the libraries correctly. But I just looked at the tooling around that and it's .. pretty wild. I'm not sure I could offer a suggestion on it at all.
<Wafficus>
(though I know Magenta exists, etc)
<adam12>
I say for now, just work through the list :P there's still the libui bindings too. Hehe.
<Wafficus>
no worries, I'm convinced at this point that GUI development sucks :)
<Wafficus>
exactly
<Wafficus>
just prototyping a simple example app for the team to be honest, whatever works, works
hwrd has joined #ruby
crankharder has quit [Ping timeout: 256 seconds]
<adam12>
I still think you're using jruby, inadvertently. Your paste has metions of jruby everywhere. That _may_ cause issues, because of how Java and C libraries interop.
crankharder has joined #ruby
roadie has joined #ruby
<Wafficus>
hmm I should probably uninstall it then :)
\`_ has joined #ruby
roadie has quit [Ping timeout: 252 seconds]
crankharder has quit [Ping timeout: 256 seconds]
<\`_>
Hi, what is the equivalent way of using perl 'e' regex modifier in ruby, like something shown here https://paste.debian.net/1221717/
<leah2>
str.gsub(/\w/) { |s| s.upcase }
<leah2>
ie use a block
BSaboia has quit [Quit: This computer has gone to sleep]
Wafficus has quit [Ping timeout: 252 seconds]
<\`_>
leah2: how do I access capture group from gsub from inside the block?
<leah2>
$1
<\`_>
that so obvious I feel stupid
<leah2>
:)
crankharder has joined #ruby
roadie has joined #ruby
hwrd-test has joined #ruby
hwrd-test has quit [Quit: WeeChat 3.3]
___nick___ has quit [Ping timeout: 256 seconds]
hwrd-test has joined #ruby
roadie has quit [Ping timeout: 268 seconds]
roadie has joined #ruby
roadie has quit [Ping timeout: 252 seconds]
hwrd-test has quit [Quit: WeeChat 3.3]
roadie has joined #ruby
\`_ has quit [Ping timeout: 276 seconds]
roadie has quit [Ping timeout: 252 seconds]
roadie has joined #ruby
dohtem has quit [Quit: Connection closed for inactivity]
walez has joined #ruby
\`_ has joined #ruby
_aeris_ has joined #ruby
aeris has quit [Ping timeout: 276 seconds]
_aeris_ is now known as aeris
yans has quit [Ping timeout: 252 seconds]
pwnd_sfw has quit [Quit: Ping timeout (120 seconds)]
dohtem has joined #ruby
pwnd_sfw has joined #ruby
walez has quit [Quit: Leaving]
roadie has quit [Ping timeout: 268 seconds]
roadie has joined #ruby
roadie has quit [Ping timeout: 252 seconds]
Inline has joined #ruby
roadie has joined #ruby
roadie has quit [Ping timeout: 268 seconds]
Al2O3 has quit [Remote host closed the connection]
sagax has quit [Ping timeout: 252 seconds]
Al2O3 has joined #ruby
BSaboia has joined #ruby
Wafficus has joined #ruby
<Wafficus>
Got a sample terminal calculator program I made, but I can't understand why the result variable isn't actually working