I''m installing rails on Ubuntu Linux. Got all the ruby packages (apt-get is pretty cool), gems, etc. Used gems to install rails with no problems (0.13.1). However, when attempting to generate a test app, "rails testr", I get the following error: /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependenc ies.rb:186:in `const_missing'': uninitialized constant Soap (NameError) from /usr/lib/ruby/gems/1.8/gems/actionwebservice-0.8.1/lib/action_web_service.rb :57 from /usr/lib/ruby/gems/1.8/gems/actionwebservice-0.8.1/lib/action_web_service.rb :55:in `class_eval'' from /usr/lib/ruby/gems/1.8/gems/actionwebservice-0.8.1/lib/action_web_service.rb :55:in `class_eval'' from /usr/lib/ruby/gems/1.8/gems/actionwebservice-0.8.1/lib/action_web_service.rb :55 ...Snip... Any ideas? Adam
On 7/17/05, Adam Stiles <adam-srBeijNoHnzby3iVrkZq2A@public.gmane.org> wrote:> I''m installing rails on Ubuntu Linux. Got all the ruby packages (apt-get is > pretty cool), gems, etc. Used gems to install rails with no problems > (0.13.1). However, when attempting to generate a test app, "rails testr", I > get the following error: > > /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependenc > ies.rb:186:in `const_missing'': uninitialized constant Soap (NameError) > from > /usr/lib/ruby/gems/1.8/gems/actionwebservice-0.8.1/lib/action_web_service.rb > :57 > from > /usr/lib/ruby/gems/1.8/gems/actionwebservice-0.8.1/lib/action_web_service.rb > :55:in `class_eval'' > from > /usr/lib/ruby/gems/1.8/gems/actionwebservice-0.8.1/lib/action_web_service.rb > :55:in `class_eval'' > from > /usr/lib/ruby/gems/1.8/gems/actionwebservice-0.8.1/lib/action_web_service.rb > :55 >Debian / Ubuntu can never seem to package up Ruby correctly for whatever reason. I think you''d be better off removing the Ruby packages and then grabbing the 1.8.2 Ruby source, and then do tar zxf ruby-1.8.2.tar.gz cd ruby-1.8.2 ./configure make sudo make install And then reinstall gems and rails.
Tom Schutzer-Weissmann
2005-Jul-18 18:12 UTC
Re: Problem installing rails on Ubuntu... Soap Missing?
On Sun, 2005-07-17 at 18:30 -0700, Joe Van Dyk wrote:> Debian / Ubuntu can never seem to package up Ruby correctly for > whatever reason. I think you''d be better off removing the Ruby > packages and then grabbing the 1.8.2 Ruby source, and then do > tar zxf ruby-1.8.2.tar.gz > cd ruby-1.8.2 > ./configure > make > sudo make installIf you do that, ruby will end up in /usr/local/lib instead of /usr/local/lib. This worked for me: follow http://wiki.rubyonrails.com/rails/show/RailsOnUbuntuDebianTestingAndUnstable *but*, before you install gems follow Joe''s advice to build ruby from the latest sources, with the exception that you need to use ./configure --prefix=/usr/ instead of ./configure. That will install the latest ruby on top of the old packaged version. Then you can install gems and rails as per the wiki instructions. Well, it worked for me, after some ugly detours. Regards, Tom Weissmann ___________________________________________________________ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com