jgclark/BibleGateway-to-Markdown

Installation issue

alephtaph opened this issue · 6 comments

Hi jgclark

Thank you for providing the script. I'm new to ruby and I'm running in to some issues:

I have downloaded the ZIP file and placed the bg2md.rb file in a folder in my directory.
Running the command chmod 755 np*.rb I get the result "No such file or directory"

Therfore running the script: bg2md.rb --version TLV --newline --copyright reference results also in: "-bash: bg2md.rb: command not found"

Any suggestions on how to procede?

Thank you for your support.

Best Regards,
Marco

Mac OS: 11.6 - olorize, optparse, and clipboard installed and updated

Hi @alephtaph. Sorry there must be a typo in the instructions.
I'm away from Mac at the moment, but try chmod 755 bg2md.rb instead.

Hi @jgclark
I tried it now on a fresh Ubuntu server with the same result.
I used already chmod 755 bg2md.rb and had the same result.
Thank you for digging in to this issue.

ok, whe I call the script like ruby bg2md.rb --version TLV --newline --copyright Jn3
I get the result of John 3

But to when I call it ruby bg2md.rb --version TLV --newline --copyright I get the error:
Error: found no useful lines in HTML data, so stopping.

Please excuse my asking. I'm familiar with the terminal and with Linux, but ruby is new ground for me.

You need to supply an actual passage reference in the last example. (I could do with a better error message!)

Updated help text.