Advertisement
Juc1

installing-ruby-on-rails-on-debian

Sep 25th, 2012
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.20 KB | None | 0 0
  1. $ apt-get install ruby
  2. Reading package lists... Done
  3. Building dependency tree
  4. Reading state information... Done
  5. ruby is already the newest version.
  6. 0 upgraded, 0 newly installed, 0 to remove and 37 not upgraded.
  7. $ ruby -v
  8. ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
  9. $ apt-get install build-essential libssl-dev curl
  10. Reading package lists... Done
  11. Building dependency tree
  12. Reading state information... Done
  13. curl is already the newest version.
  14. The following extra packages will be installed:
  15. dpkg-dev fakeroot g++ g++-4.4 gcc gcc-4.4 libalgorithm-diff-perl
  16. libalgorithm-diff-xs-perl libalgorithm-merge-perl libc-dev-bin libc6-dev
  17. libdpkg-perl libssl0.9.8 libstdc++6-4.4-dev linux-libc-dev manpages-dev
  18. zlib1g-dev
  19. Suggested packages:
  20. debian-keyring g++-multilib g++-4.4-multilib gcc-4.4-doc libstdc++6-4.4-dbg
  21. gcc-multilib autoconf automake1.9 libtool flex bison gdb gcc-doc
  22. gcc-4.4-multilib libmudflap0-4.4-dev gcc-4.4-locales libgcc1-dbg
  23. libgomp1-dbg libmudflap0-dbg libcloog-ppl0 libppl-c2 libppl7 glibc-doc
  24. libstdc++6-4.4-doc
  25. The following NEW packages will be installed:
  26. build-essential dpkg-dev fakeroot g++ g++-4.4 gcc gcc-4.4
  27. libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl
  28. libc-dev-bin libc6-dev libdpkg-perl libssl-dev libstdc++6-4.4-dev
  29. linux-libc-dev manpages-dev zlib1g-dev
  30. The following packages will be upgraded:
  31. libssl0.9.8
  32. 1 upgraded, 18 newly installed, 0 to remove and 36 not upgraded.
  33. Need to get 20.2 MB of archives.
  34. After this operation, 58.3 MB of additional disk space will be used.
  35. Do you want to continue [Y/n]? y
  36. Get:1 http://security.debian.org/ squeeze/updates/main libssl0.9.8 amd64 0.9.8o-4squeeze13 [998 kB]
  37. Get:2 http://ftp.debian.org/debian/ squeeze/main libc-dev-bin amd64 2.11.3-3 [210 kB]
  38. Get:3 http://security.debian.org/ squeeze/updates/main libssl-dev amd64 0.9.8o-4squeeze13 [2289 kB]
  39. Get:4 http://ftp.debian.org/debian/ squeeze/main linux-libc-dev amd64 2.6.32-45 [839 kB]
  40. Get:5 http://ftp.debian.org/debian/ squeeze/main libc6-dev amd64 2.11.3-3 [2592 kB]
  41. Get:6 http://ftp.debian.org/debian/ squeeze/main gcc-4.4 amd64 4.4.5-8 [2688 kB]
  42. Get:7 http://ftp.debian.org/debian/ squeeze/main gcc amd64 4:4.4.5-1 [4970 B]
  43. Get:8 http://ftp.debian.org/debian/ squeeze/main libstdc++6-4.4-dev amd64 4.4.5-8 [1526 kB]
  44. Get:9 http://ftp.debian.org/debian/ squeeze/main g++-4.4 amd64 4.4.5-8 [5515 kB]
  45. Get:10 http://ftp.debian.org/debian/ squeeze/main g++ amd64 4:4.4.5-1 [1376 B]
  46. Get:11 http://ftp.debian.org/debian/ squeeze/main libdpkg-perl all 1.15.8.12 [694 kB]
  47. Get:12 http://ftp.debian.org/debian/ squeeze/main dpkg-dev all 1.15.8.12 [812 kB]
  48. Get:13 http://ftp.debian.org/debian/ squeeze/main build-essential amd64 11.5 [7178 B]
  49. Get:14 http://ftp.debian.org/debian/ squeeze/main fakeroot amd64 1.14.4-1 [100 kB]
  50. Get:15 http://ftp.debian.org/debian/ squeeze/main libalgorithm-diff-perl all 1.19.02-2 [51.5 kB]
  51. Get:16 http://ftp.debian.org/debian/ squeeze/main libalgorithm-diff-xs-perl amd64 0.04-1 [13.4 kB]
  52. Get:17 http://ftp.debian.org/debian/ squeeze/main libalgorithm-merge-perl all 0.08-2 [13.5 kB]
  53. Get:18 http://ftp.debian.org/debian/ squeeze/main zlib1g-dev amd64 1:1.2.3.4.dfsg-3 [192 kB]
  54. Get:19 http://ftp.debian.org/debian/ squeeze/main manpages-dev all 3.27-1 [1639 kB]
  55. Fetched 20.2 MB in 3s (6209 kB/s)
  56. Preconfiguring packages ...
  57. (Reading database ... 81431 files and directories currently installed.)
  58. Preparing to replace libssl0.9.8 0.9.8o-4squeeze12 (using .../libssl0.9.8_0.9.8o-4squeeze13_amd64.deb) ...
  59. Unpacking replacement libssl0.9.8 ...
  60. Selecting previously deselected package libc-dev-bin.
  61. Unpacking libc-dev-bin (from .../libc-dev-bin_2.11.3-3_amd64.deb) ...
  62. Selecting previously deselected package linux-libc-dev.
  63. Unpacking linux-libc-dev (from .../linux-libc-dev_2.6.32-45_amd64.deb) ...
  64. Selecting previously deselected package libc6-dev.
  65. Unpacking libc6-dev (from .../libc6-dev_2.11.3-3_amd64.deb) ...
  66. Selecting previously deselected package gcc-4.4.
  67. Unpacking gcc-4.4 (from .../gcc-4.4_4.4.5-8_amd64.deb) ...
  68. Selecting previously deselected package gcc.
  69. Unpacking gcc (from .../gcc_4%3a4.4.5-1_amd64.deb) ...
  70. Selecting previously deselected package libstdc++6-4.4-dev.
  71. Unpacking libstdc++6-4.4-dev (from .../libstdc++6-4.4-dev_4.4.5-8_amd64.deb) ...
  72. Selecting previously deselected package g++-4.4.
  73. Unpacking g++-4.4 (from .../g++-4.4_4.4.5-8_amd64.deb) ...
  74. Selecting previously deselected package g++.
  75. Unpacking g++ (from .../g++_4%3a4.4.5-1_amd64.deb) ...
  76. Selecting previously deselected package libdpkg-perl.
  77. Unpacking libdpkg-perl (from .../libdpkg-perl_1.15.8.12_all.deb) ...
  78. Selecting previously deselected package dpkg-dev.
  79. Unpacking dpkg-dev (from .../dpkg-dev_1.15.8.12_all.deb) ...
  80. Selecting previously deselected package build-essential.
  81. Unpacking build-essential (from .../build-essential_11.5_amd64.deb) ...
  82. Selecting previously deselected package fakeroot.
  83. Unpacking fakeroot (from .../fakeroot_1.14.4-1_amd64.deb) ...
  84. Selecting previously deselected package libalgorithm-diff-perl.
  85. Unpacking libalgorithm-diff-perl (from .../libalgorithm-diff-perl_1.19.02-2_all.deb) ...
  86. Selecting previously deselected package libalgorithm-diff-xs-perl.
  87. Unpacking libalgorithm-diff-xs-perl (from .../libalgorithm-diff-xs-perl_0.04-1_amd64.deb) ...
  88. Selecting previously deselected package libalgorithm-merge-perl.
  89. Unpacking libalgorithm-merge-perl (from .../libalgorithm-merge-perl_0.08-2_all.deb) ...
  90. Selecting previously deselected package zlib1g-dev.
  91. Unpacking zlib1g-dev (from .../zlib1g-dev_1%3a1.2.3.4.dfsg-3_amd64.deb) ...
  92. Selecting previously deselected package libssl-dev.
  93. Unpacking libssl-dev (from .../libssl-dev_0.9.8o-4squeeze13_amd64.deb) ...
  94. Selecting previously deselected package manpages-dev.
  95. Unpacking manpages-dev (from .../manpages-dev_3.27-1_all.deb) ...
  96. Processing triggers for man-db ...
  97. Setting up libssl0.9.8 (0.9.8o-4squeeze13) ...
  98. Setting up libc-dev-bin (2.11.3-3) ...
  99. Setting up linux-libc-dev (2.6.32-45) ...
  100. Setting up libc6-dev (2.11.3-3) ...
  101. Setting up gcc-4.4 (4.4.5-8) ...
  102. Setting up gcc (4:4.4.5-1) ...
  103. Setting up libdpkg-perl (1.15.8.12) ...
  104. Setting up dpkg-dev (1.15.8.12) ...
  105. Setting up fakeroot (1.14.4-1) ...
  106. update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode.
  107. Setting up libalgorithm-diff-perl (1.19.02-2) ...
  108. Setting up libalgorithm-diff-xs-perl (0.04-1) ...
  109. Setting up libalgorithm-merge-perl (0.08-2) ...
  110. Setting up zlib1g-dev (1:1.2.3.4.dfsg-3) ...
  111. Setting up libssl-dev (0.9.8o-4squeeze13) ...
  112. Setting up manpages-dev (3.27-1) ...
  113. Setting up libstdc++6-4.4-dev (4.4.5-8) ...
  114. Setting up g++-4.4 (4.4.5-8) ...
  115. Setting up g++ (4:4.4.5-1) ...
  116. update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode.
  117. Setting up build-essential (11.5) ...
  118. $ curl -L get.rvm.io | bash -s stable
  119. % Total % Received % Xferd Average Speed Time Time Time Current
  120. Dload Upload Total Spent Left Speed
  121. 100 10009 100 10009 0 0 13077 0 --:--:-- --:--:-- --:--:-- 13077
  122. Downloading RVM from wayneeseguin branch stable
  123. % Total % Received % Xferd Average Speed Time Time Time Current
  124. Dload Upload Total Spent Left Speed
  125. 100 1047k 100 1047k 0 0 1262k 0 --:--:-- --:--:-- --:--:-- 1262k
  126.  
  127. Installing RVM to /usr/local/rvm/
  128. chown: invalid group: `:rvm'
  129. chown: invalid group: `:rvm'
  130. chown: invalid group: `:rvm'
  131. Creating RVM system user group 'rvm'
  132.  
  133. # RVM: Shell scripts enabling management of multiple ruby environments.
  134. # RTFM: https://rvm.io/
  135. # HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net)
  136. # Cheatsheet: http://cheat.errtheblog.com/s/rvm/
  137. # Screencast: http://screencasts.org/episodes/how-to-use-rvm
  138.  
  139. # In case of any issues read output of 'rvm requirements' and/or 'rvm notes'
  140.  
  141. Installation of RVM in /usr/local/rvm/ is almost complete:
  142.  
  143. * First you need to add all users that will be using rvm to 'rvm' group,
  144. and logout - login again, anyone using rvm will be operating with `umask g+w`.
  145.  
  146. * To start using RVM you need to run `source /etc/profile.d/rvm.sh`
  147. in all your open shell windows, in rare cases you need to reopen all shell windows.
  148.  
  149. # root,
  150. #
  151. # Thank you for using RVM!
  152. # I sincerely hope that RVM helps to make your life easier and more enjoyable!!!
  153. #
  154. # ~Wayne
  155.  
  156.  
  157. rvm 1.15.9 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
  158. $ source $HOME/.rvm/scripts/rvm
  159. -bash: /root/.rvm/scripts/rvm: No such file or directory
  160. $ cat /root/.bashrc
  161. # ~/.bashrc: executed by bash(1) for non-login shells.
  162.  
  163. # Note: PS1 and umask are already set in /etc/profile. You should not
  164. # need this unless you want different defaults for root.
  165. # PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ '
  166. # umask 022
  167.  
  168. # You may uncomment the following lines if you want `ls' to be colorized:
  169. # export LS_OPTIONS='--color=auto'
  170. # eval "`dircolors`"
  171. # alias ls='ls $LS_OPTIONS'
  172. # alias ll='ls $LS_OPTIONS -l'
  173. # alias l='ls $LS_OPTIONS -lA'
  174. #
  175. # Some more alias to avoid making mistakes:
  176. # alias rm='rm -i'
  177. # alias cp='cp -i'
  178. # alias mv='mv -i'
  179. PATH=$PATH:/usr/local/drush
  180. # load RVM
  181. $HOME/.rvm/scripts/rvm
  182. $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement