Created
November 14, 2013 12:36
-
-
Save SpringMT/7466080 to your computer and use it in GitHub Desktop.
ruby configure options
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
``` | |
Optional Features: | |
--disable-option-checking ignore unrecognized --enable/--with options | |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
--enable-load-relative resolve load paths at run time | |
--disable-werror don't make warnings into errors even if a compiler | |
support -Werror feature [disabled by default unless | |
development version] | |
--enable-pthread obsolete, and ignored | |
--disable-largefile omit support for large files | |
--enable-setreuid use setreuid()/setregid() according to need even if | |
obsolete | |
--enable-rpath embed run path into extension libraries. enabled by | |
default on ELF platforms | |
--enable-shared build a shared library for Ruby | |
--enable-dtrace enable DTrace for tracing inside ruby. enabled by | |
default on systems having dtrace | |
--disable-install-doc do not install neither rdoc indexes nor C API | |
documents during install | |
--disable-install-rdoc do not install rdoc indexes during install | |
--disable-install-capi do not install C API documents during install | |
--disable-dln disable dynamic link feature | |
--enable-debug-env enable RUBY_DEBUG environment variable | |
--enable-multiarch enable multiarch compatible directories | |
--disable-rubygems disable rubygems by default | |
Optional Packages: | |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
--with-baseruby=RUBY use RUBY as baseruby; RUBY is the pathname of ruby | |
--without-gcc never use gcc | |
--with-arch=ARCHS build an Apple/NeXT Multi Architecture Binary (MAB); | |
ARCHS is a comma-delimited list of architectures for | |
which to build; if this option is disabled or | |
omitted entirely, then the package will be built | |
only for the target platform | |
--with-newlib uses newlib version of NativeClient SDK | |
--with-winnt-ver=0xXXXX target Windows NT version (default to 0x0501) | |
--with-setjmp-type select setjmp type | |
--with-dln-a-out use dln_a_out if possible | |
--with-opt-dir=DIR-LIST add optional headers and libraries directories | |
separated by $PATH_SEPARATOR | |
--without-valgrind disable valgrind memcheck support | |
--with-ext=EXTS pass to --with-ext option of extmk.rb | |
--with-out-ext=EXTS pass to --without-ext option of extmk.rb | |
--with-static-linked-ext | |
link external modules statically | |
--with-soname=SONAME base name of shared library | |
--with-rubylibprefix=DIR | |
prefix for ruby libraries [[LIBDIR/RUBY_BASE_NAME]] | |
--with-rubyarchprefix=DIR | |
prefix for architecture dependent ruby libraries | |
[[RUBYLIBPREFIX/ARCH]] | |
--with-rubysitearchprefix=DIR | |
prefix for architecture dependent site libraries | |
[[RUBYLIBPREFIX/SITEARCH]] | |
--with-ridir=DIR ri documentation [[DATAROOTDIR/ri]] | |
--with-ruby-version=STR ruby version string for version specific directories | |
[[full]] (full|minor|STR) | |
--with-sitedir=DIR site libraries in DIR [[RUBY_LIB_PREFIX/site_ruby]], | |
"no" to disable site directory | |
--with-arch-sitedir=DIR architecture dependent site libraries in DIR | |
[[SITEDIR/SITEARCH]], "no" to disable site directory | |
--with-vendordir=DIR vendor libraries in DIR | |
[[RUBY_LIB_PREFIX/vendor_ruby]], "no" to disable | |
vendor directory | |
--with-arch-vendordir=DIR | |
architecture dependent vendor libraries in DIR | |
[[VENDORDIR/SITEARCH]], "no" to disable vendor | |
directory | |
--with-search-path=DIR specify the additional search path | |
--with-rubyhdrdir=DIR core headers in DIR | |
[[INCLUDEDIR/RUBY_BASE_NAME-RUBY_VERSION]] | |
--with-arch-rubyhdrdir=DIR | |
architecture dependent core headers in DIR | |
[[$(rubyhdrdir)/$(arch)]] | |
--with-sitehdrdir=DIR core site headers in DIR [[RUBYHDRDIR/site_ruby]] | |
--with-arch-sitehdrdir=DIR | |
architecture dependent core site headers in DIR | |
[[RUBYHDRDIR/site_ruby]] | |
--with-vendorhdrdir=DIR core vendor headers in DIR | |
[[RUBYHDRDIR/vendor_ruby]] | |
--with-arch-vendorhdrdir=DIR | |
architecture dependent core vendor headers in DIR | |
[[RUBYHDRDIR/vendor_ruby]] | |
--with-mantype=TYPE specify man page type; TYPE is one of man and doc | |
pc file basename | |
Some influential environment variables: | |
CC C compiler command | |
CFLAGS C compiler flags | |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
nonstandard directory <lib dir> | |
LIBS libraries to pass to the linker, e.g. -l<library> | |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
you have headers in a nonstandard directory <include dir> | |
CXX C++ compiler command | |
CXXFLAGS C++ compiler flags | |
CPP C preprocessor | |
Use these variables to override the choices made by `configure' or to help | |
it to find libraries and programs with nonstandard names/locations. | |
Report bugs to the package provider. | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment