Skip to content

Instantly share code, notes, and snippets.

@armanddp
Created April 13, 2010 23:55
Show Gist options
  • Save armanddp/365258 to your computer and use it in GitHub Desktop.
Save armanddp/365258 to your computer and use it in GitHub Desktop.
pkgtrans ruby-1.9.1p376-sol10-x86-local .
cd SMCruby
joe pkginfo
% Set install path
% Get file size
wc -c pkginfo
% Calc new checksum
sum pkginfo
% Update map
joe pkgmap
% Generate package for zone
pkgtrans . SMCruby-zone
% Install
pkgadd -d SMCruby-zone
% Make sure paths are correct!!! These are WRONG:
root@rmcs-wap-staging /opt/csw/rubygems : ruby -e "puts $:"
/opt/csw/lib/ruby/1.9.1/
/usr/local/lib/ruby/site_ruby/1.9.1
/usr/local/lib/ruby/site_ruby/1.9.1/i386-solaris2.10
/usr/local/lib/ruby/site_ruby
/usr/local/lib/ruby/vendor_ruby/1.9.1
/usr/local/lib/ruby/vendor_ruby/1.9.1/i386-solaris2.10
/usr/local/lib/ruby/vendor_ruby
/usr/local/lib/ruby/1.9.1
/usr/local/lib/ruby/1.9.1/i386-solaris2.10
.
root@rmcs-wap-staging /opt/csw/rubygems :
% Temp fix, either compile custom package or export in /etc/profile:
### RUBY LOAD PATHS ###
export RUBYLIB="/opt/csw/lib/ruby/site_ruby/1.9.1:/opt/csw/lib/ruby/site_ruby/1.9.1/i386-solaris2.10:/opt/csw/lib/ruby/site_ruby:/opt/csw/lib/ruby/vendor_ruby/1.9.1:/opt/csw/lib/ruby/vendor_ruby/1.9.1/
export RUBYLIB="${RUBYLIB}:/opt/csw/lib/ruby/vendor_ruby:/opt/csw/lib/ruby/1.9.1:/opt/csw/lib/ruby/1.9.1/i386-solaris2.10"
### RUBY LOAD PATHS END
GCC Toolset
ftp://ftp.sunfreeware.com/pub/freeware/intel/10/gcc-3.4.6-sol10-x86-local.gz
ftp://ftp.sunfreeware.com/pub/freeware/intel/10/make-3.81-sol10-x86-local.gz
{noformat}
for tools (sccs, lex, yacc, make, nm, truss, ld, as):
SUNWbtool, SUNWsprot, SUNWtoo, SUNWcpp
for libraries & headers:
SUNWhea, SUNWarc, SUNWlibm, SUNWlibms
SUNWdfbh, SUNWcg6h, SUNWxwinc, SUNWolinc,
SUNWxglh, SUNWlibC, SUNWzlib, SUNWscpu
for 64 bit development (in S10 these have all been merged into
the non-x versions):
SUNWarcx, SUNWbtoox, SUNWdplx, SUNWscpux, SUNWsprox,
SUNWtoox, SUNWlmsx, SUNWlmx, SUNWlibCx, SUNWzlibx
for ucb compat:
SUNWsra, SUNWsrh
{noformat}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment