Skip to content

Instantly share code, notes, and snippets.

View Ch00k's full-sized avatar
🪒
chasing rabbits, shaving yaks, painting sheds

Andrii Yurchuk Ch00k

🪒
chasing rabbits, shaving yaks, painting sheds
View GitHub Profile
-r ruby-1.9.3-p448.tar.bz2 --trace
rvm 1.21.20 (master) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]
+ 1376058531.175300651 /scripts/cli : __rvm_parse_args() 710 > [[ -n '' ]]
+ 1376058531.184097502 /scripts/cli : __rvm_parse_args() 712 > set -o errtrace
+ 1376058531.194157963 /scripts/cli : __rvm_parse_args() 713 > export 'PS4=+ $(date "+%s.%N") ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > '
+ 1376058531.207340347 /scripts/cli : __rvm_parse_args() 713 > PS4='+ $(date "+%s.%N") ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > '
+ 1376058531.223855078 /scripts/cli : __rvm_parse_args() 745 > [[ -z mount ]]
+ 1376058531.232940448 /scripts/cli : __rvm_parse_args() 748 > [[ error == \m\o\u\n\t ]]
-r ruby-1.9.3-p448.tar.bz2 --trace
rvm 1.21.20 (master) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]
+ 1376058962.120459805 /scripts/cli : __rvm_parse_args() 710 > [[ -n '' ]]
+ 1376058962.136302988 /scripts/cli : __rvm_parse_args() 712 > set -o errtrace
+ 1376058962.145134472 /scripts/cli : __rvm_parse_args() 713 > export 'PS4=+ $(date "+%s.%N") ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > '
+ 1376058962.156975749 /scripts/cli : __rvm_parse_args() 713 > PS4='+ $(date "+%s.%N") ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > '
+ 1376058962.166960657 /scripts/cli : __rvm_parse_args() 745 > [[ -z mount ]]
+ 1376058962.179549960 /scripts/cli : __rvm_parse_args() 748 > [[ error == \m\o\u\n\t ]]
@Ch00k
Ch00k / gist:6201689
Last active December 20, 2015 21:59
gnu_utils=( awk find sed make tail )
case "$(uname)" in
(SunOS)
[[ -x /usr/gnu/bin/grep ]] ||
rvm_error "ERROR: Missing '/usr/gnu/bin/grep', make sure it is installed before using RVM!"
__rvm_grep()
{
GREP_OPTIONS="" /usr/gnu/bin/grep "$@" || return $?;
}
@Ch00k
Ch00k / gist:6205941
Last active December 20, 2015 22:38
oms@solaris:~$ ( export PS4="+ \${BASH_SOURCE##\${rvm_path:-}} : \${FUNCNAME[0]:+\${FUNCNAME[0]}()} \${LINENO} > " ; set -x ; source .rvm/scripts/rvm )
+ : 1 > source .rvm/scripts/rvm
++ .rvm/scripts/rvm : 22 > __rvm_has_opt posix
++ .rvm/scripts/rvm : __rvm_has_opt() 3 > [[ -n '' ]]
++ .rvm/scripts/rvm : __rvm_has_opt() 6 > [[ -n 4.1.11(2)-release ]]
++ .rvm/scripts/rvm : __rvm_has_opt() 6 > [[ :braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor:xtrace: =~ :posix: ]]
++ .rvm/scripts/rvm : __rvm_has_opt() 17 > return 1
++ .rvm/scripts/rvm : 27 > export HOME rvm_prefix rvm_user_install_flag rvm_path
++ .rvm/scripts/rvm : 28 > HOME=/export/home/oms
++ .rvm/scripts/rvm : 30 > [[ -n '' ]]
oms@solaris:~$ irb
sh[1]: __rvm_awk: not found [No such file or directory]
:001 >
#!/usr/bin/env bash
requirements_solaris_lib_installed()
{
pkg info "$1" >/dev/null 2>&1 || return $?
}
requirements_solaris_libs_install()
{
__rvm_try_sudo pkg install "$@" || return $?
oms@solaris:~$ rvm install 1.9.3
Searching for binary rubies, this might take some time.
No binary rubies available for: solaris/11.1/i86pc/ruby-1.9.3-p448.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for solaris.
Installing requirements for solaris.
No updates available for this image.
## Downloading...
..............25%..............50%..............75%..............100%
@Ch00k
Ch00k / gist:6210598
Last active December 20, 2015 23:09
requirements_solaris_check_custom()
{
[[ " ${packages_custom[*]} " =~ " $1 " ]] ||
[[ -x /opt/csw/bin/pkgutil && -f /etc/opt/csw/pkgutil.conf ]] ||
{
if [[ "$1" == "libyaml_dev" ]]
then
/opt/csw/bin/pkgutil | __rvm_grep "libyaml-dev" >/dev/null || packages_custom+=( "$1" )
else
/opt/csw/bin/pkgutil | __rvm_grep "$1" >/dev/null || packages_custom+=( "$1" )
find_header: checking for yaml.h... -------------------- yes
"gcc -E -I../../.ext/include/i386-solaris2.11 -I../.././include -I../.././ext/psych -D_FILE_OFFSET_BITS=64 -I/opt/csw/include -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <yaml.h>
/* end */
oms@solaris:~/.rvm/src/ruby-1.9.3-p448/ext/psych$ ldd /export/home/oms/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/i386-solaris2.11/psych.so
libruby.so.1 => (file not found)
libyaml-0.so.2 => (file not found)
libpthread.so.1 => /lib/libpthread.so.1
librt.so.1 => /lib/librt.so.1
libsocket.so.1 => /lib/libsocket.so.1
libdl.so.1 => /lib/libdl.so.1
libcrypt.so.1 => /usr/lib/libcrypt.so.1
libm.so.2 => /lib/libm.so.2
libc.so.1 => /lib/libc.so.1