Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2012
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 7.52 KB | None | 0 0
  1. rvm install jruby
  2. jruby-1.6.7 - #fetching
  3. jruby-1.6.7 - #downloading jruby-bin-1.6.7, 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.8M  100 14.8M    0     0   564k      0  0:00:26  0:00:26 --:--:--  683k
  7. jruby-1.6.7 - #extracting jruby-bin-1.6.7 to /home/tester/.rvm/src/jruby-1.6.7
  8. jruby-1.6.7 - #extracted to /home/tester/.rvm/src/jruby-1.6.7
  9. Building Nailgun
  10. jruby-1.6.7 - #installing to /home/tester/.rvm/rubies/jruby-1.6.7
  11. jruby-1.6.7 - #importing default gemsets (/home/tester/.rvm/gemsets/)
  12. ^[[A^[[A^[[A^[[A^[[A^[[A^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[BCopying across included gems
  13. Fetching: jruby-launcher-1.0.12-java.gem (100%)
  14. WARNING:  You don't have /home/tester/.gem/jruby/1.8/bin in your PATH,
  15.          gem executables will not run.
  16. Building native extensions.  This could take a while...
  17. ERROR:  Error installing jruby-launcher:
  18.        ERROR: Failed to build gem native extension.
  19.  
  20.        /home/tester/.rvm/rubies/jruby-1.6.7/bin/jruby extconf.rb
  21. # These line gets substituted with the actual Config::CONFIG items location by extconf.rb
  22. PREFIX = /home/tester/.rvm/rubies/jruby-1.6.7
  23. BINDIR = /home/tester/.rvm/rubies/jruby-1.6.7/bin
  24. INSTALLDIR = $(PREFIX)/lib/ruby/shared/rubygems/defaults
  25. OLDINSTALLDIR = $(PREFIX)/lib/ruby/site_ruby/1.8/rubygems/defaults
  26.  
  27. ifeq (true,$(shell test -x $(BINDIR)/jruby && echo true))
  28. RAKE=$(BINDIR)/jruby -S rake
  29. else
  30. RAKE=rake
  31. endif
  32.  
  33. build: .build-post
  34.  
  35. .build-pre:
  36.  
  37. .build-post: .build-impl build-exe test
  38.  
  39. build-exe:
  40.        @if [ "$(findstring mingw, $(CONF))" ]; then                                                                                    \
  41.        ${MAKE} -f ${SUB_CONFMK} SUBPROJECTS=${SUBPROJECTS} jruby.exe jrubyw.exe;                                       \
  42.        if [ -d ../jruby ]; then cp jruby.exe jrubyw.exe jruby.dll ../jruby/bin/; fi;                                   \
  43.        if [ -d D:/work/jruby-dev/jruby ]; then cp jruby.exe jrubyw.exe jruby.dll D:/work/jruby-dev/jruby/bin/; fi;     \
  44.        fi
  45.  
  46. jruby.res: resources/jruby.rc
  47.        windres $^ -O coff -o $@
  48.  
  49. jruby.exe: jrubyexe.cpp nbexecloader.h utilsfuncs.cpp utilsfuncswin.cpp jruby.res
  50.        g++ $(CXXFLAGS) $^ -s -o $@ $(LDLIBSOPTIONS)
  51.  
  52. jrubyw.exe: jrubyexe.cpp nbexecloader.h utilsfuncs.cpp utilsfuncswin.cpp jruby.res
  53.        g++ $(CXXFLAGS) -DJRUBYW -mwindows $^ -s -o $@ $(LDLIBSOPTIONS)
  54.  
  55. install:
  56.        @if [ ! -f ./jruby ]; then echo "Please run 'make' first."; exit 1; fi
  57.        @if [ x$(BINDIR) = xnotspecified/bin ]; then echo "Please define where to install by passing PREFIX=<jruby-home>."; exit 1; fi
  58.        @if [ ! -w $(BINDIR) ]; then echo "'$(BINDIR)' does not exist or cannot write to '$(BINDIR)'."; exit 1; fi
  59.        @if [ -f $(BINDIR)/jruby -a ! -w $(BINDIR)/jruby ]; then echo "Cannot write to '$(BINDIR)/jruby'."; exit 1; fi
  60.        cp ./jruby $(BINDIR)/jruby
  61.        @if [ x$(PREFIX) = xnotspecified ]; then echo "Please define where to install by passing PREFIX=<jruby-home>."; exit 1; fi
  62.        @if [ ! -w $(INSTALLDIR) ]; then \
  63.                if [ ! -w $(OLDINSTALLDIR) ]; then \
  64.                        echo "Neither '$(INSTALLDIR)' nor '$(OLDINSTALLDIR)' exist and are writable"; exit 1; \
  65.                else \
  66.                        echo "cp ./lib/rubygems/defaults/jruby_native.rb $(OLDINSTALLDIR)"; \
  67.                        cp ./lib/rubygems/defaults/jruby_native.rb $(OLDINSTALLDIR); \
  68.                fi; \
  69.        else \
  70.                echo "cp ./lib/rubygems/defaults/jruby_native.rb $(INSTALLDIR)"; \
  71.                cp ./lib/rubygems/defaults/jruby_native.rb $(INSTALLDIR); \
  72.        fi;
  73.  
  74. test:
  75.        $(RAKE)
  76.  
  77. # Universal binary on OSX
  78. FAT_ARCHES=i386 ppc x86_64
  79.  
  80. fat: $(FAT_ARCHES)
  81.        lipo -create $(foreach arch,$(FAT_ARCHES),build/unix/Darwin-$(arch)/jruby-launcher) -output jruby
  82.        $(RAKE)
  83.  
  84. $(FAT_ARCHES):
  85.        $(MAKE) -f $(SUB_CONFMK) CND_PLATFORM=Darwin-$@ CFLAGS="-arch $@" build/unix/Darwin-$@/jruby-launcher
  86.  
  87. clean: .clean-post
  88.  
  89. .clean-pre:
  90.        -rm -rf build/*
  91.  
  92. .clean-post: .clean-impl
  93.        rm -f *.exe *.res
  94.  
  95. clobber: .clobber-post
  96.  
  97. .clobber-pre:
  98.  
  99. .clobber-post: .clobber-impl
  100.  
  101. all: .all-post
  102.  
  103. .all-pre:
  104.  
  105. .all-post: .all-impl
  106.  
  107. help: .help-post
  108.  
  109. .help-pre:
  110.  
  111. .help-post: .help-impl
  112.  
  113. # Use the manually-maintained inc/*.mk makefiles.
  114. # Pass NETBEANS=true on the command-line to use NB's generated
  115. # nbproject/*.mk
  116.  
  117. ifdef NETBEANS
  118. SUB_IMPLMK=nbproject/Makefile-impl.mk
  119. else
  120. SUB_IMPLMK=inc/Makefile-impl.mk
  121. SUB_CONFMK=inc/Makefile-rules.mk
  122. endif
  123.  
  124. # include project implementation makefile
  125. include $(SUB_IMPLMK)
  126.  
  127. # Pick conf based on OS. for mingw64, must manually override for now.
  128. ifeq ($(OS),Windows_NT)
  129. CONF=mingw
  130. else
  131. CONF=unix
  132. endif
  133.  
  134. ifdef NETBEANS
  135. SUB_CONFMK=nbproject/Makefile-${CONF}.mk
  136. endif
  137.  
  138. make
  139. make -f inc/Makefile-rules.mk CONF=unix SUBPROJECTS= .build-conf
  140. make[1]: Вход в каталог `/home/tester/.gem/jruby/1.8/gems/jruby-launcher-1.0.12-java'
  141. make -f inc/Makefile-rules.mk jruby
  142. make[2]: Вход в каталог `/home/tester/.gem/jruby/1.8/gems/jruby-launcher-1.0.12-java'
  143. mkdir -p build/unix/Linux
  144. rm -f build/unix/Linux/argparser.o.d
  145. 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
  146. mkdir -p build/unix/Linux
  147. rm -f build/unix/Linux/utilsfuncs.o.d
  148. 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
  149. utilsfuncs.cpp: В функции «std::string findOnPath(const char*)»:
  150. utilsfuncs.cpp:125:12: предупреждение: неиспользуемая переменная «found» [-Wunused-variable]
  151. mkdir -p build/unix/Linux
  152. rm -f build/unix/Linux/ng.o.d
  153. 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
  154. mkdir -p build/unix/Linux
  155. rm -f build/unix/Linux/strlcpy.o.d
  156. 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
  157. mkdir -p build/unix/Linux
  158. rm -f build/unix/Linux/jrubyexe.o.d
  159. 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
  160. mkdir -p build/unix/Linux
  161. rm -f build/unix/Linux/unixlauncher.o.d
  162. 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
  163. 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++
  164. cp build/unix/Linux/jruby-launcher jruby
  165. make[2]: Выход из каталога `/home/tester/.gem/jruby/1.8/gems/jruby-launcher-1.0.12-java'
  166. make[1]: Выход из каталога `/home/tester/.gem/jruby/1.8/gems/jruby-launcher-1.0.12-java'
  167. /home/tester/.rvm/rubies/jruby-1.6.7/bin/jruby -S rake
  168. Gem::LoadError: Could not find rake (>= 0) amongst []
  169.   to_specs at /home/tester/.rvm/rubies/jruby-1.6.7/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:247
  170.    to_spec at /home/tester/.rvm/rubies/jruby-1.6.7/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:256
  171.        gem at /home/tester/.rvm/rubies/jruby-1.6.7/lib/ruby/site_ruby/1.8/rubygems.rb:1208
  172.     (root) at /home/tester/.rvm/rubies/jruby-1.6.7/bin/rake:18
  173. make: *** [test] Ошибка 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement