{"action":"created","issue":{"url":"https://api.github.com/repos/loureirorg/rb2exe/issues/1","repository_url":"https://api.github.com/repos/loureirorg/rb2exe","labels_url":"https://api.github.com/repos/loureirorg/rb2exe/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/loureirorg/rb2exe/issues/1/comments","events_url":"https://api.github.com/repos/loureirorg/rb2exe/issues/1/events","html_url":"https://github.com/loureirorg/rb2exe/issues/1","id":179656557,"number":1,"title":"Rails/OSX sample: fails to run on a separate OSX machine (nokogiri.bundle, Library not loaded)","user":{"login":"dennislysenko","id":5114111,"avatar_url":"https://avatars.githubusercontent.com/u/5114111?v=3","gravatar_id":"","url":"https://api.github.com/users/dennislysenko","html_url":"https://github.com/dennislysenko","followers_url":"https://api.github.com/users/dennislysenko/followers","following_url":"https://api.github.com/users/dennislysenko/following{/other_user}","gists_url":"https://api.github.com/users/dennislysenko/gists{/gist_id}","starred_url":"https://api.github.com/users/dennislysenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dennislysenko/subscriptions","organizations_url":"https://api.github.com/users/dennislysenko/orgs","repos_url":"https://api.github.com/users/dennislysenko/repos","events_url":"https://api.github.com/users/dennislysenko/events{/privacy}","received_events_url":"https://api.github.com/users/dennislysenko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-28T01:09:13Z","updated_at":"2016-09-28T01:50:27Z","closed_at":null,"body":"Hello!\r\n\r\nFantastic library here! I'm having some trouble though. macOS Sierra, ruby 2.2.2, rails 5.0.0.1 -- I've created a new rails project (rails new ExecutableTest). I've compiled it into an executable using `rb2exe --rails --target=osx`, which works fantastically on my local machine. (There are a few more intricacies relating to getting it to use Sqlite3 db, I basically had to pass the path to the db as an environment variable containing the absolute path so I could use the executable from anywhere.)\r\n\r\nWhen I try to run it on a Parallels VM of macOS Sierra I just spun up, however, I get this error:\r\n\r\n```\r\nos-x-10:Desktop jaqen$ DB_PATH=`pwd`/release.sqlite3 ./output \r\n/tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/nokogiri-1.6.8/lib/nokogiri.rb:32:in `require': dlopen(/tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/nokogiri-1.6.8/lib/nokogiri/nokogiri.bundle, 9): Library not loaded: /usr/local/opt/libxml2/lib/libxml2.2.dylib (LoadError)\r\n  Referenced from: /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/nokogiri-1.6.8/lib/nokogiri/nokogiri.bundle\r\n  Reason: Incompatible library version: nokogiri.bundle requires version 12.0.0 or later, but libxml2.2.dylib provides version 10.0.0 - /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/nokogiri-1.6.8/lib/nokogiri/nokogiri.bundle\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/nokogiri-1.6.8/lib/nokogiri.rb:32:in `rescue in <top (required)>'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/nokogiri-1.6.8/lib/nokogiri.rb:28:in `<top (required)>'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/loofah-2.0.3/lib/loofah.rb:3:in `require'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/loofah-2.0.3/lib/loofah.rb:3:in `<top (required)>'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/rails-html-sanitizer-1.0.3/lib/rails-html-sanitizer.rb:2:in `require'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/rails-html-sanitizer-1.0.3/lib/rails-html-sanitizer.rb:2:in `<top (required)>'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/actionview-5.0.0.1/lib/action_view/helpers/sanitize_helper.rb:2:in `require'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/actionview-5.0.0.1/lib/action_view/helpers/sanitize_helper.rb:2:in `<top (required)>'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/actionview-5.0.0.1/lib/action_view/helpers/text_helper.rb:32:in `<module:TextHelper>'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/actionview-5.0.0.1/lib/action_view/helpers/text_helper.rb:29:in `<module:Helpers>'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/actionview-5.0.0.1/lib/action_view/helpers/text_helper.rb:6:in `<module:ActionView>'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/actionview-5.0.0.1/lib/action_view/helpers/text_helper.rb:4:in `<top (required)>'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/actionview-5.0.0.1/lib/action_view/helpers/form_tag_helper.rb:18:in `<module:FormTagHelper>'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/actionview-5.0.0.1/lib/action_view/helpers/form_tag_helper.rb:14:in `<module:Helpers>'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/actionview-5.0.0.1/lib/action_view/helpers/form_tag_helper.rb:8:in `<module:ActionView>'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/actionview-5.0.0.1/lib/action_view/helpers/form_tag_helper.rb:6:in `<top (required)>'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/actionview-5.0.0.1/lib/action_view/helpers/form_helper.rb:4:in `require'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/actionview-5.0.0.1/lib/action_view/helpers/form_helper.rb:4:in `<top (required)>'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/actionview-5.0.0.1/lib/action_view/helpers.rb:50:in `<module:Helpers>'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/actionview-5.0.0.1/lib/action_view/helpers.rb:4:in `<module:ActionView>'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/actionview-5.0.0.1/lib/action_view/helpers.rb:3:in `<top (required)>'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/sprockets-rails-3.2.0/lib/sprockets/rails/context.rb:7:in `<module:Context>'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/sprockets-rails-3.2.0/lib/sprockets/rails/context.rb:6:in `<module:Rails>'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/sprockets-rails-3.2.0/lib/sprockets/rails/context.rb:5:in `<module:Sprockets>'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/sprockets-rails-3.2.0/lib/sprockets/rails/context.rb:4:in `<top (required)>'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/sprockets-rails-3.2.0/lib/sprockets/railtie.rb:7:in `require'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/sprockets-rails-3.2.0/lib/sprockets/railtie.rb:7:in `<top (required)>'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/sass-rails-5.0.6/lib/sass/rails/railtie.rb:3:in `require'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/sass-rails-5.0.6/lib/sass/rails/railtie.rb:3:in `<top (required)>'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/sass-rails-5.0.6/lib/sass/rails.rb:11:in `require'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/sass-rails-5.0.6/lib/sass/rails.rb:11:in `<top (required)>'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/sass-rails-5.0.6/lib/sass-rails.rb:1:in `require'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/sass-rails-5.0.6/lib/sass-rails.rb:1:in `<top (required)>'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/runtime.rb:76:in `require'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/runtime.rb:76:in `block (2 levels) in require'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/runtime.rb:72:in `each'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/runtime.rb:72:in `block in require'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/runtime.rb:61:in `each'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/runtime.rb:61:in `require'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler.rb:134:in `require'\r\n\tfrom /private/tmp/selfextract.hRLsK1/lib/app/config/application.rb:7:in `<top (required)>'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:88:in `require'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:88:in `block in server'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:85:in `tap'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:85:in `server'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:49:in `run_command!'\r\n\tfrom /tmp/selfextract.hRLsK1/lib/vendor/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/commands.rb:18:in `<top (required)>'\r\n\tfrom bin/rails:9:in `require'\r\n\tfrom bin/rails:9:in `<main>'\r\nos-x-10:Desktop jaqen$ \r\n```\r\n\r\nAny ideas? Perhaps I am misunderstanding the use-case here...is rb2exe meant to make a redistributable binary of a ruby program (incl rails server)? Or perhaps I need to take some extra step to properly precompile libxml2 for nokogiri? Any response is appreciated."},"comment":{"url":"https://api.github.com/repos/loureirorg/rb2exe/issues/comments/250050780","html_url":"https://github.com/loureirorg/rb2exe/issues/1#issuecomment-250050780","issue_url":"https://api.github.com/repos/loureirorg/rb2exe/issues/1","id":250050780,"user":{"login":"loureirorg","id":371973,"avatar_url":"https://avatars.githubusercontent.com/u/371973?v=3","gravatar_id":"","url":"https://api.github.com/users/loureirorg","html_url":"https://github.com/loureirorg","followers_url":"https://api.github.com/users/loureirorg/followers","following_url":"https://api.github.com/users/loureirorg/following{/other_user}","gists_url":"https://api.github.com/users/loureirorg/gists{/gist_id}","starred_url":"https://api.github.com/users/loureirorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loureirorg/subscriptions","organizations_url":"https://api.github.com/users/loureirorg/orgs","repos_url":"https://api.github.com/users/loureirorg/repos","events_url":"https://api.github.com/users/loureirorg/events{/privacy}","received_events_url":"https://api.github.com/users/loureirorg/received_events","type":"User","site_admin":false},"created_at":"2016-09-28T01:50:27Z","updated_at":"2016-09-28T01:50:27Z","body":"Hi @dennislysenko.\r\n\r\nCan you please compile with this environment variable:\r\n```\r\nexport NOKOGIRI_USE_SYSTEM_LIBRARIES=1\r\nrb2exe --rails --target=osx\r\n```\r\n\r\nThen, please let me know if works."}}
{"actor":{"display_login":"loureirorg"}}