<FINbit>
i keep getting thhis error whenevrr i try to instlal a version of jruby with rvm
<headius>
FINbit: hello
<FINbit>
/usr/bin/env: bash: No such file or directory
<FINbit>
bear in mind that i have everything in my PATH
<FINbit>
also... i fixed my .bashrc
<FINbit>
still to no avail
<FINbit>
i dont know if its because im using rvm 1.15.8 which is an old version, but thats the one i need to use as this code has some legacy :(
tcrawley has joined #jruby
<olle>
FINbit: /usr/bin/env is saying "I can not find the `bash` executable on the PATH." If you write "which -a bash" in the same shell as where rvm is trying to run, what do you get/
<FINbit>
as you can see i should be getting that error
<FINbit>
fc
<FINbit>
ofc
<FINbit>
bash -s
<headius>
is bash in path when you log on as well? It's possible rvm is running a subshell that's not inheriting PATH or something
<FINbit>
olle atm i just want to be ble to reproduce some stuff... being root or not... later on i will think about security
<FINbit>
yeah thats what i think... rvm calls a subshelll within itself
<headius>
if you're just interested in running JRuby you can also just download our tarball
<FINbit>
and theres no $path env var tehre set
<olle>
FINbit: root is a little more special than regular users. Sometimes that introduces "quirks" that aren't there when run as a regular user with a home dir and such.
<headius>
as I say, that would be surprising, but I'd say make sure bash is in PATH on login
<headius>
otherwise I don't think I can help much more...I don't know how rvm is structured
<FINbit>
olle... dude i know what root is... nad at this precise moment i dont really care in which user im running this
<FINbit>
unless ofc ruby would have aproblem
<headius>
I just have bash in PATH all the time and rvm works ok for me
vtunka has quit [Quit: Leaving]
<headius>
I assume you can't install C ruby either?
<FINbit>
nope... but even tho after i install and get those errors its says its installed where its not exctly
<olle>
FINbit: This bit: `awk: cmd. line:1: //usr/local/rvm/ {next} {print}` Could it be versions of awk causing the trouble? (rvm-guessing!) Perhaps rvm uses awk to text-manipulate the rest of its scripts and fails early?
<FINbit>
i have gawk
<FINbit>
updated
<FINbit>
as well
<FINbit>
and this i deb8 awk is on the last version here
<FINbit>
unless rvm because its an old verison doesnt like newly sys bins
<headius>
FINbit: yeah make sure it's latest rvm too
<headius>
there's also #rvm and their issue tracker...sorry we can't help more
<headius>
if you want to get at JRuby directly just unpack the tarball and put it in PATH...as long as you have `java` installed somewhere it should work
camlow325 has joined #jruby
nicksieger has quit [Read error: Connection reset by peer]
<FINbit>
can i still install that version of jruby with a newly version of rvm ?
nicksieger has joined #jruby
<olle>
FINbit: Yeah, that's the cool thing about rvm.
<headius>
FINbit: yes, once you get rvm working it can use that installed copy or you can just have it install the same version itself
<FINbit>
k
<FINbit>
maybe thats the problem... then ill just have to ensure that all the legacy code runs anyway
deobalds has quit [Quit: Computer has gone to sleep.]
thedarkone2 has joined #jruby
sandelius has joined #jruby
vali has joined #jruby
sandelius has quit [Client Quit]
jensnockert has joined #jruby
jensnockert has quit [Ping timeout: 248 seconds]
vtunka has quit [Quit: Leaving]
nicksieger has quit [Read error: Connection reset by peer]
nicksieger has joined #jruby
nicksieger has quit [Read error: Connection reset by peer]
nicksieger has joined #jruby
nicksieger has quit [Read error: Connection reset by peer]
<alex0ptr>
Hello everyone. I'm new to ruby/truffle/graal, so this might be a beginners fault. I'm trying to run a simple program with jruby+truffle that has external dependencys declared in a 'Gemfile'. According to the wiki I should be able to run it with 'jruby+truffle setup'. However it crashes with 'LoadError: no such file to load -- bundler' (http://pastebin.com/jUz2DczP). What am I missing?
nicksieger has joined #jruby
<headius>
alex0ptr: I don't work on the truffle side of JRuby but I'll try to help... bundler is installed, yes?
<alex0ptr>
Well yes if I run bundler show bundler it says: /Users/Alex/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.13.2 . However I assume this is not available for my checked out jruby version?
<alex0ptr>
I thought 'jruby+truffle setup' would make it obsolete...
<headius>
that's correct, you'd need to install bundler in JRuby too
<headius>
setup perhaps should install bundler if it's not installed, but I guess it just assumes it's there
<headius>
so, gem install bundler
<headius>
I'm not sure if jruby+truffle can install gems on its own yet though so you may need to run that with regular JRuby
<ebarrett>
aloha
<ebarrett>
chrisseaton: very quick question, if you are here -- im adding an argument to a native call, on the CoreMethod, should I use 'required = X' on the @CoreMethod, or add a @NodeChild?
<alex0ptr>
Okay. Thanks I'll try to install it with the checked out jruby version. I see there is a gem binary there.
<ebarrett>
maybe @NodeChild is only for optional args
Puffball_ has quit [Remote host closed the connection]
Puffball has joined #jruby
<nirvdrum>
ebarrett: Generally we use @CoreMethod and required/optional. About the only time we really @NodeChild is if we want to @CreateCast.
<nirvdrum>
@CoreMethod, in addition to being a bit less verbose, benefits from having the ability fixnum lower (if the new argument is a numeric value) and being able to taint from the argument.
<ebarrett>
adding 'required=' seems to work
<ebarrett>
then adding arguments to the corresponding Java method
<ebarrett>
what would happen if I call with a different type (than int, which is what I have used)?
<ebarrett>
i guess a runtime exception
olle has quit [Ping timeout: 272 seconds]
enebo has joined #jruby
nicksieger has quit [Read error: Connection reset by peer]
Guest49007 has left #jruby ["bye folks"]
ruurd has joined #jruby
nicksieger has joined #jruby
<chrisseaton>
alex0ptr: hi
<GitHub107>
[jruby] felixvf opened issue #4200: BigDecimal multiplication with Rational produces garbage digits within the requested precision. https://git.io/vPYV7
<chrisseaton>
ebarrett: you don't need @NodeChild for normal arguments in core methods
pitr-ch has joined #jruby
bbrowning_away is now known as bbrowning
<chrisseaton>
If there isn't a specialisation for the type you call it with, you'll get a normal Ruby exception
<alex0ptr>
Hi chrisseaton
<chrisseaton>
Are you still stuck on something?
<alex0ptr>
Kind of. Trying to make the checked out truffle-head version work with rbenv. But nothing serious at the moment.
<alex0ptr>
I will be hanging around here more often from now on. So expect questions soon.
<chrisseaton>
pitr-ch knows the most about that tool
<alex0ptr>
Okay, thanks.
<pitr-ch>
alex0ptr install bundler with the bin/gem in your checkouted JRuby, don't use truffle for that
Puffball_ has joined #jruby
Puffball has quit [Ping timeout: 272 seconds]
<pitr-ch>
alex0ptr then you can try the tool's setup and run commands
pawnbox has quit [Ping timeout: 252 seconds]
<pitr-ch>
alex0ptr I have to afk for an hour, I'll pop back then to help more.
cprice404 has joined #jruby
shellac has quit [Quit: Leaving]
enebo has quit [Quit: enebo]
Puffball_ has quit [Ping timeout: 265 seconds]
Puffball has joined #jruby
FINbit has quit [Ping timeout: 244 seconds]
pawnbox has joined #jruby
strax has quit [Quit: Connection closed for inactivity]
cprice has joined #jruby
cprice404 has quit [Ping timeout: 272 seconds]
Puffball has quit [Ping timeout: 265 seconds]
nicksieger has quit [Read error: Connection reset by peer]
Puffball has joined #jruby
Puffball_ has joined #jruby
Puffball has quit [Ping timeout: 248 seconds]
cprice is now known as cprice404
alex0ptr_ has joined #jruby
vali has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
nicksieger has joined #jruby
alex0ptr has quit [Ping timeout: 244 seconds]
pitr-ch has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<GitHub157>
[jruby] bjfish created feature/truffle-rope-get-byte-slow (+1 new commit): https://git.io/vPY94
<GitHub157>
jruby/feature/truffle-rope-get-byte-slow edada29 Brandon Fish: [Truffle] Iterative implementations for getByteSlow
pitr-ch has joined #jruby
<GitHub165>
[jruby] bjfish opened pull request #4201: [Truffle] Iterative implementations for getByteSlow (truffle-head...feature/truffle-rope-get-byte-slow) https://git.io/vPY9o
vali has joined #jruby
nicksieger has quit [Read error: Connection reset by peer]
nicksieger has joined #jruby
nicksieg_ has joined #jruby
nicksieger has quit [Read error: Connection reset by peer]