Thanks, I guess my question was rather tearse.
First problem: me, the webmaster and my boss have all been having a go
at trying to install ruby and rails on my OpenSUSE 10.2
Second problem: do install instructions (ruby and rails) exist? I
can’t seem to find them.
Anyway, we got something going, then tried to create/run the first
example in Agile Web Development with Rails, but the ruby code <%=
Time.now %> would not execute so I tried to run the ruby console to
see if I could figure out why. This gave me an error about ‘readline’
not being available. It was not in the directory ruby installed in
but I found it in the directory the ruby files were originally
extracted to, so I figured the extraction must have been done in the
wrong place. Also got other messages that lead me to believe the
extracted files were not being accessed. In addition, I found
directory name references to 3 versions of ruby: …/ruby/1.9.1, …/
ruby-1.8.7-p174 and …/ruby-1.9.2-p180 so I figured we had thrown
everything but the kitchen sink at the computer in the attempt to get
rails working, so I decided to uninstall/delete as much as I could in
an attempt to start over and do a better install job. However, in the
absence of install instructions I am back at square 1, or perhaps
square 0, and don’t know how to proceed to install Ruby and Rails.
Sadly, this reminds me of when I took computer science in college in
the days of terminals: just getting on to the system and getting it to
respond was always harder than actually programming and solving
problems. How little things have changed.
Thanks for your assistance to an old dog trying to learn a new trick.
First, I dont know SUSE, but have installed successfully many times on mac and ubuntu. Take that as a caveat. Is there a package manager for SUSE? On Ubuntu I use apt_get ruby or something of the like. Then, you say your try to run ruby from the command line — have your tried running irb there (just type ‘irb’ as a command)?
As far as previous installs, that is kind of scary to me. I generally try to virtualize so I can go back when I screw something up inevitably. But if you can find a package manager to install ruby and get it running then you are on the path. Just an fyi, you might want to look at rvm for managing multiple versions of ruby as well as being able to isolate rails installs.