Undefined method `relative_path_from' for nil:NilClass (NoMethodError)

177 views
Skip to first unread message

savage...@gmail.com

unread,
Sep 7, 2018, 4:43:07 AM9/7/18
to OCRA One-Click Application Builder
Okay so, I have made a random libgosu game and tried to make it executable using ocra.
Why do I get this error?

B:\RUBY\Practice\GOSU\Completed\AeroXploder>ocra AeroXploder.rb --no-dep-run
=== Detected gem did_you_mean-1.2.0 (loaded, files)
===     19 files, 38722 bytes
=== Detected gem ocra-1.3.10 (loaded, files)
===     5 files, 210830 bytes
=== Including 59 encoding support files (3909616 bytes, use --no-enc to exclude)
=== Building AeroXploder.exe
=== Adding user-supplied source files
=== Adding ruby executable ruby.exe
=== Adding detected DLL C:/Ruby25-x64/bin/ruby_builtin_dlls/libgmp-10.dll
=== Adding detected DLL C:/Ruby25-x64/bin/ruby_builtin_dlls/libffi-6.dll
=== Adding external manifest C:/Ruby25-x64/bin/ruby_builtin_dlls/ruby_builtin_dlls.manifest
=== Adding external manifest
Traceback (most recent call last):
        8: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/ocra-1.3.10/bin/ocra:1203:in `block in <top (required)>'
        7: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/ocra-1.3.10/bin/ocra:868:in `build_exe'
        6: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/ocra-1.3.10/bin/ocra:868:in `new'
        5: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/ocra-1.3.10/bin/ocra:1041:in `initialize'
        4: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/ocra-1.3.10/bin/ocra:1041:in `open'
        3: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/ocra-1.3.10/bin/ocra:1057:in `block in initialize'
        2: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/ocra-1.3.10/bin/ocra:918:in `block in build_exe'
        1: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/ocra-1.3.10/bin/ocra:918:in `each'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/ocra-1.3.10/bin/ocra:920:in `block (2 levels) in build_exe': undefined method `relative_path_from' for nil:NilClass (NoMethodError)

B:\RUBY\Practice\GOSU\Completed\AeroXploder>



Rubinator

unread,
Dec 19, 2019, 5:14:17 PM12/19/19
to OCRA One-Click Application Builder
I am facing the same issue with using Ruby 2.5. Is there a resolution for this ?
Reply all
Reply to author
Forward
0 new messages