Created
June 20, 2012 15:49
-
-
Save nurey/2960589 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rvm install jruby-1.7.0.preview1 | |
jruby-1.7.0.preview1 - #fetching | |
jruby-1.7.0.preview1 - #extracted to /Users/ilia/.rvm/src/jruby-1.7.0.preview1 (already extracted) | |
Building Nailgun | |
jruby-1.7.0.preview1 - #installing to /Users/ilia/.rvm/rubies/jruby-1.7.0.preview1 | |
jruby-1.7.0.preview1 - #importing default gemsets (/Users/ilia/.rvm/gemsets/) | |
Building native extensions. This could take a while... | |
ERROR: Error installing jruby-launcher: | |
ERROR: Failed to build gem native extension. | |
/Users/ilia/.rvm/rubies/jruby-1.7.0.preview1/bin/jruby extconf.rb | |
# These line gets substituted with the actual Config::CONFIG items location by extconf.rb | |
PREFIX = /Users/ilia/.rvm/rubies/jruby-1.7.0.preview1 | |
BINDIR = /Users/ilia/.rvm/rubies/jruby-1.7.0.preview1/bin | |
INSTALLDIR = $(PREFIX)/lib/ruby/shared/rubygems/defaults | |
OLDINSTALLDIR = $(PREFIX)/lib/ruby/site_ruby/1.8/rubygems/defaults | |
ifeq (true,$(shell test -x $(BINDIR)/jruby && echo true)) | |
RAKE=$(BINDIR)/jruby -S rake | |
else | |
RAKE=rake | |
endif | |
build: .build-post | |
.build-pre: | |
.build-post: .build-impl build-exe test | |
build-exe: | |
@if [ "$(findstring mingw, $(CONF))" ]; then \ | |
${MAKE} -f ${SUB_CONFMK} SUBPROJECTS=${SUBPROJECTS} jruby.exe jrubyw.exe; \ | |
if [ -d ../jruby ]; then cp jruby.exe jrubyw.exe jruby.dll ../jruby/bin/; fi; \ | |
if [ -d D:/work/jruby-dev/jruby ]; then cp jruby.exe jrubyw.exe jruby.dll D:/work/jruby-dev/jruby/bin/; fi; \ | |
fi | |
jruby.res: resources/jruby.rc | |
windres $^ -O coff -o $@ | |
jruby.exe: jrubyexe.cpp nbexecloader.h utilsfuncs.cpp utilsfuncswin.cpp jruby.res | |
g++ $(CXXFLAGS) $^ -s -o $@ $(LDLIBSOPTIONS) | |
jrubyw.exe: jrubyexe.cpp nbexecloader.h utilsfuncs.cpp utilsfuncswin.cpp jruby.res | |
g++ $(CXXFLAGS) -DJRUBYW -mwindows $^ -s -o $@ $(LDLIBSOPTIONS) | |
install: | |
@if [ ! -f ./jruby ]; then echo "Please run 'make' first."; exit 1; fi | |
@if [ x$(BINDIR) = xnotspecified/bin ]; then echo "Please define where to install by passing PREFIX=<jruby-home>."; exit 1; fi | |
@if [ ! -w $(BINDIR) ]; then echo "'$(BINDIR)' does not exist or cannot write to '$(BINDIR)'."; exit 1; fi | |
@if [ -f $(BINDIR)/jruby -a ! -w $(BINDIR)/jruby ]; then echo "Cannot write to '$(BINDIR)/jruby'."; exit 1; fi | |
cp ./jruby $(BINDIR)/jruby | |
@if [ x$(PREFIX) = xnotspecified ]; then echo "Please define where to install by passing PREFIX=<jruby-home>."; exit 1; fi | |
@if [ ! -w $(INSTALLDIR) ]; then \ | |
if [ ! -w $(OLDINSTALLDIR) ]; then \ | |
echo "Neither '$(INSTALLDIR)' nor '$(OLDINSTALLDIR)' exist and are writable"; exit 1; \ | |
else \ | |
echo "cp ./lib/rubygems/defaults/jruby_native.rb $(OLDINSTALLDIR)"; \ | |
cp ./lib/rubygems/defaults/jruby_native.rb $(OLDINSTALLDIR); \ | |
fi; \ | |
else \ | |
echo "cp ./lib/rubygems/defaults/jruby_native.rb $(INSTALLDIR)"; \ | |
cp ./lib/rubygems/defaults/jruby_native.rb $(INSTALLDIR); \ | |
fi; | |
test: | |
$(RAKE) | |
# Universal binary on OSX | |
FAT_ARCHES=i386 ppc x86_64 | |
fat: $(FAT_ARCHES) | |
lipo -create $(foreach arch,$(FAT_ARCHES),build/unix/Darwin-$(arch)/jruby-launcher) -output jruby | |
$(RAKE) | |
$(FAT_ARCHES): | |
$(MAKE) -f $(SUB_CONFMK) CND_PLATFORM=Darwin-$@ CFLAGS="-arch $@" build/unix/Darwin-$@/jruby-launcher | |
clean: .clean-post | |
.clean-pre: | |
-rm -rf build/* | |
.clean-post: .clean-impl | |
rm -f *.exe *.res | |
clobber: .clobber-post | |
.clobber-pre: | |
.clobber-post: .clobber-impl | |
all: .all-post | |
.all-pre: | |
.all-post: .all-impl | |
help: .help-post | |
.help-pre: | |
.help-post: .help-impl | |
# Use the manually-maintained inc/*.mk makefiles. | |
# Pass NETBEANS=true on the command-line to use NB's generated | |
# nbproject/*.mk | |
ifdef NETBEANS | |
SUB_IMPLMK=nbproject/Makefile-impl.mk | |
else | |
SUB_IMPLMK=inc/Makefile-impl.mk | |
SUB_CONFMK=inc/Makefile-rules.mk | |
endif | |
# include project implementation makefile | |
include $(SUB_IMPLMK) | |
# Pick conf based on OS. for mingw64, must manually override for now. | |
ifeq ($(OS),Windows_NT) | |
CONF=mingw | |
else | |
CONF=unix | |
endif | |
ifdef NETBEANS | |
SUB_CONFMK=nbproject/Makefile-${CONF}.mk | |
endif | |
make | |
make -f inc/Makefile-rules.mk CONF=unix SUBPROJECTS= .build-conf | |
make -f inc/Makefile-rules.mk jruby | |
mkdir -p build/unix/Darwin | |
rm -f build/unix/Darwin/argparser.o.d | |
g++ -O2 -Wall -c argparser.cpp -MMD -MP -MF build/unix/Darwin/argparser.o.d -o build/unix/Darwin/argparser.o | |
mkdir -p build/unix/Darwin | |
rm -f build/unix/Darwin/utilsfuncs.o.d | |
g++ -O2 -Wall -c utilsfuncs.cpp -MMD -MP -MF build/unix/Darwin/utilsfuncs.o.d -o build/unix/Darwin/utilsfuncs.o | |
utilsfuncs.cpp: In function ‘std::string findOnPath(const char*)’: | |
utilsfuncs.cpp:126: warning: unused variable ‘found’ | |
mkdir -p build/unix/Darwin | |
rm -f build/unix/Darwin/ng.o.d | |
gcc -O2 -Wall -c ng.c -MMD -MP -MF build/unix/Darwin/ng.o.d -o build/unix/Darwin/ng.o | |
ng.c: In function ‘nailgunClientMain’: | |
ng.c:642: warning: no return statement in function returning non-void | |
mkdir -p build/unix/Darwin | |
rm -f build/unix/Darwin/strlcpy.o.d | |
gcc -O2 -Wall -c strlcpy.c -MMD -MP -MF build/unix/Darwin/strlcpy.o.d -o build/unix/Darwin/strlcpy.o | |
mkdir -p build/unix/Darwin | |
rm -f build/unix/Darwin/jrubyexe.o.d | |
g++ -O2 -Wall -c jrubyexe.cpp -MMD -MP -MF build/unix/Darwin/jrubyexe.o.d -o build/unix/Darwin/jrubyexe.o | |
mkdir -p build/unix/Darwin | |
rm -f build/unix/Darwin/unixlauncher.o.d | |
g++ -O2 -Wall -c unixlauncher.cpp -MMD -MP -MF build/unix/Darwin/unixlauncher.o.d -o build/unix/Darwin/unixlauncher.o | |
g++ -O2 -Wall -o build/unix/Darwin/jruby-launcher build/unix/Darwin/argparser.o build/unix/Darwin/utilsfuncs.o build/unix/Darwin/ng.o build/unix/Darwin/strlcpy.o build/unix/Darwin/jrubyexe.o build/unix/Darwin/unixlauncher.o -lstdc++ | |
cp build/unix/Darwin/jruby-launcher jruby | |
/Users/ilia/.rvm/rubies/jruby-1.7.0.preview1/bin/jruby -S rake | |
Gem::LoadError: Could not find rake (>= 0) amongst [bouncy-castle-java-1.5.0146.1, bundler-1.1.4, jruby-launcher-1.0.14-java] | |
to_specs at /Users/ilia/.rvm/rubies/jruby-1.7.0.preview1/lib/ruby/shared/rubygems/dependency.rb:247 | |
to_spec at /Users/ilia/.rvm/rubies/jruby-1.7.0.preview1/lib/ruby/shared/rubygems/dependency.rb:256 | |
gem at /Users/ilia/.rvm/rubies/jruby-1.7.0.preview1/lib/ruby/shared/rubygems.rb:1231 | |
(root) at /Users/ilia/.rvm/rubies/jruby-1.7.0.preview1/bin/rake:22 | |
make: *** [test] Error 1 | |
Gem files will remain installed in /Users/ilia/.rvm/gems/jruby-1.7.0.preview1/gems/jruby-launcher-1.0.14-java for inspection. | |
Results logged to /Users/ilia/.rvm/gems/jruby-1.7.0.preview1/gems/jruby-launcher-1.0.14-java/./gem_make.out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment