Find the answer to your Linux question:
Results 1 to 2 of 2
Hi guys, I want to try test ruby on rails application on a virtual ubuntu server. But I didn't work for me. What did i tried Code: $ sudo apt-get ...
  1. #1
    Just Joined!
    Join Date
    Dec 2010
    Posts
    16

    Ruby on Rails version fail

    Hi guys,
    I want to try test ruby on rails application on a virtual ubuntu server. But I didn't work for me.

    What did i tried
    Code:
    $ sudo apt-get install ruby-full build-essential
    $ sudo apt-get install build-essential libssl-dev libreadline5-dev zlib1g-dev
    $ wget ftp :// ftp.ruby-lang.org/pub/ruby/stable-snapshot.tar.gz
    $ tar xzf stable-snapshot.tar.gz
    $ cd ruby/
    $ ./configure
    $ make
    $ sudo make install
    Some outputs
    Code:
    $ruby -v
    ruby 1.8.8p1 (2011-01-15) [x86_64-linux]
    $ruby -ropenssl -rzlib -rreadline -e "puts :Hello"
    Hello
    Code:
    cd ~
    wget http :// production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz
    tar xzvf rubygems-1.3.7.tgz
    cd rubygems-1.7.2
    sudo ruby setup.rb
    sudo ln -s /usr/bin/gem1.8 /usr/bin/gem
    and even did
    Code:
    apt-get install rubygems
    $ dpkg -l ruby*
    Output:
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name Version Description
    +++-================================================== ==-================================================== ==-================================================== ================================================== ====================
    ii ruby 4.2 An interpreter of object-oriented scripting language Ruby
    un ruby-beta-elisp <none> (no description available)
    ii ruby-elisp 4.2 Emacs-lisp ruby-mode for Ruby
    ii ruby-full 4.2 Ruby full installation
    un ruby1.6-elisp <none> (no description available)
    un ruby1.7-elisp <none> (no description available)
    ii ruby1.8 1.8.7.249-2 Interpreter of object-oriented scripting language Ruby 1.8
    ii ruby1.8-dev 1.8.7.249-2 Header files for compiling extension modules for the Ruby 1.8
    ii ruby1.8-elisp 1.8.7.249-2 ruby-mode for Emacsen
    un ruby1.8-examples <none> (no description available)
    un rubygems <none> (no description available)
    un rubygems-doc <none> (no description available)
    ii rubygems1.8 1.3.5-1ubuntu2 package management framework for Ruby libraries/application
    Code:
    sudo gem install rails
    Output:
    Successfully installed activesupport-3.0.3
    Successfully installed builder-2.1.2
    Successfully installed i18n-0.5.0
    Successfully installed activemodel-3.0.3
    Successfully installed rack-1.2.1
    Successfully installed rack-test-0.5.7
    Successfully installed rack-mount-0.6.13
    Successfully installed tzinfo-0.3.24
    Successfully installed abstract-1.0.0
    Successfully installed erubis-2.6.6
    Successfully installed actionpack-3.0.3
    Successfully installed arel-2.0.7
    Successfully installed activerecord-3.0.3
    Successfully installed activeresource-3.0.3
    Successfully installed mime-types-1.16
    Successfully installed polyglot-0.3.1
    Successfully installed treetop-1.4.9
    Successfully installed mail-2.2.14
    Successfully installed actionmailer-3.0.3
    Successfully installed rake-0.8.7
    Successfully installed thor-0.14.6
    Successfully installed railties-3.0.3
    Successfully installed bundler-1.0.7
    Successfully installed rails-3.0.3
    24 gems installed
    Installing ri documentation for activesupport-3.0.3...
    Installing ri documentation for builder-2.1.2...
    ERROR: While generating documentation for builder-2.1.2
    ... MESSAGE: Unhandled special: Special: type=17, text="<!-- HI -->"
    ... RDOC args: --ri --op /usr/local/lib/ruby/gems/1.8/doc/builder-2.1.2/ri --title Builder -- Easy XML Building --main README --line-numbers --quiet lib CHANGES Rakefile README doc/releases/builder-1.2.4.rdoc doc/releases/builder-2.0.0.rdoc doc/releases/builder-2.1.1.rdoc --title builder-2.1.2 Documentation
    (continuing with the rest of the installation)
    Installing ri documentation for i18n-0.5.0...
    Installing ri documentation for activemodel-3.0.3...
    Installing ri documentation for rack-1.2.1...
    Installing ri documentation for rack-test-0.5.7...
    Installing ri documentation for rack-mount-0.6.13...
    Installing ri documentation for tzinfo-0.3.24...
    Installing ri documentation for abstract-1.0.0...
    Installing ri documentation for erubis-2.6.6...
    Installing ri documentation for actionpack-3.0.3...
    Installing ri documentation for arel-2.0.7...
    Installing ri documentation for activerecord-3.0.3...
    Installing ri documentation for activeresource-3.0.3...
    Installing ri documentation for mime-types-1.16...
    Installing ri documentation for polyglot-0.3.1...
    Installing ri documentation for treetop-1.4.9...
    Installing ri documentation for mail-2.2.14...
    Installing ri documentation for actionmailer-3.0.3...
    Installing ri documentation for rake-0.8.7...
    Installing ri documentation for thor-0.14.6...
    Installing ri documentation for railties-3.0.3...
    Installing ri documentation for bundler-1.0.7...
    Installing ri documentation for rails-3.0.3...
    File not found: lib
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name Version Description
    +++-================================================== ==-================================================== ==-================================================== ================================================== ====================
    ii ruby 4.2 An interpreter of object-oriented scripting language Ruby
    un ruby-beta-elisp <none> (no description available)
    ii ruby-elisp 4.2 Emacs-lisp ruby-mode for Ruby
    ii ruby-full 4.2 Ruby full installation
    un ruby1.6-elisp <none> (no description available)
    un ruby1.7-elisp <none> (no description available)
    ii ruby1.8 1.8.7.249-2 Interpreter of object-oriented scripting language Ruby 1.8
    ii ruby1.8-dev 1.8.7.249-2 Header files for compiling extension modules for the Ruby 1.8
    ii ruby1.8-elisp 1.8.7.249-2 ruby-mode for Emacsen
    un ruby1.8-examples <none> (no description available)
    ii rubygems 1.3.5-1ubuntu2 package management framework for Ruby libraries/applications
    un rubygems-doc <none> (no description available)
    ii rubygems1.8 1.3.5-1ubuntu2 package management framework for Ruby libraries/applications
    Code:
    sudo apt-get install rails
    sudo gem install rubygems-update
    Output:
    Successfully installed rubygems-update-1.4.2
    1 gem installed
    Installing ri documentation for rubygems-update-1.4.2...
    Installing RDoc documentation for rubygems-update-1.4.2...
    Code:
    sudo gem update --system
    Output:
    Updating RubyGems
    Updating rubygems-update
    Successfully installed rubygems-update-1.4.2
    Updating RubyGems to 1.4.2
    Installing RubyGems 1.4.2
    RubyGems 1.4.2 installed
    File not found: README
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name Version Description
    +++-================================================== ==-================================================== ==-================================================== ================================================== ====================
    ii ruby 4.2 An interpreter of object-oriented scripting language Ruby
    un ruby-beta-elisp <none> (no description available)
    ii ruby-elisp 4.2 Emacs-lisp ruby-mode for Ruby
    ii ruby-full 4.2 Ruby full installation
    un ruby1.6-elisp <none> (no description available)
    un ruby1.7-elisp <none> (no description available)
    ii ruby1.8 1.8.7.249-2 Interpreter of object-oriented scripting language Ruby 1.8
    ii ruby1.8-dev 1.8.7.249-2 Header files for compiling extension modules for the Ruby 1.8
    ii ruby1.8-elisp 1.8.7.249-2 ruby-mode for Emacsen
    un ruby1.8-examples <none> (no description available)
    ii rubygems 1.3.5-1ubuntu2 package management framework for Ruby libraries/applications
    un rubygems-doc <none> (no description available)
    ii rubygems1.8 1.3.5-1ubuntu2 package management framework for Ruby libraries/applications


    Code:
    sudo apt-get install mysql-server mysql-client
    sudo apt-get install libmysql-ruby libmysqlclient-dev
    sudo gem install mysql
    got a lot of no definition for .....
    but mysql-2.8.1 installed succesfully
    What do I wrong, rubygems still 1.3.5 and is not updated...
    What must I do?

  2. #2
    Just Joined!
    Join Date
    Feb 2011
    Posts
    83
    Quote Originally Posted by MarkRaats View Post
    Hi guys,
    I want to try test ruby on rails application on a virtual ubuntu server. But I didn't work for me.

    What did i tried
    Code:
    $ sudo apt-get install ruby-full build-essential
    $ sudo apt-get install build-essential libssl-dev libreadline5-dev zlib1g-dev
    $ wget ftp :// ftp.ruby-lang.org/pub/ruby/stable-snapshot.tar.gz
    $ tar xzf stable-snapshot.tar.gz
    $ cd ruby/
    $ ./configure
    $ make
    $ sudo make install
    Some outputs
    Code:
    $ruby -v
    ruby 1.8.8p1 (2011-01-15) [x86_64-linux]
    $ruby -ropenssl -rzlib -rreadline -e "puts :Hello"
    Hello
    Code:
    cd ~
    wget http :// production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz
    tar xzvf rubygems-1.3.7.tgz
    cd rubygems-1.7.2
    sudo ruby setup.rb
    sudo ln -s /usr/bin/gem1.8 /usr/bin/gem
    and even did
    Code:
    apt-get install rubygems

    Output:


    Code:
    sudo gem install rails
    Output:




    Code:
    sudo apt-get install rails

    Output:


    Code:
    sudo gem update --system
    Output:






    Code:
    sudo apt-get install mysql-server mysql-client
    sudo apt-get install libmysql-ruby libmysqlclient-dev
    sudo gem install mysql


    What do I wrong, rubygems still 1.3.5 and is not updated...
    What must I do?
    From the desktop menu open Applications -> Add/Remove Software
    In the search box write: ruby
    and install the package of the Ruby script Interpreter

    After that write: rubygems
    and install the standard package manager for 3rd party libraries.

    To see what you have done:
    $ su
    Password:
    $ gem install mygem

    (N.B.: RubyGems, apt-get, portage and yum are package managers at one and the same level)

    $ gem --help

    and to see the 'monster in all its glory' you may write:

    $ gem list --remote

    The system terminal has no screen memory to represent this - around 2500 gems, only the last 250 remain on the display.

    Just don't ask me how this 6th level software puzzle is solved further.

    Regards

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...