+ 8
I started game programming, and I have a question.
How can I run an .rb (Ruby) script into Linux? Is there a thingy like you run in the Linux like: run game.rb in libs/games/rb
6 Respostas
+ 5
No I meant I have a Ruby script and it's saved on Storage/libs/games, the question is How can I run it into Linux?
+ 5
@Huan Wang
@Ildemar Urrieta
Alright I'll try to do it :D thanks :D
+ 2
Did you try to do it like in Windows ("ruby game.rb")?
+ 2
What do you mean by running a ruby script into linux? It's much easier to run a ruby script in linux than in windows. You want to write script in windows then run it in linux? Ithink it's also very easy to do that. So I can't get your point.
+ 1
So I think you can add /path/to/your/script to the PATH var, or use a symbolic link. The more interesting way is to build your own gem since you organize your scripts in a standard way. You just build it, install it, then you know how to use it.
0
Just do "ruby game.rb" in your location of the game