Ubuntu vs Ruby

P

Phlip

Ruboids:

Ubuntu does truly throw-down, no? Ubuntu rules like Mandrake could have
ruled, and like we all know RedHat will _never_ rule, right?

Oh, and Ubuntu is a Debian, not a RedHat, right?

So why does this awesome Ubuntu make my Ruby experience totally suck?

Try this:

- install everything to do with ruby1.8, with Synaptic Package Manager
- run my mighty MiniRubyWiki
- the system can't find webrick (LoadError), which is supposed to be part
of the core library!

So that leaves me trying to build ruby-1.8.4.tar.gz, where I can't build
tcltk stuff (don't ask), or copying the important stuff (including YAML) out
of the ruby-1.8.2 folders.

Thanks for letting me vent. Please don't try to help, except possibly by
infiltrating a Ruby zealot into Ubuntu!
 
P

Phlip

mathew said:
Try this:

apt-cache search webrick
apt-get install libwebrick-ruby

Thanks! for answering my question to the archives. I won't do it because I
don't want to disturb my current hack.

It turns out webrick is all raw source (yet another credit to Ruby - an
entire web server kit written in pure Ruby with no DLLs!), so I just copied
it up from ruby-1.8.2/lib.

Oh, then I had to get yaml, and hijack versions of strscan.so and syck.so.

Would your apt-get have sucked down syck.so?
 
D

David N. Welton

Phlip said:
Thanks! for answering my question to the archives. I won't do it because I
don't want to disturb my current hack.

It turns out webrick is all raw source (yet another credit to Ruby - an
entire web server kit written in pure Ruby with no DLLs!), so I just copied
it up from ruby-1.8.2/lib.

Oh, then I had to get yaml, and hijack versions of strscan.so and syck.so.

Copying stuff like that is a bad idea. It's best to use apt-get, or at
the very least, to use ruby gems.

I did that - fetch all the pieces of the core with apt, then install
rails with ruby gems, even though the latest Ubuntu seems to have a
recent Rails.


--
David N. Welton
- http://www.dedasys.com/davidw/

Linux, Open Source Consulting
- http://www.dedasys.com/
 
P

Phlip

David said:
I did that - fetch all the pieces of the core with apt, then install rails
with ruby gems, even though the latest Ubuntu seems to have a recent
Rails.

8-0 you got gem working???!!!

Is all my irritation caused by Ubuntu uses --prefix=/usr where normal
programs default to --prefix=/usr/local ?

Anyway the demo with all these tools worked slick, so I no longer have a
reason to futz with versions. But reinstalling Ruby from scratch on the
morning of the demo was _rrreeal_ fun!
 
D

David N. Welton

Tim said:
I recently installed Dapper on my laptop, and was able to get ruby and
gems on, but ri and rdoc aren't available. Any ideas?

Sure they are. The problem may be that you don't have 'universe'
sources for apt...

Package: ri
Priority: optional
Section: universe/interpreters
Installed-Size: 44
Origin: Ubuntu
Maintainer: Fumitoshi UKAI <[email protected]>
Bugs: mailto:[email protected]
Architecture: all
Source: ruby-defaults
Version: 1.8.2-1
Depends: ri1.8
Filename: pool/universe/r/ruby-defaults/ri_1.8.2-1_all.deb
Size: 3762
MD5sum: 458a36bc590f9ccb92bf33d43889d289
Description: Ruby Interactive reference (ri)
ri is a command line tool that displays descriptions of built-in Ruby
methods, classes, and modules. For methods, it shows you the calling
sequence and a description. For classes and modules, it shows a synopsis
along with a list of the methods the class or module implements.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,206
Messages
2,571,069
Members
47,678
Latest member
Aniruddha Das

Latest Threads

Top