-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rails/OSX sample: fails to run on a separate OSX machine (nokogiri.bundle, Library not loaded) #1
Comments
Hi @dennislysenko. Can you please compile with this environment variable:
Then, please let me know if works. |
Thanks for the response! I did that and tried it on my parallels VM again, and got a similar error with a smaller stacktrace:
As you can see I also tried downgrading nokogiri versions to the minimum for rails 5, which unfortunately didn't work either. |
Here is some context about my development machine. I think based on the stack trace on the VM, it is trying to load my homebrew install of libxml2 rather than a bundled one, finding that this doesn't exist on the VM, and falling back to /usr/lib/libxml2.2.dylib which only provides version 10.0.0 on macOS sierra (on both my VM and my development machine.)
|
Perhaps using the traveling ruby prepackaged nokogiri could help circumvent this issue? Not entirely sure myself. |
Hello!
Fantastic 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.)When I try to run it on a Parallels VM of macOS Sierra I just spun up, however, I get this error:
Any 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.
The text was updated successfully, but these errors were encountered: