larsch / ocra

One-Click Ruby Application Builder
http://ocra.rubyforge.org/
832 stars 84 forks source link

Missing psych / libyaml in created .exe #64

Closed pmuens closed 11 years ago

pmuens commented 11 years ago

Hey there, i've a Rails 4.0 Application running on Ruby 2.0. If I use the ocra-Command (see below) to build an exe, everything is fine and runs through. I'm also able to run this exe with no problems on my development-Machine (on which I've build the exe-File).

ocra example_sqlite_chartjs\bin\rails example_sqlite_chartjs --add-all-core --gemfile example_sqlite_chartjs\Gemfile --no-dep-run --gem-full --chdir-first --output example_sqlite_chartjs.exe -- server

However, if I try to run this exe on another windows-System I get an error that libyaml / psych is not installed.

Is there any possibility to solve this?

Here's a link to a stackoverflow-Threa I've created for this one:

http://stackoverflow.com/questions/19099860/missing-libyaml-in-ruby-on-rails-ocra-build

Thanks!

pmuens commented 11 years ago

So I've just uninstalled Ruby 2.0.0 and installed Ruby 1.9.3. Now I get the error that openssl is not included. One very interesting thing is that on the machine I run the exe, I get the error-Message which points to a ruby 1.9.1-Directory...

pmuens commented 11 years ago

Issue can be closed. I finally found a solution for this one.

All I have to do is to add all the dependent .dll-Files which can be found in the bin-Directory of the Ruby installation.

Thank you for OCRA BTW! Great tool!

Here's the command I've used:

ocra example_sqlite_chartjs\bin\rails example_sqlite_chartjs --add-all-core --gemfile example_sqlite_chartjs\Gemfile --no-dep-run --gem-full --dll libeay32.dll --dll libffi-6.dll --dll libgdbm_compat-3.dll --dll libgdbm-3.dll --dll libiconv-2.dll --dll libyaml-0-2.dll --dll msvcrt-ruby191.dll --dll pdcurses.dll --dll sqlite3.dll --dll ssleay32.dll --dll tcl85.dll --dll tclpip85.dll --dll tk85.dll --dll zlib1.dll --chdir-first --output example_sqlite_chartjs.exe -- server