Advertisement
Javafant

Untitled

May 27th, 2012
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.72 KB | None | 0 0
  1. [javafant@cassiopeia java]$ rvm install jruby -C -Djruby.default.ruby.version=1.9
  2. jruby-1.6.7.2 - #fetching
  3. jruby-1.6.7.2 - #downloading jruby-bin-1.6.7.2, this may take a while depending on your connection...
  4. % Total % Received % Xferd Average Speed Time Time Time Current
  5. Dload Upload Total Spent Left Speed
  6. 100 14.9M 100 14.9M 0 0 92160 0 0:02:49 0:02:49 --:--:-- 128k
  7. jruby-1.6.7.2 - #extracting jruby-bin-1.6.7.2 to /home/javafant/.rvm/src/jruby-1.6.7.2
  8. jruby-1.6.7.2 - #extracted to /home/javafant/.rvm/src/jruby-1.6.7.2
  9. jruby-1.6.7.2 - #ant jar
  10. Error running 'ant jar', please read /home/javafant/.rvm/log/jruby-1.6.7.2/ant.jar.log
  11. jruby-1.6.7.2 - #ant jar -Djruby.default.ruby.version=1.9
  12. Error running 'ant jar -Djruby.default.ruby.version=1.9', please read /home/javafant/.rvm/log/jruby-1.6.7.2/ant.jar.flags.log
  13. Building Nailgun
  14. jruby-1.6.7.2 - #installing to /home/javafant/.rvm/rubies/jruby-1.6.7.2
  15. jruby-1.6.7.2 - #importing default gemsets (/home/javafant/.rvm/gemsets/)
  16. Copying across included gems
  17. Fetching: jruby-launcher-1.0.14-java.gem (100%)
  18. Building native extensions. This could take a while...
  19. ERROR: Error installing jruby-launcher:
  20. ERROR: Failed to build gem native extension.
  21.  
  22. /home/javafant/.rvm/rubies/jruby-1.6.7.2/bin/jruby extconf.rb
  23. # These line gets substituted with the actual Config::CONFIG items location by extconf.rb
  24. PREFIX = /home/javafant/.rvm/rubies/jruby-1.6.7.2
  25. BINDIR = /home/javafant/.rvm/rubies/jruby-1.6.7.2/bin
  26. INSTALLDIR = $(PREFIX)/lib/ruby/shared/rubygems/defaults
  27. OLDINSTALLDIR = $(PREFIX)/lib/ruby/site_ruby/1.8/rubygems/defaults
  28.  
  29. ifeq (true,$(shell test -x $(BINDIR)/jruby && echo true))
  30. RAKE=$(BINDIR)/jruby -S rake
  31. else
  32. RAKE=rake
  33. endif
  34.  
  35. build: .build-post
  36.  
  37. .build-pre:
  38.  
  39. .build-post: .build-impl build-exe test
  40.  
  41. build-exe:
  42. @if [ "$(findstring mingw, $(CONF))" ]; then \
  43. ${MAKE} -f ${SUB_CONFMK} SUBPROJECTS=${SUBPROJECTS} jruby.exe jrubyw.exe; \
  44. if [ -d ../jruby ]; then cp jruby.exe jrubyw.exe jruby.dll ../jruby/bin/; fi; \
  45. if [ -d D:/work/jruby-dev/jruby ]; then cp jruby.exe jrubyw.exe jruby.dll D:/work/jruby-dev/jruby/bin/; fi; \
  46. fi
  47.  
  48. jruby.res: resources/jruby.rc
  49. windres $^ -O coff -o $@
  50.  
  51. jruby.exe: jrubyexe.cpp nbexecloader.h utilsfuncs.cpp utilsfuncswin.cpp jruby.res
  52. g++ $(CXXFLAGS) $^ -s -o $@ $(LDLIBSOPTIONS)
  53.  
  54. jrubyw.exe: jrubyexe.cpp nbexecloader.h utilsfuncs.cpp utilsfuncswin.cpp jruby.res
  55. g++ $(CXXFLAGS) -DJRUBYW -mwindows $^ -s -o $@ $(LDLIBSOPTIONS)
  56.  
  57. install:
  58. @if [ ! -f ./jruby ]; then echo "Please run 'make' first."; exit 1; fi
  59. @if [ x$(BINDIR) = xnotspecified/bin ]; then echo "Please define where to install by passing PREFIX=<jruby-home>."; exit 1; fi
  60. @if [ ! -w $(BINDIR) ]; then echo "'$(BINDIR)' does not exist or cannot write to '$(BINDIR)'."; exit 1; fi
  61. @if [ -f $(BINDIR)/jruby -a ! -w $(BINDIR)/jruby ]; then echo "Cannot write to '$(BINDIR)/jruby'."; exit 1; fi
  62. cp ./jruby $(BINDIR)/jruby
  63. @if [ x$(PREFIX) = xnotspecified ]; then echo "Please define where to install by passing PREFIX=<jruby-home>."; exit 1; fi
  64. @if [ ! -w $(INSTALLDIR) ]; then \
  65. if [ ! -w $(OLDINSTALLDIR) ]; then \
  66. echo "Neither '$(INSTALLDIR)' nor '$(OLDINSTALLDIR)' exist and are writable"; exit 1; \
  67. else \
  68. echo "cp ./lib/rubygems/defaults/jruby_native.rb $(OLDINSTALLDIR)"; \
  69. cp ./lib/rubygems/defaults/jruby_native.rb $(OLDINSTALLDIR); \
  70. fi; \
  71. else \
  72. echo "cp ./lib/rubygems/defaults/jruby_native.rb $(INSTALLDIR)"; \
  73. cp ./lib/rubygems/defaults/jruby_native.rb $(INSTALLDIR); \
  74. fi;
  75.  
  76. test:
  77. $(RAKE)
  78.  
  79. # Universal binary on OSX
  80. FAT_ARCHES=i386 ppc x86_64
  81.  
  82. fat: $(FAT_ARCHES)
  83. lipo -create $(foreach arch,$(FAT_ARCHES),build/unix/Darwin-$(arch)/jruby-launcher) -output jruby
  84. $(RAKE)
  85.  
  86. $(FAT_ARCHES):
  87. $(MAKE) -f $(SUB_CONFMK) CND_PLATFORM=Darwin-$@ CFLAGS="-arch $@" build/unix/Darwin-$@/jruby-launcher
  88.  
  89. clean: .clean-post
  90.  
  91. .clean-pre:
  92. -rm -rf build/*
  93.  
  94. .clean-post: .clean-impl
  95. rm -f *.exe *.res
  96.  
  97. clobber: .clobber-post
  98.  
  99. .clobber-pre:
  100.  
  101. .clobber-post: .clobber-impl
  102.  
  103. all: .all-post
  104.  
  105. .all-pre:
  106.  
  107. .all-post: .all-impl
  108.  
  109. help: .help-post
  110.  
  111. .help-pre:
  112.  
  113. .help-post: .help-impl
  114.  
  115. # Use the manually-maintained inc/*.mk makefiles.
  116. # Pass NETBEANS=true on the command-line to use NB's generated
  117. # nbproject/*.mk
  118.  
  119. ifdef NETBEANS
  120. SUB_IMPLMK=nbproject/Makefile-impl.mk
  121. else
  122. SUB_IMPLMK=inc/Makefile-impl.mk
  123. SUB_CONFMK=inc/Makefile-rules.mk
  124. endif
  125.  
  126. # include project implementation makefile
  127. include $(SUB_IMPLMK)
  128.  
  129. # Pick conf based on OS. for mingw64, must manually override for now.
  130. ifeq ($(OS),Windows_NT)
  131. CONF=mingw
  132. else
  133. CONF=unix
  134. endif
  135.  
  136. ifdef NETBEANS
  137. SUB_CONFMK=nbproject/Makefile-${CONF}.mk
  138. endif
  139.  
  140. make
  141. make -f inc/Makefile-rules.mk CONF=unix SUBPROJECTS= .build-conf
  142. make[1]: Entering directory `/home/javafant/.gem/jruby/1.8/gems/jruby-launcher-1.0.14-java'
  143. make -f inc/Makefile-rules.mk jruby
  144. make[2]: Entering directory `/home/javafant/.gem/jruby/1.8/gems/jruby-launcher-1.0.14-java'
  145. mkdir -p build/unix/Linux
  146. rm -f build/unix/Linux/argparser.o.d
  147. g++ -O2 -Wall -c argparser.cpp -MMD -MP -MF build/unix/Linux/argparser.o.d -o build/unix/Linux/argparser.o
  148. mkdir -p build/unix/Linux
  149. rm -f build/unix/Linux/utilsfuncs.o.d
  150. g++ -O2 -Wall -c utilsfuncs.cpp -MMD -MP -MF build/unix/Linux/utilsfuncs.o.d -o build/unix/Linux/utilsfuncs.o
  151. utilsfuncs.cpp: In function ‘std::string findOnPath(const char*)’:
  152. utilsfuncs.cpp:126: warning: unused variable ‘found’
  153. mkdir -p build/unix/Linux
  154. rm -f build/unix/Linux/ng.o.d
  155. gcc -O2 -Wall -c ng.c -MMD -MP -MF build/unix/Linux/ng.o.d -o build/unix/Linux/ng.o
  156. mkdir -p build/unix/Linux
  157. rm -f build/unix/Linux/strlcpy.o.d
  158. gcc -O2 -Wall -c strlcpy.c -MMD -MP -MF build/unix/Linux/strlcpy.o.d -o build/unix/Linux/strlcpy.o
  159. mkdir -p build/unix/Linux
  160. rm -f build/unix/Linux/jrubyexe.o.d
  161. g++ -O2 -Wall -c jrubyexe.cpp -MMD -MP -MF build/unix/Linux/jrubyexe.o.d -o build/unix/Linux/jrubyexe.o
  162. mkdir -p build/unix/Linux
  163. rm -f build/unix/Linux/unixlauncher.o.d
  164. g++ -O2 -Wall -c unixlauncher.cpp -MMD -MP -MF build/unix/Linux/unixlauncher.o.d -o build/unix/Linux/unixlauncher.o
  165. g++ -O2 -Wall -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++
  166. cp build/unix/Linux/jruby-launcher jruby
  167. make[2]: Leaving directory `/home/javafant/.gem/jruby/1.8/gems/jruby-launcher-1.0.14-java'
  168. make[1]: Leaving directory `/home/javafant/.gem/jruby/1.8/gems/jruby-launcher-1.0.14-java'
  169. /home/javafant/.rvm/rubies/jruby-1.6.7.2/bin/jruby -S rake
  170. Gem::LoadError: Could not find rake (>= 0) amongst []
  171. to_specs at /home/javafant/.rvm/rubies/jruby-1.6.7.2/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:247
  172. to_spec at /home/javafant/.rvm/rubies/jruby-1.6.7.2/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:256
  173. gem at /home/javafant/.rvm/rubies/jruby-1.6.7.2/lib/ruby/site_ruby/1.8/rubygems.rb:1231
  174. (root) at /home/javafant/.rvm/rubies/jruby-1.6.7.2/bin/rake:22
  175. make: *** [test] Error 1
  176.  
  177.  
  178. Gem files will remain installed in /home/javafant/.gem/jruby/1.8/gems/jruby-launcher-1.0.14-java for inspection.
  179. Results logged to /home/javafant/.gem/jruby/1.8/gems/jruby-launcher-1.0.14-java/./gem_make.out
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement