Skip to content

Instantly share code, notes, and snippets.

@wycats
Created August 1, 2012 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wycats/f18c9bfa071ecaca613c to your computer and use it in GitHub Desktop.
Save wycats/f18c9bfa071ecaca613c to your computer and use it in GitHub Desktop.
~/Code/ember-data ‹ruby-1.9.3› ‹relationship-improvements› $ cd ~/Code/tokaidoapp 1 ↵
~/Code/tokaidoapp ‹ruby-1.9.3› ‹master› $ git pull
Already up-to-date.
~/Code/tokaidoapp ‹ruby-1.9.3› ‹master› $ sm update head
/Users/tomhuda/.sm/core/cli/bin/update:3: command not found: NYI
~/Code/tokaidoapp ‹ruby-1.9.3› ‹master› $ rm -rf ~/.sm 127 ↵
~/Code/tokaidoapp ‹ruby-1.9.3› ‹master› $ cat README.md
Compiling static ruby:
curl -L https://raw.github.com/sm/sm/master/bin/sm-installer | sh
echo "export PATH=\"$HOME/.sm/bin:$HOME/.sm/pkg/active/bin:\$PATH\"" >> .bashrc
source ~/.bashrc
sm ext install tokaidoapp tokaido/tokaidoapp
sm tokaidoapp dependencies
sm tokaidoapp install
Ruby is isntalled in `$HOME/.sm/pkg/versions/tokaidoapp/1.9.3-p125/`
~/Code/tokaidoapp ‹ruby-1.9.3› ‹master› $ curl -L https://raw.github.com/sm/sm/master/bin/sm-installer | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1658 100 1658 0 0 2509 0 --:--:-- --:--:-- --:--:-- 3014
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2712k 100 2712k 0 0 830k 0 0:00:03 0:00:03 --:--:-- 899k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 198k 100 198k 0 0 42625 0 0:00:04 0:00:04 --:--:-- 158k
S{cripting,ystem,tack} Management (SM) Framework (Core) Installation:
[✔] Ensuring that installation target path exists (/Users/tomhuda/.sm)
[✔] Creating install path directories (bin log tmp src)
[✔] Installing core directories (bin)
[✔] Installing core files (LICENSE VERSION README.md local)
[✔] Installing core extension set
[✔] Downloading sm-mustache.
[✔] Downloading sm-json
[✔] Ensuring configuration files exist (user)
[✔] Ensuring that binaries are executable
NOTE:
Since you are installing as a user (tomhuda), in order to ensure that the 'sm' command is available to you add the following to your startup profile:
export PATH="${PATH}:/Users/tomhuda/.sm/bin:/Users/tomhuda/.sm/pkg/active/bin:/Users/tomhuda/.sm/pkg/active/sbin"
Then either close the current shell or source the profile file.
S{cripting,ystem,tack} Management (SM) Framework (Core) installed.
~/Code/tokaidoapp ‹ruby-1.9.3› ‹master› $ sm
~/Code/tokaidoapp ‹ruby-1.9.3› ‹master› $ sm ext install tokaidoapp tokaido/tokaidoapp
[✔] tokaidoapp head
~/Code/tokaidoapp ‹ruby-1.9.3› ‹master› $ sm tokaidoapp dependencies
[✔] libraries head
[✔] tools head
[✔] gnu head
FAIL(__sm.includes): Could not find module path for pkg-config.
+# source file # function()
=======================================================================================================================================================================================================================================
vi +330 /Users/tomhuda/.sm/core/sm/shell/log/functions # __sm.log.fail
vi +157 /Users/tomhuda/.sm/core/sm/shell/modules/functions # __sm.modules.include
vi +146 /Users/tomhuda/.sm/core/sm/shell/modules/functions # __sm.includes
vi +132 /Users/tomhuda/.sm/core/sm/shell/modules/functions # includes
vi +6 /Users/tomhuda/.sm/exts/active/tokaidoapp/shell//functions # tokaido_install_package
vi +28 /Users/tomhuda/.sm/exts/active/tokaidoapp/shell//functions # tokaidoapp_install_dependencies
vi +403 /Users/tomhuda/.sm/core/sm/shell/log/functions # __sm.actions.call
vi +178 /Users/tomhuda/.sm/core/internal/shell/extensions/execution/functions # __sm.extension.run
vi +151 /Users/tomhuda/.sm/core/sm/shell/core/initialize # /Users/tomhuda/.sm/core/sm/shell/core/initialize
vi +41 /Users/tomhuda/.sm/bin/sm # /Users/tomhuda/.sm/bin/sm
=======================================================================================================================================================================================================================================
~/Code/tokaidoapp ‹ruby-1.9.3› ‹master› $ sm pkg-config install 1 ↵
[✔] pkg-config 0.25 ~ dependencies
[✔] pkg-config 0.25 ~ fetch
[✔] pkg-config 0.25 ~ patch
[✔] pkg-config 0.25 ~ configure
[✔] pkg-config 0.25 ~ build
[✔] pkg-config 0.25 ~ preinstall
[✔] pkg-config 0.25 ~ install
[✔] pkg-config 0.25 ~ postinstall
[✔] pkg-config 0.25
~/Code/tokaidoapp ‹ruby-1.9.3› ‹master› $ sm tokaidoapp dependencies
[✔] libraries head
[✔] tools head
[✔] gnu head
[✔] pkg-config ~ already installed
[✔] gdbm 1.10 ~ dependencies
[✔] gdbm 1.10 ~ fetch
[✔] gdbm 1.10 ~ patch
[✔] gdbm 1.10 ~ configure
[✔] gdbm 1.10 ~ build
[✔] gdbm 1.10 ~ preinstall
[✔] gdbm 1.10 ~ install
[✔] gdbm 1.10 ~ postinstall
[✔] gdbm 1.10
[✔] libyaml 0.1.4 ~ dependencies
[✔] libyaml 0.1.4 ~ prefetch
[✔] libyaml 0.1.4 ~ fetch
[✔] libyaml 0.1.4 ~ patch
[✔] libyaml 0.1.4 ~ preconfigure
[✔] libyaml 0.1.4 ~ configure
[✔] libyaml 0.1.4 ~ build
[✔] libyaml 0.1.4 ~ preinstall
[✔] libyaml 0.1.4 ~ install
[✔] libyaml 0.1.4 ~ postinstall
[✔] libyaml 0.1.4
[✔] zlib 1.2.7 ~ dependencies
[ ] zlib 1.2.7 ~ fetch... cat: /Users/tomhuda/.sm/archives/zlib-1.2.7.tar.gz.checksum: No such file or directory
[✔] zlib 1.2.7 ~ fetch
[✔] zlib 1.2.7 ~ patch
[✔] zlib 1.2.7 ~ preconfigure
[✔] zlib 1.2.7 ~ configure
[ ] zlib 1.2.7 ~ build... ERROR(__sm.package.error):
Compilation of zlib 1.2.7 failed!
Tail of /Users/tomhuda/.sm/src/zlib-1.2.7/build.log:
make: [infback.o] Error 1 (ignored)
I/Users/tomhuda/.sm/pkg/active/include -fPIC -DNO_FSEEKO -DNO_STRERROR -DNO_snprintf -DHAS_sprintf_void -c -o inftrees.o inftrees.c
make: I/Users/tomhuda/.sm/pkg/active/include: No such file or directory
make: [inffast.o] Error 1 (ignored)
I/Users/tomhuda/.sm/pkg/active/include -fPIC -DNO_FSEEKO -DNO_STRERROR -DNO_snprintf -DHAS_sprintf_void -c -o trees.o trees.c
make: I/Users/tomhuda/.sm/pkg/active/include: No such file or directory
make: [inflate.o] Error 1 (ignored)
I/Users/tomhuda/.sm/pkg/active/include -fPIC -DNO_FSEEKO -DNO_STRERROR -DNO_snprintf -DHAS_sprintf_void -c -o zutil.o zutil.c
make: I/Users/tomhuda/.sm/pkg/active/include: No such file or directory
make: [inftrees.o] Error 1 (ignored)
I/Users/tomhuda/.sm/pkg/active/include -fPIC -DNO_FSEEKO -DNO_STRERROR -DNO_snprintf -DHAS_sprintf_void -c -o compress.o compress.c
make: I/Users/tomhuda/.sm/pkg/active/include: No such file or directory
make: [trees.o] Error 1 (ignored)
I/Users/tomhuda/.sm/pkg/active/include -fPIC -DNO_FSEEKO -DNO_STRERROR -DNO_snprintf -DHAS_sprintf_void -c -o uncompr.o uncompr.c
make: I/Users/tomhuda/.sm/pkg/active/include: No such file or directory
make: [zutil.o] Error 1 (ignored)
I/Users/tomhuda/.sm/pkg/active/include -fPIC -DNO_FSEEKO -DNO_STRERROR -DNO_snprintf -DHAS_sprintf_void -c -o gzclose.o gzclose.c
make: I/Users/tomhuda/.sm/pkg/active/include: No such file or directory
make: [compress.o] Error 1 (ignored)
I/Users/tomhuda/.sm/pkg/active/include -fPIC -DNO_FSEEKO -DNO_STRERROR -DNO_snprintf -DHAS_sprintf_void -c -o gzlib.o gzlib.c
make: I/Users/tomhuda/.sm/pkg/active/include: No such file or directory
make: [uncompr.o] Error 1 (ignored)
I/Users/tomhuda/.sm/pkg/active/include -fPIC -DNO_FSEEKO -DNO_STRERROR -DNO_snprintf -DHAS_sprintf_void -c -o gzread.o gzread.c
make: I/Users/tomhuda/.sm/pkg/active/include: No such file or directory
make: [gzclose.o] Error 1 (ignored)
I/Users/tomhuda/.sm/pkg/active/include -fPIC -DNO_FSEEKO -DNO_STRERROR -DNO_snprintf -DHAS_sprintf_void -c -o gzwrite.o gzwrite.c
make: I/Users/tomhuda/.sm/pkg/active/include: No such file or directory
make: [gzlib.o] Error 1 (ignored)
I/Users/tomhuda/.sm/pkg/active/include -fPIC -DNO_FSEEKO -DNO_STRERROR -DNO_snprintf -DHAS_sprintf_void -I. -c -o minigzip.o test/minigzip.c
make: I/Users/tomhuda/.sm/pkg/active/include: No such file or directory
make: [gzread.o] Error 1 (ignored)
make: [gzwrite.o] Error 1 (ignored)
ar rc libz.a adler32.o crc32.o deflate.o infback.o inffast.o inflate.o inftrees.o trees.o zutil.o compress.o uncompr.o gzclose.o gzlib.o gzread.o gzwrite.o
make: [minigzip.o] Error 1 (ignored)
ar: adler32.o: No such file or directory
ar: crc32.o: No such file or directory
ar: deflate.o: No such file or directory
ar: infback.o: No such file or directory
ar: inffast.o: No such file or directory
ar: inflate.o: No such file or directory
ar: inftrees.o: No such file or directory
ar: trees.o: No such file or directory
ar: zutil.o: No such file or directory
ar: compress.o: No such file or directory
ar: uncompr.o: No such file or directory
ar: gzclose.o: No such file or directory
ar: gzlib.o: No such file or directory
ar: gzread.o: No such file or directory
ar: gzwrite.o: No such file or directory
make: *** [libz.a] Error 1
~/Code/tokaidoapp ‹ruby-1.9.3› ‹master› $ ls ~/.sm/pkg/active 1 ↵
bin etc include lib libexec man sbin share src
~/Code/tokaidoapp ‹ruby-1.9.3› ‹master› $ ls ~/.sm/pkg/active/include
gdbm.h yaml.h
~/Code/tokaidoapp ‹ruby-1.9.3› ‹master› $ sm get head
S{cripting,ystem,tack} Management (SM) Framework (Core) Installation:
[✔] Ensuring that installation target path exists (/Users/tomhuda/.sm)
[✔] Creating install path directories (bin log tmp src)
[✔] Installing core directories (bin)
[✔] Installing core files (LICENSE VERSION README.md local)
[✔] Installing core extension set
[✔] Downloading sm-mustache.
[✔] Downloading sm-json
[✔] Ensuring configuration files exist (user)
[✔] Ensuring that binaries are executable
NOTE:
Since you are installing as a user (tomhuda), in order to ensure that the 'sm' command is available to you add the following to your startup profile:
export PATH="${PATH}:/Users/tomhuda/.sm/bin:/Users/tomhuda/.sm/pkg/active/bin:/Users/tomhuda/.sm/pkg/active/sbin"
Then either close the current shell or source the profile file.
S{cripting,ystem,tack} Management (SM) Framework (Core) installed.
~/Code/tokaidoapp ‹ruby-1.9.3› ‹master› $ sm zlib install static
[✔] zlib 1.2.7 ~ dependencies
[ ] zlib 1.2.7 ~ fetch... cat: /Users/tomhuda/.sm/archives/zlib-1.2.7.tar.gz.checksum: No such file or directory
[✔] zlib 1.2.7 ~ fetch
[✔] zlib 1.2.7 ~ patch
[✔] zlib 1.2.7 ~ preconfigure
[✔] zlib 1.2.7 ~ configure
[✔] zlib 1.2.7 ~ build
[✔] zlib 1.2.7 ~ preinstall
[✔] zlib 1.2.7 ~ install
[✔] zlib 1.2.7 ~ postinstall
[✔] zlib 1.2.7
~/Code/tokaidoapp ‹ruby-1.9.3› ‹master› $ sm tokaidoapp dependencies
[✔] libraries head
[✔] tools head
[✔] gnu head
[✔] pkg-config ~ already installed
[✔] gdbm ~ already installed
[✔] libyaml ~ already installed
[✔] zlib ~ already installed
[✔] ncurses 5.9 ~ dependencies
[✔] ncurses 5.9 ~ fetch
[✔] ncurses 5.9 ~ patch
[✔] ncurses 5.9 ~ configure
[✔] ncurses 5.9 ~ build
[✔] ncurses 5.9 ~ preinstall
[✔] ncurses 5.9 ~ install
[✔] ncurses 5.9 ~ postinstall
[✔] ncurses 5.9
[✔] readline 6.2 ~ dependencies
[✔] readline 6.2 ~ fetch
[✔] readline 6.2 ~ patch
[✔] readline 6.2 ~ preconfigure
[✔] readline 6.2 ~ configure
[✔] readline 6.2 ~ build
[✔] readline 6.2 ~ preinstall
[✔] readline 6.2 ~ install
[✔] readline 6.2 ~ postinstall
[✔] readline 6.2
[✔] openssl 0.9.8t ~ dependencies
[✔] openssl 0.9.8t ~ fetch
[✔] openssl 0.9.8t ~ patch
[✔] openssl 0.9.8t ~ preconfigure
[✔] openssl 0.9.8t ~ configure
[✔] openssl 0.9.8t ~ build
[✔] openssl 0.9.8t ~ preinstall
[✔] openssl 0.9.8t ~ install
[✔] openssl 0.9.8t ~ postinstall
[✔] openssl 0.9.8t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment