LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 02-17-2013, 12:14 PM   #1
irvken
Member
 
Registered: Dec 2003
Location: uk
Distribution: Ubuntu/Debian/Android
Posts: 217

Rep: Reputation: 30
Ruby version problem


Debian Squeeze Virtual Server

I've been trying to create a ruby on rails environment for the getontracks.org application, but I've got my ruby versions messed up so I'm not sure what I'm running

Code:
root@irvken:/home/sean# ruby -v
ruby 1.9.3p362 (2012-12-25 revision 38607) [x86_64-linux]
this version shows even if I remove all packages, libraries and references to ruby on the system, and if I try to run ruby

Code:
root@irvken:/home/sean# ruby
<internal:gem_prelude>:1:in `require': cannot load such file -- rubygems.rb (LoadError)
	from <internal:gem_prelude>:1:in `<compiled>'
If I install ruby and try and run it I either get the same above or if I run

Code:
root@irvken:/home/sean# ruby1.8
It just hangs

So how can I get back to a clean system to start again, or fix this one?
 
Old 02-18-2013, 09:20 AM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,826

Rep: Reputation: 507Reputation: 507Reputation: 507Reputation: 507Reputation: 507Reputation: 507
What's the output of

Code:
dpkg -l '*ruby*'
 
Old 02-18-2013, 09:36 AM   #3
irvken
Member
 
Registered: Dec 2003
Location: uk
Distribution: Ubuntu/Debian/Android
Posts: 217

Original Poster
Rep: Reputation: 30
Quite a lot

Code:
root@irvken:/home/sean# dpkg -l '*ruby*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  eruby          1.0.5-2        Embedded Ruby Language
un  libabstract-ru <none>         (no description available)
un  libactionmaile <none>         (no description available)
un  libactionpack- <none>         (no description available)
un  libactiverecor <none>         (no description available)
un  libactiverecor <none>         (no description available)
un  libactiveresou <none>         (no description available)
un  libactivesuppo <none>         (no description available)
un  libactivesuppo <none>         (no description available)
un  libaddressable <none>         (no description available)
un  libamrita2-rub <none>         (no description available)
un  libapache2-mod <none>         (no description available)
un  libaugeas-ruby <none>         (no description available)
un  libbigdecimal- <none>         (no description available)
un  libbigdecimal- <none>         (no description available)
un  libbreakpoint- <none>         (no description available)
un  libbuilder-rub <none>         (no description available)
un  libbuilder-rub <none>         (no description available)
un  libbunny-ruby1 <none>         (no description available)
un  libcmdparse2-r <none>         (no description available)
un  libcmdparse2-r <none>         (no description available)
un  libcurses-ruby <none>         (no description available)
un  libcurses-ruby <none>         (no description available)
un  libdaemonize-r <none>         (no description available)
un  libdaemons-rub <none>         (no description available)
un  libdataobjects <none>         (no description available)
un  libdataobjects <none>         (no description available)
un  libdataobjects <none>         (no description available)
un  libdataobjects <none>         (no description available)
un  libdbd-mysql-r <none>         (no description available)
un  libdbd-pg-ruby <none>         (no description available)
un  libdbd-sqlite3 <none>         (no description available)
un  libdbi-ruby    <none>         (no description available)
un  libdbi-ruby1.9 <none>         (no description available)
un  libdbi-ruby1.9 <none>         (no description available)
un  libdbm-ruby    <none>         (no description available)
un  libdbm-ruby1.8 <none>         (no description available)
un  libdbm-ruby1.9 <none>         (no description available)
un  libdeprecated- <none>         (no description available)
un  libdevel-logge <none>         (no description available)
un  libdifflcs-rub <none>         (no description available)
un  libdl-ruby     <none>         (no description available)
un  libdl-ruby1.8  <none>         (no description available)
un  libdpkg-ruby1. <none>         (no description available)
un  libdrb-ruby    <none>         (no description available)
un  libdrb-ruby1.8 <none>         (no description available)
un  liberb-ruby    <none>         (no description available)
un  liberb-ruby1.8 <none>         (no description available)
un  liberubis-ruby <none>         (no description available)
ii  liberuby       1.0.5-2        Library for eruby
un  libexif-ruby   <none>         (no description available)
un  libexif-ruby1. <none>         (no description available)
un  libextlib-ruby <none>         (no description available)
un  libfacets-ruby <none>         (no description available)
un  libfakefs-ruby <none>         (no description available)
un  libfcgi-ruby   <none>         (no description available)
un  libfcgi-ruby1. <none>         (no description available)
un  libfcgi-ruby1. <none>         (no description available)
un  libfeedtools-r <none>         (no description available)
un  libffi-ruby1.9 <none>         (no description available)
un  libfilesystem- <none>         (no description available)
un  libfilesystem- <none>         (no description available)
un  libflexmock-ru <none>         (no description available)
un  libfssm-ruby1. <none>         (no description available)
un  libgdbm-ruby   <none>         (no description available)
un  libgdbm-ruby1. <none>         (no description available)
un  libgdbm-ruby1. <none>         (no description available)
un  libgems-ruby1. <none>         (no description available)
un  libgettext-act <none>         (no description available)
un  libgettext-act <none>         (no description available)
un  libgettext-act <none>         (no description available)
un  libgettext-act <none>         (no description available)
un  libgettext-rub <none>         (no description available)
un  libgettext-rub <none>         (no description available)
un  libgettext-rub <none>         (no description available)
un  libgettext-rub <none>         (no description available)
un  libgettext-rub <none>         (no description available)
un  libgpgme-ruby1 <none>         (no description available)
un  libgsl-ruby-do <none>         (no description available)
un  libgsl-ruby1.9 <none>         (no description available)
un  libgsl-ruby1.9 <none>         (no description available)
un  libhighline-ru <none>         (no description available)
un  libhpricot-rub <none>         (no description available)
un  libhtmlentitie <none>         (no description available)
un  libhtree-ruby1 <none>         (no description available)
un  libhttpclient- <none>         (no description available)
un  libi18n-ruby1. <none>         (no description available)
un  libi18n-ruby1. <none>         (no description available)
un  libiconv-ruby  <none>         (no description available)
un  libiconv-ruby1 <none>         (no description available)
un  libimage-size- <none>         (no description available)
un  libimage-size- <none>         (no description available)
un  libinnate-ruby <none>         (no description available)
un  libinotify-rub <none>         (no description available)
un  libkrb5-ruby1. <none>         (no description available)
un  liblocale-ruby <none>         (no description available)
un  liblocale-ruby <none>         (no description available)
un  liblog4r-ruby1 <none>         (no description available)
un  libmapscript-r <none>         (no description available)
un  libmecab-ruby1 <none>         (no description available)
un  libmemcache-cl <none>         (no description available)
un  libmemcache-cl <none>         (no description available)
un  libmixlib-cli- <none>         (no description available)
un  libmmap-ruby1. <none>         (no description available)
un  libmocha-ruby1 <none>         (no description available)
un  libmp3tag-ruby <none>         (no description available)
ii  libmysql-ruby  2.8.2-1        MySQL module for Ruby
ii  libmysql-ruby1 2.8.2-1        MySQL module for Ruby 1.8
un  libmysql-ruby1 <none>         (no description available)
un  libnarray-ruby <none>         (no description available)
un  libnarray-ruby <none>         (no description available)
un  libncurses-rub <none>         (no description available)
un  libncurses-rub <none>         (no description available)
un  libnet-netrc-r <none>         (no description available)
un  libnet-scp-rub <none>         (no description available)
un  libnet-sftp2-r <none>         (no description available)
un  libnet-ssh-gat <none>         (no description available)
un  libnet-ssh-mul <none>         (no description available)
un  libnet-ssh-mul <none>         (no description available)
un  libnet-ssh2-ru <none>         (no description available)
un  libnet-ssh2-ru <none>         (no description available)
un  libnokogiri-ru <none>         (no description available)
un  libodbc-ruby1. <none>         (no description available)
un  libodbc-ruby1. <none>         (no description available)
un  libodbc-ruby1. <none>         (no description available)
un  libogginfo-rub <none>         (no description available)
un  libole-ruby1.9 <none>         (no description available)
un  libopen4-ruby1 <none>         (no description available)
un  libopengl-ruby <none>         (no description available)
un  libopenssl-rub <none>         (no description available)
un  libopenssl-rub <none>         (no description available)
un  libopenssl-rub <none>         (no description available)
un  libpacket-ruby <none>         (no description available)
un  libpacket-ruby <none>         (no description available)
un  libpgsql-ruby- <none>         (no description available)
un  libpgsql-ruby1 <none>         (no description available)
un  libpgsql-ruby1 <none>         (no description available)
un  libpty-ruby    <none>         (no description available)
un  libpty-ruby1.8 <none>         (no description available)
un  libqdbm-ruby1. <none>         (no description available)
un  libracc-runtim <none>         (no description available)
un  libracc-runtim <none>         (no description available)
un  librack-ruby   <none>         (no description available)
un  librack-ruby1. <none>         (no description available)
un  librack-ruby1. <none>         (no description available)
un  librack-ruby1. <none>         (no description available)
un  libramaze-ruby <none>         (no description available)
un  librb-inotify- <none>         (no description available)
un  librcov-ruby   <none>         (no description available)
un  librcov-ruby1. <none>         (no description available)
un  libreadline-ru <none>         (no description available)
un  libreadline-ru <none>         (no description available)
un  libreadline-ru <none>         (no description available)
un  libredcloth-ru <none>         (no description available)
un  libredcloth-ru <none>         (no description available)
un  libremctl-ruby <none>         (no description available)
un  librexml-ruby  <none>         (no description available)
un  librexml-ruby1 <none>         (no description available)
un  librqrcode-rub <none>         (no description available)
un  librrd-ruby1.9 <none>         (no description available)
un  librspec-ruby1 <none>         (no description available)
un  libruby        <none>         (no description available)
ii  libruby1.8     1.8.7.302-2squ Libraries necessary to run Ruby 1.8
un  libruby1.8-ext <none>         (no description available)
rc  libruby1.9.1   1.9.2.0-2      Libraries necessary to run Ruby 1.9.1
un  libruby1.9.1-d <none>         (no description available)
un  libsdbm-ruby   <none>         (no description available)
un  libsdbm-ruby1. <none>         (no description available)
un  libsdl-ruby1.9 <none>         (no description available)
un  libsequel-core <none>         (no description available)
un  libsequel-core <none>         (no description available)
un  libsequel-ruby <none>         (no description available)
un  libsexp-proces <none>         (no description available)
un  libsinatra-rub <none>         (no description available)
un  libsoap-ruby1. <none>         (no description available)
un  libspreadsheet <none>         (no description available)
un  libsqlite3-rub <none>         (no description available)
un  libsqlite3-rub <none>         (no description available)
un  libstfl-ruby1. <none>         (no description available)
un  libstomp-ruby1 <none>         (no description available)
un  libstrscan-rub <none>         (no description available)
un  libstrscan-rub <none>         (no description available)
un  libsvg-graph-r <none>         (no description available)
un  libsyslog-ruby <none>         (no description available)
un  libsyslog-ruby <none>         (no description available)
un  libsystemu-rub <none>         (no description available)
un  libtcltk-ruby1 <none>         (no description available)
un  libtest-unit-r <none>         (no description available)
un  libtest-unit-r <none>         (no description available)
un  libtext-format <none>         (no description available)
un  libtidy-ruby   <none>         (no description available)
un  libtmail-ruby- <none>         (no description available)
un  libtmail-ruby1 <none>         (no description available)
un  libtokyocabine <none>         (no description available)
un  libtokyocabine <none>         (no description available)
un  libtzinfo-ruby <none>         (no description available)
un  libtzinfo-ruby <none>         (no description available)
un  libuconv-ruby1 <none>         (no description available)
un  libusb-ruby1.9 <none>         (no description available)
un  libuuidtools-r <none>         (no description available)
un  libvalidatable <none>         (no description available)
un  libwebapp-ruby <none>         (no description available)
un  libwebrick-rub <none>         (no description available)
un  libwebrick-rub <none>         (no description available)
un  libwirble-ruby <none>         (no description available)
un  libwww-mechani <none>         (no description available)
un  libwww-mechani <none>         (no description available)
un  libxapian-ruby <none>         (no description available)
un  libxml-parser- <none>         (no description available)
un  libxml-ruby1.9 <none>         (no description available)
un  libxmlrpc-ruby <none>         (no description available)
un  libxmlrpc-ruby <none>         (no description available)
un  libyaml-ruby   <none>         (no description available)
un  libyaml-ruby1. <none>         (no description available)
un  libzip-ruby    <none>         (no description available)
un  libzip-ruby1.9 <none>         (no description available)
un  libzlib-ruby   <none>         (no description available)
un  libzlib-ruby1. <none>         (no description available)
un  rails-ruby1.8  <none>         (no description available)
ii  ruby           4.5            An interpreter of object-oriented scripting 
un  ruby-beta-elis <none>         (no description available)
un  ruby-dev       <none>         (no description available)
un  ruby-elisp     <none>         (no description available)
un  ruby1.6-elisp  <none>         (no description available)
un  ruby1.7-elisp  <none>         (no description available)
ii  ruby1.8        1.8.7.302-2squ Interpreter of object-oriented scripting lan
un  ruby1.8-dev    <none>         (no description available)
un  ruby1.8-elisp  <none>         (no description available)
un  ruby1.8-exampl <none>         (no description available)
rc  ruby1.9.1      1.9.2.0-2      Interpreter of object-oriented scripting lan
un  ruby1.9.1-dev  <none>         (no description available)
rc  ruby1.9.1-elis 1.9.2.0-2      ruby-mode for Emacsen
un  ruby1.9.1-exam <none>         (no description available)
un  ruby1.9.1-full <none>         (no description available)
un  ruby1.9.2      <none>         (no description available)
un  rubygems       <none>         (no description available)
un  rubygems-doc   <none>         (no description available)
rc  rubygems1.8    1.3.7-3        package management framework for Ruby librar
un  rubygems1.9.1  <none>         (no description available)
which looks confusing
 
Old 02-18-2013, 10:20 AM   #4
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,826

Rep: Reputation: 507Reputation: 507Reputation: 507Reputation: 507Reputation: 507Reputation: 507
you can exclude 'un' lines, they are uninstalled:

Code:
COLUMNS=200 dpkg -l '*ruby*' | grep -v '^un'
'rc' on the other hands means problem. Try reconfigure those packages, eg:

Code:
dpkg-reconfigure ruby1.9.1
 
Old 02-18-2013, 10:45 AM   #5
irvken
Member
 
Registered: Dec 2003
Location: uk
Distribution: Ubuntu/Debian/Android
Posts: 217

Original Poster
Rep: Reputation: 30
Thanks, that was useful. I've now uninstalled nearly everything relevant but still get misinformation from : ruby -v . Is this the best I'll be able to clean it up?

Code:
root@irvken:/home/sean# dpkg -l '*ruby*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
un  eruby          <none>         (no description available)
un  libabstract-ru <none>         (no description available)
un  libactionmaile <none>         (no description available)
un  libactionpack- <none>         (no description available)
un  libactiverecor <none>         (no description available)
un  libactiverecor <none>         (no description available)
un  libactiveresou <none>         (no description available)
un  libactivesuppo <none>         (no description available)
un  libactivesuppo <none>         (no description available)
un  libaddressable <none>         (no description available)
un  libamrita2-rub <none>         (no description available)
un  libapache2-mod <none>         (no description available)
un  libaugeas-ruby <none>         (no description available)
un  libbigdecimal- <none>         (no description available)
un  libbigdecimal- <none>         (no description available)
un  libbreakpoint- <none>         (no description available)
un  libbuilder-rub <none>         (no description available)
un  libbuilder-rub <none>         (no description available)
un  libbunny-ruby1 <none>         (no description available)
un  libcmdparse2-r <none>         (no description available)
un  libcmdparse2-r <none>         (no description available)
un  libcurses-ruby <none>         (no description available)
un  libcurses-ruby <none>         (no description available)
un  libdaemonize-r <none>         (no description available)
un  libdaemons-rub <none>         (no description available)
un  libdataobjects <none>         (no description available)
un  libdataobjects <none>         (no description available)
un  libdataobjects <none>         (no description available)
un  libdataobjects <none>         (no description available)
un  libdbd-mysql-r <none>         (no description available)
un  libdbd-pg-ruby <none>         (no description available)
un  libdbd-sqlite3 <none>         (no description available)
un  libdbi-ruby    <none>         (no description available)
un  libdbi-ruby1.9 <none>         (no description available)
un  libdbi-ruby1.9 <none>         (no description available)
un  libdbm-ruby    <none>         (no description available)
un  libdbm-ruby1.8 <none>         (no description available)
un  libdbm-ruby1.9 <none>         (no description available)
un  libdeprecated- <none>         (no description available)
un  libdevel-logge <none>         (no description available)
un  libdifflcs-rub <none>         (no description available)
un  libdl-ruby     <none>         (no description available)
un  libdl-ruby1.8  <none>         (no description available)
un  libdpkg-ruby1. <none>         (no description available)
un  libdrb-ruby    <none>         (no description available)
un  libdrb-ruby1.8 <none>         (no description available)
un  liberb-ruby    <none>         (no description available)
un  liberb-ruby1.8 <none>         (no description available)
un  liberubis-ruby <none>         (no description available)
rc  liberuby       1.0.5-2        Library for eruby
un  libexif-ruby   <none>         (no description available)
un  libexif-ruby1. <none>         (no description available)
un  libextlib-ruby <none>         (no description available)
un  libfacets-ruby <none>         (no description available)
un  libfakefs-ruby <none>         (no description available)
un  libfcgi-ruby   <none>         (no description available)
un  libfcgi-ruby1. <none>         (no description available)
un  libfcgi-ruby1. <none>         (no description available)
un  libfeedtools-r <none>         (no description available)
un  libffi-ruby1.9 <none>         (no description available)
un  libfilesystem- <none>         (no description available)
un  libfilesystem- <none>         (no description available)
un  libflexmock-ru <none>         (no description available)
un  libfssm-ruby1. <none>         (no description available)
un  libgdbm-ruby   <none>         (no description available)
un  libgdbm-ruby1. <none>         (no description available)
un  libgdbm-ruby1. <none>         (no description available)
un  libgems-ruby1. <none>         (no description available)
un  libgettext-act <none>         (no description available)
un  libgettext-act <none>         (no description available)
un  libgettext-act <none>         (no description available)
un  libgettext-act <none>         (no description available)
un  libgettext-rub <none>         (no description available)
un  libgettext-rub <none>         (no description available)
un  libgettext-rub <none>         (no description available)
un  libgettext-rub <none>         (no description available)
un  libgettext-rub <none>         (no description available)
un  libgpgme-ruby1 <none>         (no description available)
un  libgsl-ruby-do <none>         (no description available)
un  libgsl-ruby1.9 <none>         (no description available)
un  libgsl-ruby1.9 <none>         (no description available)
un  libhighline-ru <none>         (no description available)
un  libhpricot-rub <none>         (no description available)
un  libhtmlentitie <none>         (no description available)
un  libhtree-ruby1 <none>         (no description available)
un  libhttpclient- <none>         (no description available)
un  libi18n-ruby1. <none>         (no description available)
un  libi18n-ruby1. <none>         (no description available)
un  libiconv-ruby  <none>         (no description available)
un  libiconv-ruby1 <none>         (no description available)
un  libimage-size- <none>         (no description available)
un  libimage-size- <none>         (no description available)
un  libinnate-ruby <none>         (no description available)
un  libinotify-rub <none>         (no description available)
un  libkrb5-ruby1. <none>         (no description available)
un  liblocale-ruby <none>         (no description available)
un  liblocale-ruby <none>         (no description available)
un  liblog4r-ruby1 <none>         (no description available)
un  libmapscript-r <none>         (no description available)
un  libmecab-ruby1 <none>         (no description available)
un  libmemcache-cl <none>         (no description available)
un  libmemcache-cl <none>         (no description available)
un  libmixlib-cli- <none>         (no description available)
un  libmmap-ruby1. <none>         (no description available)
un  libmocha-ruby1 <none>         (no description available)
un  libmp3tag-ruby <none>         (no description available)
un  libmysql-ruby  <none>         (no description available)
un  libmysql-ruby1 <none>         (no description available)
un  libmysql-ruby1 <none>         (no description available)
un  libnarray-ruby <none>         (no description available)
un  libnarray-ruby <none>         (no description available)
un  libncurses-rub <none>         (no description available)
un  libncurses-rub <none>         (no description available)
un  libnet-netrc-r <none>         (no description available)
un  libnet-scp-rub <none>         (no description available)
un  libnet-sftp2-r <none>         (no description available)
un  libnet-ssh-gat <none>         (no description available)
un  libnet-ssh-mul <none>         (no description available)
un  libnet-ssh-mul <none>         (no description available)
un  libnet-ssh2-ru <none>         (no description available)
un  libnet-ssh2-ru <none>         (no description available)
un  libnokogiri-ru <none>         (no description available)
un  libodbc-ruby1. <none>         (no description available)
un  libodbc-ruby1. <none>         (no description available)
un  libodbc-ruby1. <none>         (no description available)
un  libogginfo-rub <none>         (no description available)
un  libole-ruby1.9 <none>         (no description available)
un  libopen4-ruby1 <none>         (no description available)
un  libopengl-ruby <none>         (no description available)
un  libopenssl-rub <none>         (no description available)
un  libopenssl-rub <none>         (no description available)
un  libopenssl-rub <none>         (no description available)
un  libpacket-ruby <none>         (no description available)
un  libpacket-ruby <none>         (no description available)
un  libpgsql-ruby- <none>         (no description available)
un  libpgsql-ruby1 <none>         (no description available)
un  libpgsql-ruby1 <none>         (no description available)
un  libpty-ruby    <none>         (no description available)
un  libpty-ruby1.8 <none>         (no description available)
un  libqdbm-ruby1. <none>         (no description available)
un  libracc-runtim <none>         (no description available)
un  libracc-runtim <none>         (no description available)
un  librack-ruby   <none>         (no description available)
un  librack-ruby1. <none>         (no description available)
un  librack-ruby1. <none>         (no description available)
un  librack-ruby1. <none>         (no description available)
un  libramaze-ruby <none>         (no description available)
un  librb-inotify- <none>         (no description available)
un  librcov-ruby   <none>         (no description available)
un  librcov-ruby1. <none>         (no description available)
un  libreadline-ru <none>         (no description available)
un  libreadline-ru <none>         (no description available)
un  libreadline-ru <none>         (no description available)
un  libredcloth-ru <none>         (no description available)
un  libredcloth-ru <none>         (no description available)
un  libremctl-ruby <none>         (no description available)
un  librexml-ruby  <none>         (no description available)
un  librexml-ruby1 <none>         (no description available)
un  librqrcode-rub <none>         (no description available)
un  librrd-ruby1.9 <none>         (no description available)
un  librspec-ruby1 <none>         (no description available)
un  libruby        <none>         (no description available)
un  libruby1.8     <none>         (no description available)
un  libruby1.8-ext <none>         (no description available)
un  libruby1.9.1   <none>         (no description available)
un  libruby1.9.1-d <none>         (no description available)
un  libsdbm-ruby   <none>         (no description available)
un  libsdbm-ruby1. <none>         (no description available)
un  libsdl-ruby1.9 <none>         (no description available)
un  libsequel-core <none>         (no description available)
un  libsequel-core <none>         (no description available)
un  libsequel-ruby <none>         (no description available)
un  libsexp-proces <none>         (no description available)
un  libsinatra-rub <none>         (no description available)
un  libsoap-ruby1. <none>         (no description available)
un  libspreadsheet <none>         (no description available)
un  libsqlite3-rub <none>         (no description available)
un  libsqlite3-rub <none>         (no description available)
un  libstfl-ruby1. <none>         (no description available)
un  libstomp-ruby1 <none>         (no description available)
un  libstrscan-rub <none>         (no description available)
un  libstrscan-rub <none>         (no description available)
un  libsvg-graph-r <none>         (no description available)
un  libsyslog-ruby <none>         (no description available)
un  libsyslog-ruby <none>         (no description available)
un  libsystemu-rub <none>         (no description available)
un  libtcltk-ruby1 <none>         (no description available)
un  libtest-unit-r <none>         (no description available)
un  libtest-unit-r <none>         (no description available)
un  libtext-format <none>         (no description available)
un  libtidy-ruby   <none>         (no description available)
un  libtmail-ruby- <none>         (no description available)
un  libtmail-ruby1 <none>         (no description available)
un  libtokyocabine <none>         (no description available)
un  libtokyocabine <none>         (no description available)
un  libtzinfo-ruby <none>         (no description available)
un  libtzinfo-ruby <none>         (no description available)
un  libuconv-ruby1 <none>         (no description available)
un  libusb-ruby1.9 <none>         (no description available)
un  libuuidtools-r <none>         (no description available)
un  libvalidatable <none>         (no description available)
un  libwebapp-ruby <none>         (no description available)
un  libwebrick-rub <none>         (no description available)
un  libwebrick-rub <none>         (no description available)
un  libwirble-ruby <none>         (no description available)
un  libwww-mechani <none>         (no description available)
un  libwww-mechani <none>         (no description available)
un  libxapian-ruby <none>         (no description available)
un  libxml-parser- <none>         (no description available)
un  libxml-ruby1.9 <none>         (no description available)
un  libxmlrpc-ruby <none>         (no description available)
un  libxmlrpc-ruby <none>         (no description available)
un  libyaml-ruby   <none>         (no description available)
un  libyaml-ruby1. <none>         (no description available)
un  libzip-ruby    <none>         (no description available)
un  libzip-ruby1.9 <none>         (no description available)
un  libzlib-ruby   <none>         (no description available)
un  libzlib-ruby1. <none>         (no description available)
un  rails-ruby1.8  <none>         (no description available)
un  ruby           <none>         (no description available)
un  ruby-beta-elis <none>         (no description available)
un  ruby-dev       <none>         (no description available)
un  ruby-elisp     <none>         (no description available)
un  ruby1.6-elisp  <none>         (no description available)
un  ruby1.7-elisp  <none>         (no description available)
un  ruby1.8        <none>         (no description available)
un  ruby1.8-dev    <none>         (no description available)
un  ruby1.8-elisp  <none>         (no description available)
un  ruby1.8-exampl <none>         (no description available)
un  ruby1.9.1      <none>         (no description available)
un  ruby1.9.1-dev  <none>         (no description available)
rc  ruby1.9.1-elis 1.9.2.0-2      ruby-mode for Emacsen
un  ruby1.9.1-exam <none>         (no description available)
un  ruby1.9.1-full <none>         (no description available)
un  ruby1.9.2      <none>         (no description available)
un  rubygems       <none>         (no description available)
un  rubygems-doc   <none>         (no description available)
un  rubygems1.8    <none>         (no description available)
un  rubygems1.9.1  <none>         (no description available)
root@irvken:/home/sean# ruby -v
ruby 1.9.3p362 (2012-12-25 revision 38607) [x86_64-linux]
 
Old 02-18-2013, 10:57 AM   #6
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,826

Rep: Reputation: 507Reputation: 507Reputation: 507Reputation: 507Reputation: 507Reputation: 507
there shouldn't be any 'ruby' on your computer. try this:

Code:
which ruby
ls -l $(which ruby)
dpkg -S $(which ruby)
 
Old 02-18-2013, 03:54 PM   #7
irvken
Member
 
Registered: Dec 2003
Location: uk
Distribution: Ubuntu/Debian/Android
Posts: 217

Original Poster
Rep: Reputation: 30
Code:
root@irvken:/home/sean# which ruby
/usr/local/bin/ruby
root@irvken:/home/sean# ls -l /usr/local/bin/ruby
-rwxr-xr-x 1 root staff 7265189 Jan  8 17:34 /usr/local/bin/ruby
root@irvken:/home/sean# dpkg -S ruby
ruby1.9.1-elisp: /etc/emacs/site-start.d/50ruby1.9.1-elisp.el
nano: /usr/share/nano/ruby.nanorc
Would it be ok to just delete /usr/local/bin/ruby do you think?
 
Old 02-19-2013, 02:22 AM   #8
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,826

Rep: Reputation: 507Reputation: 507Reputation: 507Reputation: 507Reputation: 507Reputation: 507
It means you have compiled ruby from source on 8th Jan, and installed it into /usr/local/bin -- it has nothing to do with dpkg.
 
Old 02-19-2013, 03:58 AM   #9
irvken
Member
 
Registered: Dec 2003
Location: uk
Distribution: Ubuntu/Debian/Android
Posts: 217

Original Poster
Rep: Reputation: 30
ok, makes sense. Can I just delete the ruby binary then?
 
Old 02-19-2013, 06:21 AM   #10
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,826

Rep: Reputation: 507Reputation: 507Reputation: 507Reputation: 507Reputation: 507Reputation: 507
Try to refresh your memories: did you compile and install ruby on 8th Jan, or not? If so, you can safely delete it; otherwise it had to be someone else -- try to find out who it was.
 
Old 02-19-2013, 07:49 AM   #11
irvken
Member
 
Registered: Dec 2003
Location: uk
Distribution: Ubuntu/Debian/Android
Posts: 217

Original Poster
Rep: Reputation: 30
I think it's very probable that I did

Code:
root@irvken:/home/sean# ruby
bash: ruby: command not found
root@irvken:/home/sean# which ruby
root@irvken:/home/sean#
thanks for your help
 
  


Reply

Tags
apt-get, bash, installation, ruby, versions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Check which version of Ruby is installed? acschnabel Linux - Newbie 9 02-19-2013 11:42 PM
Any issues installing Ruby Gems and Ruby on Rails in Slackware? Lufbery Slackware 8 02-09-2011 07:22 PM
Ruby SDL/ Ruby OpenGL tutorials/reference? LinuxNoob75 Programming 0 12-30-2007 12:47 PM


All times are GMT -5. The time now is 12:39 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration