Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

installing-ruby-on-rails-on-debian 4

By: Juc1 on Oct 3rd, 2012  |  syntax: None  |  size: 6.13 KB  |  views: 117  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. $ sudo apt-get install libtool
  2. [sudo] password for johndoe:
  3.  
  4. Reading package lists... 0%
  5.  
  6. Reading package lists... 100%
  7.  
  8. Reading package lists... Done
  9.  
  10.  
  11. Building dependency tree... 0%
  12.  
  13. Building dependency tree... 0%
  14.  
  15. Building dependency tree... 50%
  16.  
  17. Building dependency tree... 50%
  18.  
  19. Building dependency tree      
  20.  
  21.  
  22. Reading state information... 0%
  23.  
  24. Reading state information... 2%
  25.  
  26. Reading state information... Done
  27.  
  28. The following extra packages will be installed:
  29.   autotools-dev libltdl-dev
  30. Suggested packages:
  31.   libtool-doc autoconf automaken gfortran fortran95-compiler gcj
  32. The following NEW packages will be installed:
  33.   autotools-dev libltdl-dev libtool
  34. 0 upgraded, 3 newly installed, 0 to remove and 56 not upgraded.
  35. Need to get 793 kB of archives.
  36. After this operation, 2572 kB of additional disk space will be used.
  37. Do you want to continue [Y/n]? y
  38.  
  39.  
  40. 0% [Working]
  41.            
  42. Get:1 http://ftp.debian.org/debian/ squeeze/main autotools-dev all 20100122.1 [71.9 kB]
  43.  
  44.            
  45. 0% [1 autotools-dev 4044 B/71.9 kB 5%]
  46.                                      
  47. 9% [Waiting for headers]
  48.                        
  49. Get:2 http://ftp.debian.org/debian/ squeeze/main libltdl-dev amd64 2.2.6b-2 [197 kB]
  50.  
  51.                        
  52. 11% [2 libltdl-dev 17.3 kB/197 kB 8%]
  53.                                      
  54. 33% [Waiting for headers]
  55.                          
  56. Get:3 http://ftp.debian.org/debian/ squeeze/main libtool amd64 2.2.6b-2 [524 kB]
  57.  
  58.                          
  59. 34% [3 libtool 640 B/524 kB 0%]
  60.                                
  61. 100% [Working]
  62.              
  63. Fetched 793 kB in 1s (494 kB/s)
  64. Selecting previously deselected package autotools-dev.
  65. (Reading database ...
  66. (Reading database ... 5%
  67. (Reading database ... 100%
  68. (Reading database ... 86827 files and directories currently installed.)
  69. Unpacking autotools-dev (from .../autotools-dev_20100122.1_all.deb) ...
  70. Selecting previously deselected package libltdl-dev.
  71. Unpacking libltdl-dev (from .../libltdl-dev_2.2.6b-2_amd64.deb) ...
  72. Selecting previously deselected package libtool.
  73. Unpacking libtool (from .../libtool_2.2.6b-2_amd64.deb) ...
  74. Processing triggers for man-db ...
  75. Setting up autotools-dev (20100122.1) ...
  76. Setting up libltdl-dev (2.2.6b-2) ...
  77. Setting up libtool (2.2.6b-2) ...
  78. $ rvm pkg install libyaml
  79. Fetching yaml-0.1.4.tar.gz to /home/johndoe/.rvm/archives
  80. Extracting yaml-0.1.4.tar.gz to /home/johndoe/.rvm/src
  81. Configuring yaml in /home/johndoe/.rvm/src/yaml-0.1.4.
  82. Compiling yaml in /home/johndoe/.rvm/src/yaml-0.1.4.
  83. Installing yaml to /home/johndoe/.rvm/usr
  84.  
  85. Please note that it's required to reinstall all rubies:
  86.  
  87.     rvm reinstall all --force
  88.  
  89. $ rvm reinstall all --force
  90. Removing /home/johndoe/.rvm/src/ruby-1.9.3-p194...
  91. Removing /home/johndoe/.rvm/rubies/ruby-1.9.3-p194...
  92. ruby-1.9.3-p194 - #configure
  93. ruby-1.9.3-p194 - #download
  94.   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
  95.                                  Dload  Upload   Total   Spent    Left  Speed
  96.  
  97.   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  98.   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  99.  11 9871k   11 1103k    0     0   699k      0  0:00:14  0:00:01  0:00:13  741k
  100.  50 9871k   50 4991k    0     0  1924k      0  0:00:05  0:00:02  0:00:03 1993k
  101. 100 9871k  100 9871k    0     0  2960k      0  0:00:03  0:00:03 --:--:-- 3043k
  102. ruby-1.9.3-p194 - #extract
  103. ruby-1.9.3-p194 - #validate
  104. Libraries missing for ruby-1.9.3-p194: libruby.so.1.9. Refer to your system manual for installing libraries
  105. Mounting remote ruby failed, trying to compile.
  106. Installing Ruby from source to: /home/johndoe/.rvm/rubies/ruby-1.9.3-p194, this may take a while depending on your cpu(s)...
  107. ruby-1.9.3-p194 - #downloading ruby-1.9.3-p194, this may take a while depending on your connection...
  108. ruby-1.9.3-p194 - #extracting ruby-1.9.3-p194 to /home/johndoe/.rvm/src/ruby-1.9.3-p194
  109. ruby-1.9.3-p194 - #extracted to /home/johndoe/.rvm/src/ruby-1.9.3-p194
  110. ruby-1.9.3-p194 - #configuring
  111. ruby-1.9.3-p194 - #compiling
  112. ruby-1.9.3-p194 - #installing
  113. Removing old Rubygems files...
  114. Installing rubygems-1.8.24 for ruby-1.9.3-p194 ...
  115. Installation of rubygems completed successfully.
  116. Saving wrappers to '/home/johndoe/.rvm/bin'.
  117. ruby-1.9.3-p194 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
  118. ruby-1.9.3-p194 - #importing default gemsets (/home/johndoe/.rvm/gemsets/)
  119. Install of ruby-1.9.3-p194 - #complete
  120. Making gemset ruby-1.9.3-p194 pristine.
  121. Making gemset ruby-1.9.3-p194@global pristine.
  122. $ rvm reinstall 1.9.3
  123. Removing /home/johndoe/.rvm/src/ruby-1.9.3-p194...
  124. Removing /home/johndoe/.rvm/rubies/ruby-1.9.3-p194...
  125. ruby-1.9.3-p194 - #configure
  126. ruby-1.9.3-p194 - #download
  127. ruby-1.9.3-p194 - #extract
  128. ruby-1.9.3-p194 - #validate
  129. Libraries missing for ruby-1.9.3-p194: libruby.so.1.9. Refer to your system manual for installing libraries
  130. Mounting remote ruby failed, trying to compile.
  131. Installing Ruby from source to: /home/johndoe/.rvm/rubies/ruby-1.9.3-p194, this may take a while depending on your cpu(s)...
  132. ruby-1.9.3-p194 - #downloading ruby-1.9.3-p194, this may take a while depending on your connection...
  133. ruby-1.9.3-p194 - #extracting ruby-1.9.3-p194 to /home/johndoe/.rvm/src/ruby-1.9.3-p194
  134. ruby-1.9.3-p194 - #extracted to /home/johndoe/.rvm/src/ruby-1.9.3-p194
  135. ruby-1.9.3-p194 - #configuring
  136. ruby-1.9.3-p194 - #compiling
  137. ruby-1.9.3-p194 - #installing
  138. Removing old Rubygems files...
  139. Installing rubygems-1.8.24 for ruby-1.9.3-p194 ...
  140. Installation of rubygems completed successfully.
  141. Saving wrappers to '/home/johndoe/.rvm/bin'.
  142. ruby-1.9.3-p194 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
  143. ruby-1.9.3-p194 - #importing default gemsets (/home/johndoe/.rvm/gemsets/)
  144. Install of ruby-1.9.3-p194 - #complete
  145. Making gemset ruby-1.9.3-p194 pristine.
  146. Making gemset ruby-1.9.3-p194@global pristine.
  147. johndoe@vps-1108479-11741:~$ rails -v
  148. /home/johndoe/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
  149. It seems your ruby installation is missing psych (for YAML output).
  150. To eliminate this warning, please install libyaml and reinstall your ruby.
  151. Rails 3.2.3
  152. $
clone this paste RAW Paste Data