Skip to content

Instantly share code, notes, and snippets.

View sacarlson's full-sized avatar

sacarlson sacarlson

View GitHub Profile
@sacarlson
sacarlson / keybase.md
Created November 22, 2018 04:13
keybase proof

Keybase proof

I hereby claim:

  • I am sacarlson on github.
  • I am sacarlson (https://keybase.io/sacarlson) on keybase.
  • I have a public key ASDXjs82e8ig4Ino6CnER4pSunqVyZOIeU70KjA3K7GMvwo

To claim this, I am signing this object:

module Module2
class Class2
include Module2
end
def version
return "0.1.0"
end
end
include Module2
sacarlson@sacarlson-asrock ~/github/stellar/gb $ go get github.com/constabulary/gb/...
# github.com/constabulary/gb
src/github.com/constabulary/gb/install.go:79: pkg.MFiles undefined (type *Package has no field or method MFiles)
src/github.com/constabulary/gb/package.go:67: p.MFiles undefined (type *Package has no field or method MFiles)
problem seen when useing rbenv and bundler and moving between apps running ruby -v 1.9.3-p484 and ruby -v 2.2.1 with these apps
note: my solution shown here is now working for the moment using gem pristine with both versions now working at the same time
last problem app seen after bellow app bundler install:
https://github.com/sacarlson/stellar_utility commit d3150c5581cd88f08bc57e74b50265eea38e3c44 runs with ruby -v 1.9.3-p484
error seen:
sacarlson@sacarlson-asrock ~/github/stellar/stellar_utility $ rr create_account_save.rb
/home/sacarlson/.rbenv/versions/1.9.3-p484/bin/ruby: symbol lookup error: /home/sacarlson/.bundle/gems/json-1.8.3/lib/json/ext/parser.so: undefined symbol: rb_str_new_static
method to fix:
ruby rbenv with bundler project quickstart:
cd into/project/path
#if new version of ruby needed
rbenv versions # see what's available and what's set to run
rbenv install 1.9.3-p484
# set that installed version to run in this path 1.9.3-p484 is default ubuntu version
rbenv local 1.9.3-p484
# if this is a new installed version of ruby you will also need to install bundler
/home/sacarlson/.bundle/gems/json-1.8.3/lib/json/common.rb:67: [BUG] Segmentation fault at 0x00000000000018
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]
-- Control frame information -----------------------------------------------
c:0040 p:---- s:0126 e:000125 CFUNC :initialize
c:0039 p:---- s:0124 e:000123 CFUNC :new
c:0038 p:0075 s:0121 e:000118 METHOD /home/sacarlson/.bundle/gems/json-1.8.3/lib/json/common.rb:67
c:0037 p:0070 s:0110 e:000108 CLASS /home/sacarlson/.bundle/gems/json-1.8.3/lib/json/ext.rb:17
c:0036 p:0011 s:0107 e:000106 CLASS /home/sacarlson/.bundle/gems/json-1.8.3/lib/json/ext.rb:12
c:0035 p:0056 s:0105 e:000104 TOP /home/sacarlson/.bundle/gems/json-1.8.3/lib/json/ext.rb:9 [FINISH]
"0100000001bb664ff716b9dfc831bcc666c1767f362ad467fcfbaf4961de92e45547daab870100000090000047304402204f05dddd69fb1490ea4e6e7c462b7eecad8beaeec1483fee14426b1d2897edc8022033f5a7a333d014daf53e11d810289ebf0c9c5145ec2ff5997c3ca92eafd70a73010051004104b68ef7d8f24d45e1771101e269c0aacf8d3ed7ebe12b65521712bba768ef53e1e84fff3afbee360acea0d1f461c013557f71d426ac17a293c5eebf06e468253e00ffffffff0280969800000000001976a9140817482d2e97e4be877efe59f4bae108564549f188ac809698000000000062537a7652a269537a829178a91480677c5392220db736455533477d0bc2fba65502879b69537a829178a91402d7aa2e76d9066fb2b3c41ff8839a5c81bdca19879b69537a829178a91410039ce4fdb5d4ee56148fe3935b9bfbbe4ecc89879b6953ae00000000000000000000000000000000000000000000000000000000000000000000000000ffffffff00020b66726f6d6163636f756e7400057370656e74000000000000000000000000"