Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.216.37
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby33 /
share /
ri /
system /
contributing /
Delete
Unzip
Name
Size
Permission
Date
Action
page-building_ruby_md.ri
7.89
KB
-rw-r--r--
2026-04-07 17:22
page-documentation_guide_md.ri
20.56
KB
-rw-r--r--
2026-04-07 17:22
page-glossary_md.ri
5.08
KB
-rw-r--r--
2026-04-07 17:22
page-making_changes_to_ruby_md.ri
1.74
KB
-rw-r--r--
2026-04-07 17:22
page-making_changes_to_stdlibs_md.ri
1.71
KB
-rw-r--r--
2026-04-07 17:22
page-reporting_issues_md.ri
4.89
KB
-rw-r--r--
2026-04-07 17:22
page-testing_ruby_md.ri
5.14
KB
-rw-r--r--
2026-04-07 17:22
Save
Rename
U:RDoc::TopLevel[ i I""contributing/building_ruby.md:ETcRDoc::Parser::Markdowno:RDoc::Markup::Document:@parts[)S:RDoc::Markup::Heading: leveli: textI"Building Ruby;TS; ; i;I"Dependencies;To:RDoc::Markup::List: @type:NUMBER:@items[o:RDoc::Markup::ListItem:@label0;[o:RDoc::Markup::Paragraph;[I"NInstall the prerequisite dependencies for building the CRuby interpreter:;Fo;; :BULLET;[o;;0;[o;;[I"C compiler;Fo;;[I"&For RubyGems, you will also need:;Fo;; ;;[o;;0;[o;;[I"&OpenSSL 1.1.x or 3.0.x / LibreSSL;Fo;;0;[o;;[I"libyaml 0.1.7 or later;Fo;;0;[o;;[I" zlib;Fo;;[I"FIf you want to build from the git repository, you will also need:;Fo;; ;;[o;;0;[o;;[I"autoconf - 2.67 or later;Fo;;0;[o;;[I"gperf - 3.1 or later;Fo;; ;;[o;;0;[o;;[I"EUsually unneeded; only if you edit some source files using gperf;Fo;;0;[o;;[I"ruby - 2.5 or later;Fo;; ;;[o;;0;[o;;[I"QWe can upgrade this version to system ruby version of the latest Ubuntu LTS.;Fo;;0;[ o;;[I"0Install optional, recommended dependencies:;Fo;; ;;[ o;;0;[o;;[I"libffi (to build fiddle);Fo;;0;[o;;[I"6gmp (if you with to accelerate Bignum operations);Fo;;0;[o;;[I"libexecinfo (FreeBSD);Fo;;0;[o;;[I"rrustc - 1.58.0 or later, if you wish to build {YJIT}[https://docs.ruby-lang.org/en/master/RubyVM/YJIT.html].;Fo;;[I" If you installed the libraries needed for extensions (openssl, readline, libyaml, zlib) into other than the OS default place, typically using Homebrew on macOS, add <code>--with-EXTLIB-dir</code> options to <code>CONFIGURE_ARGS</code> environment variable.;Fo:RDoc::Markup::Verbatim;[I"�export CONFIGURE_ARGS="" for ext in openssl readline libyaml zlib; do CONFIGURE_ARGS="${CONFIGURE_ARGS} --with-$ext-dir=$(brew --prefix $ext)" done ;F:@format: shellS; ; i;I"Quick start guide;To;; ;;[o;;0;[o;;[I"Download ruby source code:;Fo;;[I"Select one of the bellow.;Fo;; ;;[o;;0;[o;;[I"Build from the tarball:;Fo;;[I"�Download the latest tarball from {ruby-lang.org}[https://www.ruby-lang.org/en/downloads/] and extract it. Example for Ruby 3.0.2:;Fo;;[I".tar -xzf ruby-3.0.2.tar.gz cd ruby-3.0.2 ;F;;o;;0;[ o;;[I"#Build from the git repository:;Fo;;[I"$Checkout the CRuby source code:;Fo;;[I"8git clone https://github.com/ruby/ruby.git cd ruby ;F;;o;;[I"!Generate the configure file:;Fo;;[I"./autogen.sh ;F;;o;;0;[o;;[I"NCreate a <code>build</code> directory separate from the source directory:;Fo;;[I"mkdir build && cd build ;F;;o;;[I"\While it's not necessary to build in a separate directory, it's good practice to do so.;Fo;;0;[o;;[I"WWe'll install Ruby in <code>~/.rubies/ruby-master</code>, so create the directory:;Fo;;[I"mkdir ~/.rubies ;F;;o;;0;[o;;[I"Run configure:;Fo;;[I"9../configure --prefix="${HOME}/.rubies/ruby-master" ;F;;o;; ;;[o;;0;[o;;[I"�If you are frequently building Ruby, add the <code>--disable-install-doc</code> flag to not build documentation which will speed up the build process.;Fo;;0;[o;;[I"mAlso <code>-C</code> (or <code>--config-cache</code>) would reduce time to configure from the next time.;Fo;;0;[o;;[I"Build Ruby:;Fo;;[I"make install ;F;;o;;0;[o;;[I"B{Run tests}[testing_ruby.md] to confirm your build succeeded.;TS; ; i;I"Unexplainable Build Errors;To;;[I"WIf you are having unexplainable build errors, after saving all your work, try running <code>git clean -xfd</code> in the source root to remove all git ignored local files. If you are working from a source directory that's been updated several times, you may have temporary build artifacts from previous releases which can cause build failures.;TS; ; i;I"Building on Windows;To;;[I"RThe documentation for building on Windows can be found {here}[../windows.md].;TS; ; i;I"More details;To;;[I"rIf you're interested in continuing development on Ruby, here are more details about Ruby's build to help out.;TS; ; i;I"%Running make scripts in parallel;To;;[I"�In GNU make and BSD make implementations, to run a specific make script in parallel, pass the flag <code>-j<number of processes></code>. For instance, to run tests on 8 processes, use:;To;;[I"make test-all -j8 ;T;;o;;[I"`We can also set <code>MAKEFLAGS</code> to run _all_ <code>make</code> commands in parallel.;To;;[I"�Having the right <code>--jobs</code> flag will ensure all processors are utilized when building software projects. To do this effectively, you can set <code>MAKEFLAGS</code> in your shell configuration/profile:;To;;[I"# On macOS with Fish shell: export MAKEFLAGS="--jobs "(sysctl -n hw.ncpu) # On macOS with Bash/ZSH shell: export MAKEFLAGS="--jobs $(sysctl -n hw.ncpu)" # On Linux with Fish shell: export MAKEFLAGS="--jobs "(nproc) # On Linux with Bash/ZSH shell: export MAKEFLAGS="--jobs $(nproc)" ;T;;S; ; i;I"Miniruby vs Ruby;To;;[I"Miniruby is a version of Ruby which has no external dependencies and lacks certain features. It can be useful in Ruby development because it allows for faster build times. Miniruby is built before Ruby. A functional Miniruby is required to build Ruby. To build Miniruby:;To;;[I"make miniruby ;T;;S; ; i;I"Debugging;To;;[I"�You can use either lldb or gdb for debugging. Before debugging, you need to create a <code>test.rb</code> with the Ruby script you'd like to run. You can use the following make targets:;To;; ;;[o;;0;[o;;[I"D<code>make run</code>: Runs <code>test.rb</code> using Miniruby;To;;0;[o;;[I"M<code>make lldb</code>: Runs <code>test.rb</code> using Miniruby in lldb;To;;0;[o;;[I"K<code>make gdb</code>: Runs <code>test.rb</code> using Miniruby in gdb;To;;0;[o;;[I"D<code>make runruby</code>: Runs <code>test.rb</code> using Ruby;To;;0;[o;;[I"N<code>make lldb-ruby</code>: Runs <code>test.rb</code> using Ruby in lldb;To;;0;[o;;[I"L<code>make gdb-ruby</code>: Runs <code>test.rb</code> using Ruby in gdb;TS; ; i;I"Compiling for Debugging;To;;[I"fYou should configure Ruby without optimization and other flags that may interfere with debugging:;To;;[I"K./configure --enable-debug-env optflags="-O0 -fno-omit-frame-pointer" ;T;;S; ; i;I"$Building with Address Sanitizer;To;;[I"HUsing the address sanitizer is a great way to detect memory issues.;To;;[I"�./autogen.sh mkdir build && cd build export ASAN_OPTIONS="halt_on_error=0:use_sigaltstack=0:detect_leaks=0" ../configure cppflags="-fsanitize=address -fno-omit-frame-pointer" optflags=-O0 LDFLAGS="-fsanitize=address -fno-omit-frame-pointer" make ;T;;o;;[I"�On Linux it is important to specify <code>-O0</code> when debugging. This is especially true for ASAN which sometimes works incorrectly at higher optimisation levels.;TS; ; i;I"/How to measure coverage of C and Ruby code;To;;[I"?You need to be able to use gcc (gcov) and lcov visualizer.;To;;[I"�./autogen.sh ./configure --enable-gcov make make update-coverage rm -f test-coverage.dat make test-all COVERAGE=true make lcov open lcov-out/index.html ;T;;o;;[I"�If you need only C code coverage, you can remove <code>COVERAGE=true</code> from the above process. You can also use <code>gcov</code> command directly to get per-file coverage.;To;;[I"�If you need only Ruby code coverage, you can remove <code>--enable-gcov</code>. Note that <code>test-coverage.dat</code> accumulates all runs of <code>make test-all</code>. Make sure that you remove the file if you want to measure one test run.;To;;[I"GYou can see the coverage result of CI: https://rubyci.org/coverage;T: @file@:0@omit_headings_from_table_of_contents_below0