View Full Version : Ruby support?
rashgash
04-16-2005, 08:55 AM
Hi,
Any chance of adding the Ruby language as a value app? I'm particularly interested in using the Ruby on Rails framework. If not, does anyone have experience installing Ruby manually on the system?
-- Josh
Chris
04-18-2005, 10:51 AM
Hi Josh,
I personally have installed both Ruby and RubyonRails. Went pretty easy. The only thing that I have yet to get working is lighttpd/fastcgi.
When compiling Ruby, be sure to configure with the prefix flags. i.e.
./configure --prefix=/usr/local/ruby --exec-prefix=/usr/local/rubyLet me know if you need help getting it installed. I will also talk with Sphera about the possibility of working on some ValueApps.
rashgash
04-19-2005, 02:51 PM
Thanks, Chris. It worked great. The only thing I had to do was rename the shebang in the gem script after I installed RubyGems. I haven't played with lighttpd or apache/fastcgi yet but the webrick server works fine for development.
Chris
04-19-2005, 03:03 PM
Thanks, Chris. It worked great. The only thing I had to do was rename the shebang in the gem script after I installed RubyGems. I haven't played with lighttpd or apache/fastcgi yet but the webrick server works fine for development.
Cool...glad to hear!
When I installed Ruby, it created a bunch of symbolic links in /usr/local/bin:
lrwxrwxrwx erb -> /usr/local/ruby/bin/erb
lrwxrwxrwx eruby -> /usr/local/ruby/bin/eruby
lrwxrwxrwx gem -> /usr/local/ruby/bin/gem
lrwxrwxrwx gem_server -> /usr/local/ruby/bin/gem_server
lrwxrwxrwx irb -> /usr/local/ruby/bin/irb
lrwxrwxrwx rails -> /usr/local/ruby/bin/rails
lrwxrwxrwx rake -> /usr/local/ruby/bin/rake
lrwxrwxrwx rdoc -> /usr/local/ruby/bin/rdoc
lrwxrwxrwx ri -> /usr/local/ruby/bin/ri
lrwxrwxrwx ruby -> /usr/local/ruby/bin/ruby
lrwxrwxrwx testrb -> /usr/local/ruby/bin/testrb
lrwxrwxrwx update_rubygems -> /usr/local/ruby/bin/update_rubygems
You can run these commands to mimic this setup:
cd /usr/local/bin
ln -s /usr/local/ruby/bin/erb erb
ln -s /usr/local/ruby/bin/eruby eruby
ln -s /usr/local/ruby/bin/gem gem
ln -s /usr/local/ruby/bin/gem_server gem_server
ln -s /usr/local/ruby/bin/irb irb
ln -s /usr/local/ruby/bin/rails rails
ln -s /usr/local/ruby/bin/rake rake
ln -s /usr/local/ruby/bin/rdoc rdoc
ln -s /usr/local/ruby/bin/ri ri
ln -s /usr/local/ruby/bin/ruby ruby
ln -s /usr/local/ruby/bin/testrb testrb
ln -s /usr/local/ruby/bin/update_rubygems update_rubygems
Hope this helps...
Great info here guys! I came here expressly to ask about Ruby on Rails support. I'm going to try out some new "Ajax on Rails" stuff and it requires the Rails framework.
Even after creating the symlinks, I also had to edit the first line of '/usr/local/ruby/bin/gem' to:
#!/usr/local/bin/ruby
before gem would work.
Thanks again! :)
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.