Skip to content

Instantly share code, notes, and snippets.

@HLFH
Created December 23, 2013 17:50
Show Gist options
  • Save HLFH/8101564 to your computer and use it in GitHub Desktop.
Save HLFH/8101564 to your computer and use it in GitHub Desktop.
Lubuntu Server ARM on CubieTruck
root@cubietruck:~# ruby test.rb
{"DESTDIR"=>"",
"MAJOR"=>"2",
"MINOR"=>"0",
"TEENY"=>"0",
"PATCHLEVEL"=>"353",
"INSTALL"=>"/usr/bin/install -c",
"EXEEXT"=>"",
"prefix"=>"/usr/local",
"ruby_install_name"=>"ruby",
"RUBY_INSTALL_NAME"=>"ruby",
"RUBY_SO_NAME"=>"ruby",
"exec"=>"exec",
"ruby_pc"=>"ruby-2.0.pc",
"PACKAGE"=>"ruby",
"BUILTIN_TRANSSRCS"=>" newline.c",
"USE_RUBYGEMS"=>"YES",
"MANTYPE"=>"doc",
"NROFF"=>"/usr/bin/nroff",
"vendorarchhdrdir"=>
"/usr/local/include/ruby-2.0.0/vendor_ruby/armv7l-linux-eabihf",
"sitearchhdrdir"=>
"/usr/local/include/ruby-2.0.0/site_ruby/armv7l-linux-eabihf",
"rubyarchhdrdir"=>"/usr/local/include/ruby-2.0.0/armv7l-linux-eabihf",
"vendorhdrdir"=>"/usr/local/include/ruby-2.0.0/vendor_ruby",
"sitehdrdir"=>"/usr/local/include/ruby-2.0.0/site_ruby",
"rubyhdrdir"=>"/usr/local/include/ruby-2.0.0",
"UNIVERSAL_INTS"=>"",
"UNIVERSAL_ARCHNAMES"=>"",
"configure_args"=>" '--disable-install-rdoc'",
"vendorarchdir"=>"/usr/local/lib/ruby/vendor_ruby/2.0.0/armv7l-linux-eabihf",
"vendorlibdir"=>"/usr/local/lib/ruby/vendor_ruby/2.0.0",
"vendordir"=>"/usr/local/lib/ruby/vendor_ruby",
"sitearchdir"=>"/usr/local/lib/ruby/site_ruby/2.0.0/armv7l-linux-eabihf",
"sitelibdir"=>"/usr/local/lib/ruby/site_ruby/2.0.0",
"sitedir"=>"/usr/local/lib/ruby/site_ruby",
"rubyarchdir"=>"/usr/local/lib/ruby/2.0.0/armv7l-linux-eabihf",
"rubylibdir"=>"/usr/local/lib/ruby/2.0.0",
"ruby_version"=>"2.0.0",
"sitearch"=>"armv7l-linux-eabihf",
"arch"=>"armv7l-linux-eabihf",
"sitearchincludedir"=>"/usr/local/include/armv7l-linux-eabihf",
"archincludedir"=>"/usr/local/include/armv7l-linux-eabihf",
"sitearchlibdir"=>"/usr/local/lib/armv7l-linux-eabihf",
"archlibdir"=>"/usr/local/lib/armv7l-linux-eabihf",
"RI_BASE_NAME"=>"ri",
"ridir"=>"/usr/local/share/ri",
"rubysitearchprefix"=>"/usr/local/lib/ruby/armv7l-linux-eabihf",
"rubyarchprefix"=>"/usr/local/lib/ruby/armv7l-linux-eabihf",
"rubylibprefix"=>"/usr/local/lib/ruby",
"MAKEFILES"=>"Makefile",
"PLATFORM_DIR"=>"",
"THREAD_MODEL"=>"pthread",
"SYMBOL_PREFIX"=>"",
"EXPORT_PREFIX"=>"",
"COMMON_HEADERS"=>"",
"COMMON_MACROS"=>"",
"COMMON_LIBS"=>"",
"MAINLIBS"=>"",
"ENABLE_SHARED"=>"no",
"DLDLIBS"=>" -lc",
"SOLIBS"=>"",
"LIBRUBYARG_SHARED"=>"-Wl,-R -Wl,/usr/local/lib -L/usr/local/lib ",
"LIBRUBYARG_STATIC"=>
"-Wl,-R -Wl,/usr/local/lib -L/usr/local/lib -lruby-static",
"LIBRUBYARG"=>"-Wl,-R -Wl,/usr/local/lib -L/usr/local/lib -lruby-static",
"LIBRUBY"=>"libruby-static.a",
"LIBRUBY_ALIASES"=>"libruby.so",
"LIBRUBY_SO"=>"libruby.so.2.0.0",
"LIBRUBY_A"=>"libruby-static.a",
"RUBYW_INSTALL_NAME"=>"",
"rubyw_install_name"=>"",
"LIBRUBY_DLDFLAGS"=>"",
"LIBRUBY_LDSHARED"=>"gcc -shared",
"EXTDLDFLAGS"=>"",
"EXTLDFLAGS"=>"",
"strict_warnflags"=>"-ansi -std=iso9899:199409",
"warnflags"=>
"-Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration",
"debugflags"=>"-ggdb3",
"optflags"=>"-O3 -fno-fast-math",
"cxxflags"=>
" -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration",
"cflags"=>
" -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration",
"cppflags"=>"",
"NULLCMD"=>":",
"DLNOBJ"=>"dln.o",
"INSTALLDOC"=>"nodoc",
"CAPITARGET"=>"nodoc",
"RDOCTARGET"=>"nodoc",
"DTRACE_GLOMMED_OBJ"=>"",
"DTRACE_OBJ"=>"",
"DTRACE_EXT"=>"dmyh",
"EXECUTABLE_EXTS"=>"",
"ARCHFILE"=>"",
"LIBRUBY_RELATIVE"=>"no",
"EXTOUT"=>".ext",
"RUNRUBY_COMMAND"=>
"$(MINIRUBY) $(srcdir)/tool/runruby.rb --extout=.ext $(RUNRUBYOPT)",
"PREP"=>"miniruby",
"BTESTRUBY"=>"$(MINIRUBY)",
"CROSS_COMPILING"=>"no",
"TEST_RUNNABLE"=>"yes",
"setup"=>"Setup",
"EXTSTATIC"=>"",
"STRIP"=>"strip -S -x",
"TRY_LINK"=>"",
"LIBPATHENV"=>"LD_LIBRARY_PATH",
"RPATHFLAG"=>" -Wl,-R%1$-s",
"LIBPATHFLAG"=>" -L%1$-s",
"LINK_SO"=>"",
"LIBEXT"=>"a",
"DLEXT2"=>"",
"DLEXT"=>"so",
"LDSHAREDXX"=>"g++ -shared",
"LDSHARED"=>"gcc -shared",
"CCDLFLAGS"=>"-fPIC",
"STATIC"=>"",
"ARCH_FLAG"=>"",
"DLDFLAGS"=>"",
"ALLOCA"=>"",
"codesign"=>"",
"POSTLINK"=>":",
"WERRORFLAG"=>"-Werror",
"CHDIR"=>"cd -P",
"RMALL"=>"rm -fr",
"RMDIRS"=>"rmdir --ignore-fail-on-non-empty -p",
"RMDIR"=>"rmdir --ignore-fail-on-non-empty",
"CP"=>"cp",
"RM"=>"rm -f",
"PKG_CONFIG"=>"pkg-config",
"PYTHON"=>"",
"DOXYGEN"=>"",
"DOT"=>"",
"DTRACE"=>"",
"MAKEDIRS"=>"/bin/mkdir -p",
"MKDIR_P"=>"/bin/mkdir -p",
"INSTALL_DATA"=>"/usr/bin/install -c -m 644",
"INSTALL_SCRIPT"=>"/usr/bin/install -c",
"INSTALL_PROGRAM"=>"/usr/bin/install -c",
"SET_MAKE"=>"",
"LN_S"=>"ln -s",
"NM"=>"nm",
"DLLWRAP"=>"",
"WINDRES"=>"",
"OBJCOPY"=>":",
"OBJDUMP"=>"objdump",
"ASFLAGS"=>"",
"AS"=>"as",
"AR"=>"ar",
"RANLIB"=>"ranlib",
"try_header"=>"",
"COUTFLAG"=>"-o ",
"OUTFLAG"=>"-o ",
"CPPOUTFILE"=>"-o conftest.i",
"GNU_LD"=>"yes",
"LD"=>"ld",
"GCC"=>"yes",
"EGREP"=>"/bin/grep -E",
"GREP"=>"/bin/grep",
"CPP"=>"gcc -E",
"CXXFLAGS"=>
" -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration",
"CXX"=>"g++",
"OBJEXT"=>"o",
"CPPFLAGS"=>" -D_FILE_OFFSET_BITS=64 ",
"LDFLAGS"=>"-L. -fstack-protector -rdynamic -Wl,-export-dynamic",
"CFLAGS"=>
" -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration",
"CC"=>"gcc",
"NACL_SDK_VARIANT"=>"",
"NACL_SDK_ROOT"=>"",
"NACL_TOOLCHAIN"=>"",
"target_os"=>"linux-eabihf",
"target_vendor"=>"unknown",
"target_cpu"=>"armv7l",
"target"=>"armv7l-unknown-linux-gnueabihf",
"host_os"=>"linux-gnueabihf",
"host_vendor"=>"unknown",
"host_cpu"=>"armv7l",
"host"=>"armv7l-unknown-linux-gnueabihf",
"RUBY_VERSION_NAME"=>"ruby-2.0.0",
"RUBYW_BASE_NAME"=>"rubyw",
"RUBY_BASE_NAME"=>"ruby",
"build_os"=>"linux-gnueabihf",
"build_vendor"=>"unknown",
"build_cpu"=>"armv7l",
"build"=>"armv7l-unknown-linux-gnueabihf",
"RUBY_RELEASE_DATE"=>"2013-11-22",
"RUBY_PROGRAM_VERSION"=>"2.0.0",
"target_alias"=>"",
"host_alias"=>"",
"build_alias"=>"",
"LIBS"=>"-lpthread -lrt -ldl -lcrypt -lm ",
"ECHO_T"=>"",
"ECHO_N"=>"-n",
"ECHO_C"=>"",
"DEFS"=>"-D_FILE_OFFSET_BITS=64",
"mandir"=>"/usr/local/share/man",
"localedir"=>"/usr/local/share/locale",
"libdir"=>"/usr/local/lib",
"psdir"=>"/usr/local/share/doc/ruby",
"pdfdir"=>"/usr/local/share/doc/ruby",
"dvidir"=>"/usr/local/share/doc/ruby",
"htmldir"=>"/usr/local/share/doc/ruby",
"infodir"=>"/usr/local/share/info",
"docdir"=>"/usr/local/share/doc/ruby",
"oldincludedir"=>"/usr/include",
"includedir"=>"/usr/local/include",
"localstatedir"=>"/usr/local/var",
"sharedstatedir"=>"/usr/local/com",
"sysconfdir"=>"/usr/local/etc",
"datadir"=>"/usr/local/share",
"datarootdir"=>"/usr/local/share",
"libexecdir"=>"/usr/local/libexec",
"sbindir"=>"/usr/local/sbin",
"bindir"=>"/usr/local/bin",
"exec_prefix"=>"/usr/local",
"PACKAGE_URL"=>"",
"PACKAGE_BUGREPORT"=>"",
"PACKAGE_STRING"=>"",
"PACKAGE_VERSION"=>"",
"PACKAGE_TARNAME"=>"",
"PACKAGE_NAME"=>"",
"PATH_SEPARATOR"=>":",
"SHELL"=>"/bin/bash",
"archdir"=>"/usr/local/lib/ruby/2.0.0/armv7l-linux-eabihf",
"topdir"=>"/usr/local/lib/ruby/2.0.0/armv7l-linux-eabihf"}
2.0.0
armv7l-linux-eabihf
Linux cubietruck 3.4.61+ #1 SMP PREEMPT Sat Oct 26 13:08:57 CST 2013 armv7l armv7l armv7l GNU/Linux
root@cubietruck:~#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment