ocratemp.iss cannot find enumerator.so and thread.so

123 views
Skip to first unread message

Henri Karhatsu

unread,
Jun 28, 2015, 6:38:00 AM6/28/15
to ruby...@googlegroups.com
I'm trying to use OCRA with Innosetup. However, I'm getting an error that complains about missing enumerator.so in ocratemp.iss.

I modified the OCRA source code so that I was able to read the ocratemp.iss. The failure comes from these rows:

[Files]
Source: ...
...
Source: "C:/Users/myname/enumerator.so"; DestDir: "{app}/src"
Source: "C:/Users/myname/thread.so"; DestDir: "{app}/src"

I deleted the enumerator.so row and rerun OCRA with this modified file. After that the script failed in the next row. When I deleted also the thread.so, the script was able to build the exe file. However, I'm having problems using the application and don't even get any error messages, so I'm wondering that issue might be related to the missing files.

Does anyone know where those references come from? They are the only ones that are supposed to be located in my home dir. The previous Source reference is to a Rails application file and the following is ruby.exe. So they must be some special files compared to the others.

So why does OCRA want to add enumerator.so and thread.so to the src dir from my home dir and why does it assume that those files exist in my home dir? Any idea how I could fix the problem?

This is the OCRA command I'm using:

ocra myapp\start.rb myapp --no-dep-run --add-all-core --gemfile myapp\Gemfile-windows --gem-all --dll sqlite3.dll --dll ssleay32.dll --dll libyaml-0-2.dll --output myapp.exe --icon myapp\public\favicon.ico --chdir-first --no-lzma --innosetup myapp\myapp-offline.iss -- server

Lars Christensen

unread,
Jun 29, 2015, 3:12:44 AM6/29/15
to ruby...@googlegroups.com
There are a few such entries that come from Ruby's $LOADED_FEATURES, even though they are not actually files that exist anywhere. In Ocra's source theres 'IGNORE_MODULES' which was supposed to filter out known "fake" modules. I'm not sure why it isn't working for InnoSetup generation in your case.

--
You received this message because you are subscribed to the Google Groups "OCRA One-Click Application Builder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-ocra+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Henri Karhatsu

unread,
Jun 30, 2015, 3:04:13 PM6/30/15
to ruby...@googlegroups.com

There are a few such entries that come from Ruby's $LOADED_FEATURES, even though they are not actually files that exist anywhere. In Ocra's source theres 'IGNORE_MODULES' which was supposed to filter out known "fake" modules. I'm not sure why it isn't working for InnoSetup generation in your case.

Thanks for the hint, that helped a lot. It looks like IGNORE_MODULES files are excluded initially but they are added with other files to the ocratemp.iss. When InnoSetup is run after that, it obviously fails because those two files cannot be found. I created a pull request that fixed this at least for me: https://github.com/larsch/ocra/pull/97.
Reply all
Reply to author
Forward
0 new messages