intfiction.org

The Interactive Fiction Community Forum
It is currently Sat Jan 19, 2019 7:14 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sun Dec 30, 2018 10:42 pm 
Offline

Joined: Sun Mar 10, 2013 4:17 pm
Posts: 74
Location: Flatheadia, G.U.E
Hello all.
Has anyone been able to compile the Bunyon interpreter (which plays Scott Adams adventures in the TI-99 format) to compile successfully?
Once installing Rant (a ruby-based build system), and then running the rant command, I get this error:
Code:
/usr/local/lib/ruby/gems/2.4.0/gems/rant-0.5.7/lib/rant/rantlib.rb:98: warning: else without rescue is useless
/usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require': /usr/local/lib/ruby/gems/2.4.0/gems/rant-0.5.7/lib/rant/rantlib.rb:92: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n' (SyntaxError)
        when /y|yes/i: true
                      ^
/usr/local/lib/ruby/gems/2.4.0/gems/rant-0.5.7/lib/rant/rantlib.rb:93: syntax error, unexpected ':', expecting keyword_end
        when /n|no/i: false
                     ^
/usr/local/lib/ruby/gems/2.4.0/gems/rant-0.5.7/lib/rant/rantlib.rb:142: syntax error, unexpected keyword_end, expecting end-of-input
end # module Rant::Console
   ^
   from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
   from /usr/local/lib/ruby/gems/2.4.0/gems/rant-0.5.7/bin/rant:11:in `<top (required)>'
   from /usr/local/bin/rant:22:in `load'
   from /usr/local/bin/rant:22:in `<main>'


Top
 Profile Send private message  
Reply with quote  
PostPosted: Mon Dec 31, 2018 7:09 pm 
Offline

Joined: Thu Dec 14, 2017 11:31 am
Posts: 17
I am pretty confident that this is because rant doesn't work with your version of Ruby, and probably not with anything newer than 1.8.x.

It's probably easiest just to write a Makefile that does what's necessary. Hang on and I'll see if I can do that.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Mon Dec 31, 2018 8:00 pm 
Offline

Joined: Thu Dec 14, 2017 11:31 am
Posts: 17
The code also uses a couple of nonstandard string functions, strlwr and strupr, so I added definitions for these.

Clone https://github.com/thomamas/build_bunyon and run make, and it should download GlkTerm and Bunyon source, make the appropriate adjustments, and build a bunyon executable. I've confirmed that it builds without errors on my MacBook, but haven't really tested the executable.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Tue Jan 01, 2019 3:15 pm 
Offline

Joined: Sun Mar 10, 2013 4:17 pm
Posts: 74
Location: Flatheadia, G.U.E
It runs and builds flawlessly. Thanks a million.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Tue Jan 01, 2019 10:06 pm 
Offline

Joined: Thu Dec 14, 2017 11:31 am
Posts: 17
Glad to help. I'll keep the GitHub project there in case anyone else needs it.


Top
 Profile Send private message  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group