1. ➜ ~ rvm install 1.9.3
  2. Fetching yaml-0.1.4.tar.gz to /home/tester/.rvm/archives
  3. % Total % Received % Xferd Average Speed Time Time Time Current
  4. Dload Upload Total Spent Left Speed
  5. 100 460k 100 460k 0 0 99003 0 0:00:04 0:00:04 --:--:-- 107k
  6. Extracting yaml-0.1.4.tar.gz to /home/tester/.rvm/src
  7. Prepare yaml in /home/tester/.rvm/src/yaml-0.1.4.
  8. Configuring yaml in /home/tester/.rvm/src/yaml-0.1.4.
  9. Compiling yaml in /home/tester/.rvm/src/yaml-0.1.4.
  10. Installing yaml to /home/tester/.rvm/usr
  11. Installing Ruby from source to: /home/tester/.rvm/rubies/ruby-1.9.3-p125, this may take a while depending on your cpu(s)...
  12.  
  13. ruby-1.9.3-p125 - #fetching
  14. ruby-1.9.3-p125 - #downloading ruby-1.9.3-p125, this may take a while depending on your connection...
  15. % Total % Received % Xferd Average Speed Time Time Time Current
  16. Dload Upload Total Spent Left Speed
  17. 100 9505k 100 9505k 0 0 491k 0 0:00:19 0:00:19 --:--:-- 754k
  18. ruby-1.9.3-p125 - #extracting ruby-1.9.3-p125 to /home/tester/.rvm/src/ruby-1.9.3-p125
  19. ruby-1.9.3-p125 - #extracted to /home/tester/.rvm/src/ruby-1.9.3-p125
  20. Applying patch 'xcode-debugopt-fix-r34840' (located at /home/tester/.rvm/patches/ruby/1.9.3/p125/xcode-debugopt-fix-r34840.diff)
  21. ruby-1.9.3-p125 - #autoreconf
  22. ruby-1.9.3-p125 - #configuring
  23. ruby-1.9.3-p125 - #compiling
  24. ruby-1.9.3-p125 - #installing
  25. Removing old Rubygems files...
  26. Installing rubygems-1.8.21 for ruby-1.9.3-p125 ...
  27. Installation of rubygems completed successfully.
  28. ruby-1.9.3-p125 - adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
  29. ruby-1.9.3-p125 - #importing default gemsets (/home/tester/.rvm/gemsets/)
  30. Install of ruby-1.9.3-p125 - #complete
  31. ➜ ~ rvm use 1.9.3
  32. Using /home/tester/.rvm/gems/ruby-1.9.3-p125
  33. ➜ ~ rvm rubygems latest-1.8
  34. Removing old Rubygems files...
  35. Installing rubygems-1.8.21 for ruby-1.9.3-p125 ...
  36. Installation of rubygems completed successfully.
  37.  
  38. ➜ ~ rvm install jruby
  39. jruby-1.6.7 - #fetching
  40. jruby-1.6.7 - #extracted to /home/tester/.rvm/src/jruby-1.6.7 (already extracted)
  41. Building Nailgun
  42. jruby-1.6.7 - #installing to /home/tester/.rvm/rubies/jruby-1.6.7
  43. jruby-1.6.7 - #importing default gemsets (/home/tester/.rvm/gemsets/)
  44. Copying across included gems
  45. WARNING: You don't have /home/tester/.gem/jruby/1.8/bin in your PATH,
  46. gem executables will not run.
  47. Building native extensions. This could take a while...
  48. ERROR: Error installing jruby-launcher:
  49. ERROR: Failed to build gem native extension.
  50.  
  51. /home/tester/.rvm/rubies/jruby-1.6.7/bin/jruby extconf.rb
  52. # These line gets substituted with the actual Config::CONFIG items location by extconf.rb
  53. PREFIX = /home/tester/.rvm/rubies/jruby-1.6.7
  54. BINDIR = /home/tester/.rvm/rubies/jruby-1.6.7/bin
  55. INSTALLDIR = $(PREFIX)/lib/ruby/shared/rubygems/defaults
  56. OLDINSTALLDIR = $(PREFIX)/lib/ruby/site_ruby/1.8/rubygems/defaults
  57.  
  58. ifeq (true,$(shell test -x $(BINDIR)/jruby && echo true))
  59. RAKE=$(BINDIR)/jruby -S rake
  60. else
  61. RAKE=rake
  62. endif
  63.  
  64. build: .build-post
  65.  
  66. .build-pre:
  67.  
  68. .build-post: .build-impl build-exe test
  69.  
  70. build-exe:
  71. @if [ "$(findstring mingw, $(CONF))" ]; then \
  72. ${MAKE} -f ${SUB_CONFMK} SUBPROJECTS=${SUBPROJECTS} jruby.exe jrubyw.exe; \
  73. if [ -d ../jruby ]; then cp jruby.exe jrubyw.exe jruby.dll ../jruby/bin/; fi; \
  74. if [ -d D:/work/jruby-dev/jruby ]; then cp jruby.exe jrubyw.exe jruby.dll D:/work/jruby-dev/jruby/bin/; fi; \
  75. fi
  76.  
  77. jruby.res: resources/jruby.rc
  78. windres $^ -O coff -o $@
  79.  
  80. jruby.exe: jrubyexe.cpp nbexecloader.h utilsfuncs.cpp utilsfuncswin.cpp jruby.res
  81. g++ $(CXXFLAGS) $^ -s -o $@ $(LDLIBSOPTIONS)
  82.  
  83. jrubyw.exe: jrubyexe.cpp nbexecloader.h utilsfuncs.cpp utilsfuncswin.cpp jruby.res
  84. g++ $(CXXFLAGS) -DJRUBYW -mwindows $^ -s -o $@ $(LDLIBSOPTIONS)
  85.  
  86. install:
  87. @if [ ! -f ./jruby ]; then echo "Please run 'make' first."; exit 1; fi
  88. @if [ x$(BINDIR) = xnotspecified/bin ]; then echo "Please define where to install by passing PREFIX=<jruby-home>."; exit 1; fi
  89. @if [ ! -w $(BINDIR) ]; then echo "'$(BINDIR)' does not exist or cannot write to '$(BINDIR)'."; exit 1; fi
  90. @if [ -f $(BINDIR)/jruby -a ! -w $(BINDIR)/jruby ]; then echo "Cannot write to '$(BINDIR)/jruby'."; exit 1; fi
  91. cp ./jruby $(BINDIR)/jruby
  92. @if [ x$(PREFIX) = xnotspecified ]; then echo "Please define where to install by passing PREFIX=<jruby-home>."; exit 1; fi
  93. @if [ ! -w $(INSTALLDIR) ]; then \
  94. if [ ! -w $(OLDINSTALLDIR) ]; then \
  95. echo "Neither '$(INSTALLDIR)' nor '$(OLDINSTALLDIR)' exist and are writable"; exit 1; \
  96. else \
  97. echo "cp ./lib/rubygems/defaults/jruby_native.rb $(OLDINSTALLDIR)"; \
  98. cp ./lib/rubygems/defaults/jruby_native.rb $(OLDINSTALLDIR); \
  99. fi; \
  100. else \
  101. echo "cp ./lib/rubygems/defaults/jruby_native.rb $(INSTALLDIR)"; \
  102. cp ./lib/rubygems/defaults/jruby_native.rb $(INSTALLDIR); \
  103. fi;
  104.  
  105. test:
  106. $(RAKE)
  107.  
  108. # Universal binary on OSX
  109. FAT_ARCHES=i386 ppc x86_64
  110.  
  111. fat: $(FAT_ARCHES)
  112. lipo -create $(foreach arch,$(FAT_ARCHES),build/unix/Darwin-$(arch)/jruby-launcher) -output jruby
  113. $(RAKE)
  114.  
  115. $(FAT_ARCHES):
  116. $(MAKE) -f $(SUB_CONFMK) CND_PLATFORM=Darwin-$@ CFLAGS="-arch $@" build/unix/Darwin-$@/jruby-launcher
  117.  
  118. clean: .clean-post
  119.  
  120. .clean-pre:
  121. -rm -rf build/*
  122.  
  123. .clean-post: .clean-impl
  124. rm -f *.exe *.res
  125.  
  126. clobber: .clobber-post
  127.  
  128. .clobber-pre:
  129.  
  130. .clobber-post: .clobber-impl
  131.  
  132. all: .all-post
  133.  
  134. .all-pre:
  135.  
  136. .all-post: .all-impl
  137.  
  138. help: .help-post
  139.  
  140. .help-pre:
  141.  
  142. .help-post: .help-impl
  143.  
  144. # Use the manually-maintained inc/*.mk makefiles.
  145. # Pass NETBEANS=true on the command-line to use NB's generated
  146. # nbproject/*.mk
  147.  
  148. ifdef NETBEANS
  149. SUB_IMPLMK=nbproject/Makefile-impl.mk
  150. else
  151. SUB_IMPLMK=inc/Makefile-impl.mk
  152. SUB_CONFMK=inc/Makefile-rules.mk
  153. endif
  154.  
  155. # include project implementation makefile
  156. include $(SUB_IMPLMK)
  157.  
  158. # Pick conf based on OS. for mingw64, must manually override for now.
  159. ifeq ($(OS),Windows_NT)
  160. CONF=mingw
  161. else
  162. CONF=unix
  163. endif
  164.  
  165. ifdef NETBEANS
  166. SUB_CONFMK=nbproject/Makefile-${CONF}.mk
  167. endif
  168.  
  169. make
  170. make -f inc/Makefile-rules.mk CONF=unix SUBPROJECTS= .build-conf
  171. make[1]: Вход в каталог `/home/tester/.gem/jruby/1.8/gems/jruby-launcher-1.0.12-java'
  172. make -f inc/Makefile-rules.mk jruby
  173. make[2]: Вход в каталог `/home/tester/.gem/jruby/1.8/gems/jruby-launcher-1.0.12-java'
  174. mkdir -p build/unix/Linux
  175. rm -f build/unix/Linux/argparser.o.d
  176. g++ -O2 -Wall -I/opt/java/include -c argparser.cpp -MMD -MP -MF build/unix/Linux/argparser.o.d -o build/unix/Linux/argparser.o
  177. mkdir -p build/unix/Linux
  178. rm -f build/unix/Linux/utilsfuncs.o.d
  179. g++ -O2 -Wall -I/opt/java/include -c utilsfuncs.cpp -MMD -MP -MF build/unix/Linux/utilsfuncs.o.d -o build/unix/Linux/utilsfuncs.o
  180. utilsfuncs.cpp: В функции «std::string findOnPath(const char*)»:
  181. utilsfuncs.cpp:125:12: предупреждение: неиспользуемая переменная «found» [-Wunused-variable]
  182. mkdir -p build/unix/Linux
  183. rm -f build/unix/Linux/ng.o.d
  184. gcc -O2 -Wall -I/opt/java/include -c ng.c -MMD -MP -MF build/unix/Linux/ng.o.d -o build/unix/Linux/ng.o
  185. mkdir -p build/unix/Linux
  186. rm -f build/unix/Linux/strlcpy.o.d
  187. gcc -O2 -Wall -I/opt/java/include -c strlcpy.c -MMD -MP -MF build/unix/Linux/strlcpy.o.d -o build/unix/Linux/strlcpy.o
  188. mkdir -p build/unix/Linux
  189. rm -f build/unix/Linux/jrubyexe.o.d
  190. g++ -O2 -Wall -I/opt/java/include -c jrubyexe.cpp -MMD -MP -MF build/unix/Linux/jrubyexe.o.d -o build/unix/Linux/jrubyexe.o
  191. mkdir -p build/unix/Linux
  192. rm -f build/unix/Linux/unixlauncher.o.d
  193. g++ -O2 -Wall -I/opt/java/include -c unixlauncher.cpp -MMD -MP -MF build/unix/Linux/unixlauncher.o.d -o build/unix/Linux/unixlauncher.o
  194. g++ -O2 -Wall -I/opt/java/include -o build/unix/Linux/jruby-launcher build/unix/Linux/argparser.o build/unix/Linux/utilsfuncs.o build/unix/Linux/ng.o build/unix/Linux/strlcpy.o build/unix/Linux/jrubyexe.o build/unix/Linux/unixlauncher.o -lstdc++
  195. cp build/unix/Linux/jruby-launcher jruby
  196. make[2]: Выход из каталога `/home/tester/.gem/jruby/1.8/gems/jruby-launcher-1.0.12-java'
  197. make[1]: Выход из каталога `/home/tester/.gem/jruby/1.8/gems/jruby-launcher-1.0.12-java'
  198. /home/tester/.rvm/rubies/jruby-1.6.7/bin/jruby -S rake
  199. Gem::LoadError: Could not find rake (>= 0) amongst []
  200. to_specs at /home/tester/.rvm/rubies/jruby-1.6.7/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:247
  201. to_spec at /home/tester/.rvm/rubies/jruby-1.6.7/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:256
  202. gem at /home/tester/.rvm/rubies/jruby-1.6.7/lib/ruby/site_ruby/1.8/rubygems.rb:1208
  203. (root) at /home/tester/.rvm/rubies/jruby-1.6.7/bin/rake:18
  204. make: *** [test] Ошибка 1
  205.  
  206.  
  207. Gem files will remain installed in /home/tester/.gem/jruby/1.8/gems/jruby-launcher-1.0.12-java for inspection.
  208. Results logged to /home/tester/.gem/jruby/1.8/gems/jruby-launcher-1.0.12-java/./gem_make.out