Issue using Ocra with Bundler

223 views
Skip to first unread message

Christopher Davis

unread,
Mar 20, 2012, 9:56:44 AM3/20/12
to OCRA One-Click Application Builder
Hello all,

I'm having a slight issue with Ocra and was wondering if anyone out
there could help. I'm trying to compile an app that uses Bundler, but
is not Rails based. It keeps getting a permission denied when loading
bundler. I'm doing this on Windows, the bundled gems are in ./lib/ in
the app directory (bundle install --path lib). I do require bundler/
setup and rubygems at the beginning of the script.

Here's the log:

ocra myapp.rb --no-autoload --output ../myapp.exe

=== Loading script to check dependencies
=== Detected gem bundler-1.1.1 (loaded, files)
=== 64 files, 257257 bytes
=== Including 52 encoding support files (2647552 bytes, use --no-enc
to exclude)

=== Building ../myapp.exe
=== Adding user-supplied source files
=== Adding ruby executable ruby.exe
=== Adding detected DLL C:/Ruby193/bin/libeay32-1.0.0-msvcrt.dll
=== Adding detected DLL C:/Ruby193/bin/ssleay32-1.0.0-msvcrt.dll
=== Adding detected DLL C:/Ruby193/bin/ZLIB1.dll
C:/Ruby193/lib/ruby/gems/1.9.1/gems/ocra-1.3.0/bin/ocra:1094:in
`initialize': Permission denied - C:/Ruby193/lib/ruby/gems/1.9.1/gems/
bundler-1.1.1/lib/bundler (Errno::EACCES)
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ocra-1.3.0/bin/ocra:
1094:in `open'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ocra-1.3.0/bin/ocra:
1094:in `createfile'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ocra-1.3.0/bin/ocra:
878:in `block (2 levels) in build_exe'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ocra-1.3.0/bin/ocra:
875:in `each'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ocra-1.3.0/bin/ocra:
875:in `block in build_exe'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ocra-1.3.0/bin/ocra:
997:in `block in initialize'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ocra-1.3.0/bin/ocra:
983:in `open'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ocra-1.3.0/bin/ocra:
983:in `initialize'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ocra-1.3.0/bin/ocra:
822:in `new'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ocra-1.3.0/bin/ocra:
822:in `build_exe'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ocra-1.3.0/bin/ocra:
1138:in `block in <top (required)>'


Any help would be greatly appreciated.

Thanks,
Chris

Rino

unread,
Feb 20, 2015, 1:48:27 AM2/20/15
to ruby...@googlegroups.com
Try to disable antivirus.

вторник, 20 марта 2012 г., 16:56:44 UTC+3 пользователь Christopher Davis написал:
Reply all
Reply to author
Forward
0 new messages