From: John Morrice Date: 2010-12-17T22:15:42+09:00 Subject: Re: How to compile ruby to executable? (Linux) On Fri, 17 Dec 2010 21:54:32 +0900 Toni Tanskanen wrote: > Hi, everyone! > > I'm wondering how I could compile my .rb file to executable? I know > that there's rubyscript2exe and allinoneruby but I have problem using > them. When I type "rubyscript2exe" or "allinoneruby" to command line, > it says "command not found". > > I installed both with rubygems. > > Can anyone help me with this? > Can you run other programs you have installed with rubygems? Perhaps they are not in your PATH. In a shell do: $ locate allinoneruby | grep bin To see if you can find where the program is installed. Then do: $ echo $PATH to see your path. Is that directory on the list? If not then you need to export PATH="/path/to/gem/bin/dir:$PATH" in your .bashrc, or whatnot. Note: On my system, ruby executables are installed to /usr/local/bin. Another note: I have no experience with these particular gems - this is just what I would normally do when I have this sort of problem.