listia / laptop

A shell script which turns your Linux or Mac OS X laptop into an awesome development machine.
MIT License
0 stars 0 forks source link

Errors #7

Open geehsien opened 7 years ago

geehsien commented 7 years ago

I messed up my environment so I was trying to go through the setup again: https://github.com/listia/listia/wiki/Development-Environment-Setup

After going through the main bootstrap script: $ bash <(curl -sSL https://raw.githubusercontent.com/listia/laptop/master/mac) -d "/Absoulte/Path/To/listia/App" -h listia

I get:

/Users/geehsien/.rvm/rubies/ruby-2.2.6/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': dlopen(/Users/geehsien/.rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/x86_64-darwin15/psych.bundle, 9): Library not loaded: /usr/local/lib/libyaml-0.2.dylib (LoadError)
  Referenced from: /Users/geehsien/.rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/x86_64-darwin15/psych.bundle
  Reason: image not found - /Users/geehsien/.rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/x86_64-darwin15/psych.bundle
    from /Users/geehsien/.rvm/rubies/ruby-2.2.6/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /Users/geehsien/.rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/psych.rb:1:in `<top (required)>'

Separately, I noticed some inconsistencies regarding ruby:

  1. On the dev setup page, we mention ruby ruby-2.0.0-p645 and Ruby 1.9.3-p547
  2. Our Gemfile shows ruby "2.2.6"

cc @ngan @kureikain 😅

v9n commented 7 years ago

@geehsien Yeah, it has some out of date content between wiki, doc and this repo. I'll fix and make them in sync.

I think if you try to re-run bundle it should fix your issue.

Vinh

On Dec 29, 2016, at 2:36 PM, Gee-Hsien Chuang notifications@github.com wrote:

I messed up my environment so I was trying to go through the setup again: https://github.com/listia/listia/wiki/Development-Environment-Setup https://github.com/listia/listia/wiki/Development-Environment-Setup After going through the main bootstrap script: $ bash <(curl -sSL https://raw.githubusercontent.com/listia/laptop/master/mac) -d "/Absoulte/Path/To/listia/App" -h listia

I get:

/Users/geehsien/.rvm/rubies/ruby-2.2.6/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require': dlopen(/Users/geehsien/.rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/x86_64-darwin15/psych.bundle, 9): Library not loaded: /usr/local/lib/libyaml-0.2.dylib (LoadError) Referenced from: /Users/geehsien/.rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/x86_64-darwin15/psych.bundle Reason: image not found - /Users/geehsien/.rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/x86_64-darwin15/psych.bundle from /Users/geehsien/.rvm/rubies/ruby-2.2.6/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:inrequire' from /Users/geehsien/.rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/psych.rb:1:in `<top (required)>' Separately, I noticed some inconsistencies regarding ruby:

On the dev setup page, we mention ruby ruby-2.0.0-p645 and Ruby 1.9.3-p547 Our Gemfile shows ruby "2.2.6" cc @ngan https://github.com/ngan @kureikain https://github.com/kureikain 😅

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/listia/laptop/issues/7, or mute the thread https://github.com/notifications/unsubscribe-auth/AADCWtdB8-9VP7iksVwXd5_nTm72o12Aks5rNDXQgaJpZM4LX4-7.

geehsien commented 7 years ago

@kureikain here's the output when running bundle install

$ bundle install
The git source `git://github.com/listia/telapi-ruby.git` uses the `git` protocol, which transmits data without encryption. Disable this warning with `bundle config git.allow_insecure true`, or switch to the `https` protocol to keep your data secure.
Using rake 11.3.0
Using StreetAddress 1.0.6
Using accountingjs-rails 0.0.4
Using i18n 0.7.0
... 
Using capybara 2.3.0
Using resque 1.25.2
Using rubocop-rspec 1.5.1
/Users/geehsien/.rvm/rubies/ruby-2.2.6/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': dlopen(/Users/geehsien/.rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/x86_64-darwin15/psych.bundle, 9): Library not loaded: /usr/local/lib/libyaml-0.2.dylib (LoadError)
  Referenced from: /Users/geehsien/.rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/x86_64-darwin15/psych.bundle
  Reason: image not found - /Users/geehsien/.rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/x86_64-darwin15/psych.bundle
    from /Users/geehsien/.rvm/rubies/ruby-2.2.6/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /Users/geehsien/.rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/psych.rb:1:in `<top (required)>'
    from /Users/geehsien/.rvm/rubies/ruby-2.2.6/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /Users/geehsien/.rvm/rubies/ruby-2.2.6/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /Users/geehsien/.rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/yaml.rb:5:in `<top (required)>'
    from /Users/geehsien/.rvm/rubies/ruby-2.2.6/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /Users/geehsien/.rvm/rubies/ruby-2.2.6/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /Users/geehsien/.rvm/rubies/ruby-2.2.6/lib/ruby/site_ruby/2.2.0/rubygems.rb:624:in `load_yaml'
    from /Users/geehsien/.rvm/rubies/ruby-2.2.6/lib/ruby/site_ruby/2.2.0/rubygems/config_file.rb:328:in `load_file'
    from /Users/geehsien/.rvm/rubies/ruby-2.2.6/lib/ruby/site_ruby/2.2.0/rubygems/config_file.rb:197:in `initialize'
    from /Users/geehsien/.rvm/rubies/ruby-2.2.6/lib/ruby/site_ruby/2.2.0/rubygems.rb:297:in `new'
    from /Users/geehsien/.rvm/rubies/ruby-2.2.6/lib/ruby/site_ruby/2.2.0/rubygems.rb:297:in `configuration'
    from /Users/geehsien/.rvm/gems/ruby-2.2.6@global/gems/executable-hooks-1.3.2/lib/executable-hooks/wrapper.rb:23:in `ensure_custom_shebang'
    from /Users/geehsien/.rvm/gems/ruby-2.2.6@global/gems/executable-hooks-1.3.2/lib/executable-hooks/wrapper.rb:36:in `install'
    from /Users/geehsien/.rvm/gems/ruby-2.2.6@global/gems/executable-hooks-1.3.2/lib/rubygems_plugin.rb:16:in `block in <top (required)>'
    from /Users/geehsien/.rvm/gems/ruby-2.2.6@listia/gems/bundler-1.13.6/lib/bundler/source/path/installer.rb:62:in `call'
    from /Users/geehsien/.rvm/gems/ruby-2.2.6@listia/gems/bundler-1.13.6/lib/bundler/source/path/installer.rb:62:in `block in run_hooks'
    from /Users/geehsien/.rvm/gems/ruby-2.2.6@listia/gems/bundler-1.13.6/lib/bundler/source/path/installer.rb:61:in `each'
    from /Users/geehsien/.rvm/gems/ruby-2.2.6@listia/gems/bundler-1.13.6/lib/bundler/source/path/installer.rb:61:in `run_hooks'
    from /Users/geehsien/.rvm/gems/ruby-2.2.6@listia/gems/bundler-1.13.6/lib/bundler/source/path/installer.rb:28:in `block in post_install'
    from /Users/geehsien/.rvm/gems/ruby-2.2.6@listia/gems/bundler-1.13.6/lib/bundler/shared_helpers.rb:54:in `chdir'
    from /Users/geehsien/.rvm/gems/ruby-2.2.6@listia/gems/bundler-1.13.6/lib/bundler/shared_helpers.rb:54:in `block in chdir'
    from /Users/geehsien/.rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/monitor.rb:211:in `mon_synchronize'
    from /Users/geehsien/.rvm/gems/ruby-2.2.6@listia/gems/bundler-1.13.6/lib/bundler/shared_helpers.rb:53:in `chdir'
    from /Users/geehsien/.rvm/gems/ruby-2.2.6@listia/gems/bundler-1.13.6/lib/bundler/source/path/installer.rb:27:in `post_install'
    from /Users/geehsien/.rvm/gems/ruby-2.2.6@listia/gems/bundler-1.13.6/lib/bundler/source/path.rb:207:in `generate_bin'
    from /Users/geehsien/.rvm/gems/ruby-2.2.6@listia/gems/bundler-1.13.6/lib/bundler/source/git.rb:173:in `install'
    from /Users/geehsien/.rvm/gems/ruby-2.2.6@listia/gems/bundler-1.13.6/lib/bundler/installer/gem_installer.rb:55:in `install'
    from /Users/geehsien/.rvm/gems/ruby-2.2.6@listia/gems/bundler-1.13.6/lib/bundler/installer/gem_installer.rb:15:in `install_from_spec'
    from /Users/geehsien/.rvm/gems/ruby-2.2.6@listia/gems/bundler-1.13.6/lib/bundler/installer/parallel_installer.rb:104:in `block in worker_pool'
    from /Users/geehsien/.rvm/gems/ruby-2.2.6@listia/gems/bundler-1.13.6/lib/bundler/worker.rb:65:in `call'
    from /Users/geehsien/.rvm/gems/ruby-2.2.6@listia/gems/bundler-1.13.6/lib/bundler/worker.rb:65:in `apply_func'
    from /Users/geehsien/.rvm/gems/ruby-2.2.6@listia/gems/bundler-1.13.6/lib/bundler/worker.rb:60:in `block in process_queue'
    from /Users/geehsien/.rvm/gems/ruby-2.2.6@listia/gems/bundler-1.13.6/lib/bundler/worker.rb:57:in `loop'
    from /Users/geehsien/.rvm/gems/ruby-2.2.6@listia/gems/bundler-1.13.6/lib/bundler/worker.rb:57:in `process_queue'
    from /Users/geehsien/.rvm/gems/ruby-2.2.6@listia/gems/bundler-1.13.6/lib/bundler/worker.rb:29:in `block (2 levels) in initialize'