Skip to content

Instantly share code, notes, and snippets.

View CirrusThink's full-sized avatar

Cirrus Thinking CirrusThink

View GitHub Profile
#!/bin/sh
#
# Postgresql backup script
# http://www.bitweaver.org/wiki/pg_backup+PostgreSQL+backup+script
#
# Author
# |
# +-- speedboy (speedboy_420 at hotmail dot com)
# +-- spiderr (spiderr at bitweaver dot org)
# +-- flexiondotorg (code at flexion dot org)
Solaris 11.3 sru 175.3.10.0.7.1
dolly@dolly:~$ rvmsudo CC=/usr/bin/gcc passenger-install-nginx-module
Welcome to the Phusion Passenger Nginx module installer, v5.0.30.
This installer will guide you through the entire installation process. It
shouldn't take more than 5 minutes in total.
Here's what you can expect from the installation process:
bundle env
Environment
Bundler 1.10.6
Rubygems 2.6.6
Ruby 2.2.4p230 (2015-12-16 revision 53155) [i386-solaris2.11]
GEM_HOME /home/dolly/.rvm/gems/ruby-2.2.4@global
RVM 1.27.0 (master)
Git 2.7.4
rubygems-bundler (1.4.4)
I am listing the directories, I don't know which one is the Makefile, or I dont see it
~/.rvm/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/mysql2-0.4.4$ ls -lh *
-rw-r--r-- 1 dolly staff 87 Jul 12 13:34 CHANGELOG.md
-rw-r--r-- 1 dolly staff 1.1K Jul 12 13:34 LICENSE
-rw-r--r-- 1 dolly staff 23K Jul 12 13:34 README.md
examples:
total 9.0K
-rw-r--r-- 1 dolly staff 463 Jul 12 13:34 eventmachine.rb
~/.rvm/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/extensions/x86-solaris-2.11/2.2.0/mysql2-0.4.4$ cat mkmf.log
have_header: checking for ruby/thread.h... -------------------- yes
"gcc -o conftest -I/home/dolly/.rvm/rubies/ruby-2.2.4/include/ruby-2.2.0/i386-solaris2.11 -I/home/dolly/.rvm/rubies/ruby-2.2.4/include/ruby-2.2.0/ruby/backward -I/home/dolly/.rvm/rubies/ruby-2.2.4/include/ruby-2.2.0 -I. -I/opt/csw/include -D_FILE_OFFSET_BITS=64 -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 -Wdeprecated-declarations -Wno-packed-bitfield-compat -fPIC conftest.c -L/opt/csw/lib -Wl,-R/opt/csw/lib -L. -L/home/dolly/.rvm/rubies/ruby-2.2.4/lib -Wl,-R/home/dolly/.rvm/rubies/ruby-2.2.4/lib -L. -fstack-protector -L/opt/csw/lib -Wl,-R/opt/csw/lib -Wl,-R/home/dolly/.rvm/rubies/ruby-2.2.4/lib -L/home/dolly/.rvm/rubies/ruby-2.2.4/lib -
~/.rvm/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/extensions/x86-solaris-2.11/2.2.0/mysql2-0.4.4$ cat gem_make.out
/home/dolly/.rvm/rubies/ruby-2.2.4/bin/ruby -r ./siteconf20160712-751-nku7md.rb extconf.rb --with-mysql-dir=/usr/mysql/5.5/ --with-mysql-rpath=/usr/mysql/5.5/lib/ --no-documentation -V --debug -u --explain --clear-sources
checking for ruby/thread.h... yes
checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
checking for rb_thread_blocking_region()... no
checking for rb_wait_for_single_fd()... yes
checking for rb_hash_dup()... yes
checking for rb_intern3()... yes
-----
Using --with-mysql-dir=/usr/mysql/5.5
~/.rvm/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/extensions/x86-solaris-2.11/2.2.0/mysql2-0.4.4$ cat gem_make.out
/home/dolly/.rvm/rubies/ruby-2.2.4/bin/ruby -r ./siteconf20160712-72-16wp6dm.rb extconf.rb --with-mysql-dir=/usr/mysql/5.5/ --without-mysql-rpath --no-documentation -V --debug -u --explain --clear-sources
checking for ruby/thread.h... yes
checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
checking for rb_thread_blocking_region()... no
checking for rb_wait_for_single_fd()... yes
checking for rb_hash_dup()... yes
checking for rb_intern3()... yes
-----
Using --with-mysql-dir=/usr/mysql/5.5
make install
CC = cc -m64
LD = /usr/ccs/bin/ld
LDSHARED = cc -m64 -G
CFLAGS = -g
XCFLAGS = -DRUBY_EXPORT
CPPFLAGS = -I. -I.ext/include/x86_64-solaris2.11 -I./include -I.
DLDFLAGS =
SOLIBS =
cc: Sun C 5.13 SunOS_i386 2014/10/20
gem env
/export/home/dolly/ruby64/lib/ruby/2.1.0/yaml.rb:4:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
/export/home/dolly/ruby64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': ld.so.1: ruby: fatal: relocation error: file /export/home/dolly/ruby64/lib/ruby/2.1.0/x86_64-solaris2.11/date_core.so: symbol rb_infinity: referenced symbol not found - /export/home/dolly/ruby64/lib/ruby/2.1.0/x86_64-solaris2.11/date_core.so (LoadError)
from /export/home/dolly/ruby64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /export/home/dolly/ruby64/lib/ruby/2.1.0/date.rb:3:in `<top (required)>'
from /export/home/dolly/ruby64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /export/home/dolly/ruby64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /export/home/dolly/ruby64/lib/rub