Author Topic: bwbasic  (Read 2259 times)

Offline dougmack

  • Hero Member
  • *****
  • Posts: 981
bwbasic
« on: May 14, 2011, 02:04:39 AM »
Moved from "can I get gw basic" at the advice of one of the posters.  I have downloaded gw basic from http://sourceforge.net/projects/bwbasic/
but I am snowed on the installation.  Here's a reprint of my previous message to the general forum:

Hi, at--yes, it would seem that this would work, if I knew how to install it.  Sorry to be such a wuss, but I don't know what to do with
this big directory full of stuff.  The INSTALL file says "On Unix, type "configure; make".  Well, that is apparently insufficient.
How should the command(s) actually be written to install this software?  I have tried to google for the answer, but have not found anything
that makes any sense to me.  I have also chmod 766 configure, since it was not marked executable, but that was no help.  (Actually,
the ls -la command shows the file as configure*  --I've seen that before, but I don't know what the * means.)  Please enlighten this dope!
Thanx--doug
Blessed are the peacemakers...for they shall be shot at from both sides.  A. M. Greeley

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: bwbasic
« Reply #1 on: May 14, 2011, 02:44:45 AM »
EDIT: amended as per bitzbox suggestions, thank you.  ;)

Try as follow:

1) create a directory bwbasic
2) download the source from sourceforge
3) unzip the content
   (there is a problem with the configure script: it's not executable, and is in DOS (CR+LF) format)
4) Open Synaptic, search and install "dos2unix" utility and then run dos2unix configure
5) add execution permissions: chmod a+x configure
6) run configure: ./configure  ./configure --prefix=/usr
7) run make: make
8 ) As root, run make install: make install
9 ) run bwbasic  ;)

Quote
$ bwbasic
Bywater BASIC Interpreter/Shell, version 2.50
Copyright (c) 1993, Ted A. Campbell
Copyright (c) 1995-1997, Jon B. Volkoff

bwBASIC:

AS
« Last Edit: May 14, 2011, 04:08:32 AM by as »

Offline bitzbox

  • Full Member
  • ***
  • Posts: 197
  • Bradford, England
Re: bwbasic
« Reply #2 on: May 14, 2011, 03:56:07 AM »
If I may, please allow me to amend your instructions:

6 ) Run configure: ./configure --prefix=/usr
8 ) As root, run make install: make install
9 ) Run bwbasic

Regards .....
Martin
#357086

Offline Ertain

  • Sr. Member
  • ****
  • Posts: 365
  • I come in peace. And for some nachos.
Re: bwbasic
« Reply #3 on: May 14, 2011, 04:05:40 PM »
And if that doesn't work (the "configure" script is messed up or something) try doing this.
Code: [Select]
# Got this one from a bootstrap script.
aclocal
libtoolize --force --copy
automake --foreign --add-missing
autoconf
Then try "./configure --prefix=/usr" and "make".
"She's the boss, apple sauce!"
 -Frank Cho

Offline dougmack

  • Hero Member
  • *****
  • Posts: 981
bwbasic SOLVED--THANK YOU!
« Reply #4 on: May 20, 2011, 02:21:31 AM »
It was suggested that I post this problem in this section of the forum, so here it is:

Someone on the forum pointed me at a source for bwbasic, and I downloaded the RPM.  I don't know what I have to do now to install it.
I think it involves configure and make, but I don't know how to manipulate these things to get from "a" to "b" --the old book, "Maximum RPM"
doesn't explain this, or if it does, I couldn't find it.

If you need more information, please ask.

Thank you--doug

See my final post for comments.  --doug
« Last Edit: May 20, 2011, 10:45:36 PM by dougmack »
Blessed are the peacemakers...for they shall be shot at from both sides.  A. M. Greeley

Offline KernelKarter

  • PCLinuxOS Tester
  • Sr. Member
  • *******
  • Posts: 270
Re: bwbasic
« Reply #5 on: May 20, 2011, 02:38:52 AM »
If you could let me know where you got the RPM from, I'll take a look.

Thanks,
KK
pclinuxos-kde-2013.04 | kernel-3.2.18-pclos2.pae.bfs
- AMD Athlon 64 X2 5000+ CPU
- 4Gb RAM | nVidia 8500GT GPU

Offline dougmack

  • Hero Member
  • *****
  • Posts: 981
Re: bwbasic
« Reply #6 on: May 20, 2011, 03:34:18 AM »
I was recommended to these:

http://www.bwbasic.at/
http://sourceforge.net/projects/bwbasic/

and to the best of my recollection, I chose the first.
The files are all bwbasic-2.50  Here's a list of most of them.

[doug@localhost Documents]$ ls bwb* 
allcms.bat    bwbasic6.jcl     bwb_cnd.c  bwb_mth.c   bwb_tcc.c  bwx_tty.h      Makefile.in      stdcomp.bat
allcms.exec   bwbasic7.jcl     bwb_dio.c  bwbmvs.txt  bwbtest/   compile.bat    Makefile.ncu     subjobs.bat
allmvs.bat    bwbasic.c        bwb_elx.c  bwb_ops.c   bwb_var.c  compile.exec   makefile.qcl     unixio.c
bwbasic1.jcl  bwbasic.doc      bwb_exp.c  bwb_par.c   bwx_iqc.c  configure*     makefile.wcl386  unixio.h
bwbasic2.jcl  bwbasic.h        bwb_fnc.c  bwb_prn.c   bwx_iqc.h  configure.in*  profile.bas      zipcms.bat
bwbasic3.jcl  bwbasic INSTALL  bwb_inp.c  bwb_stc.c   bwx_ncu.c  COPYING        README           zipmvs.bat
bwbasic4.jcl  bwbasic.mak      bwb_int.c  bwb_str.c   bwx_ncu.h  example.bas    renum.c
bwbasic5.jcl  bwb_cmd.c        bwb_mes.h  bwb_tbl.c   bwx_tty.c  INSTALL        stdbwb.parm

I hate to feel so stupid!  Where can I learn more about this process?

Thanx for your interest and help.--doug

Blessed are the peacemakers...for they shall be shot at from both sides.  A. M. Greeley

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: bwbasic
« Reply #7 on: May 20, 2011, 03:55:27 AM »

Offline KernelKarter

  • PCLinuxOS Tester
  • Sr. Member
  • *******
  • Posts: 270
Re: bwbasic
« Reply #8 on: May 20, 2011, 04:11:52 AM »
Yep, those instructions sum it up very nicely  :)

However, I don't think any of the documentation or examples get installed so maybe the configure script needs tweaking?

Thanks,
KK
« Last Edit: May 20, 2011, 04:15:42 AM by KernelKarter »
pclinuxos-kde-2013.04 | kernel-3.2.18-pclos2.pae.bfs
- AMD Athlon 64 X2 5000+ CPU
- 4Gb RAM | nVidia 8500GT GPU

Offline dougmack

  • Hero Member
  • *****
  • Posts: 981
Re: bwbasic
« Reply #9 on: May 20, 2011, 04:19:37 AM »
OK, Kernel, *what* instructions?

--doug
Blessed are the peacemakers...for they shall be shot at from both sides.  A. M. Greeley

Offline KernelKarter

  • PCLinuxOS Tester
  • Sr. Member
  • *******
  • Posts: 270
Re: bwbasic
« Reply #10 on: May 20, 2011, 04:20:05 AM »
I hate to feel so stupid!  Where can I learn more about this process?
Absolutely no need to feel stupid m8, everyone has to learn and I would think one of the best places to learn would be, ummmm, here?  ;)

Quote
Thanx for your interest and help.--doug
No problem.

Cheers,
KK
pclinuxos-kde-2013.04 | kernel-3.2.18-pclos2.pae.bfs
- AMD Athlon 64 X2 5000+ CPU
- 4Gb RAM | nVidia 8500GT GPU

Offline gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3798
Re: bwbasic
« Reply #11 on: May 20, 2011, 04:25:01 AM »
There are a couple of missing steps that I found in an opensuse spec file:

Be careful! This zip file unloads all of its contents into the current directory.
from the directory that you downloaded to:

unzip bwbasic-2.50.zip -d bwbasic-2.50
cd bwbasic-2.50
cp -af /usr/share/automake*/install-sh .
autoconf
./configure
make

You can run bwbasic from this directory or install it.

su -c 'make install'

The Makefile will instruct is to install in /usr/local/bin, which is appropriate if /usr/local/bin is in your path. If not, you have to add it to your path or change the Makefile to say "prefix=/usr". Normally, this is passed with "./configure --prefix=/usr", but this doesn't seem to work with this program.

This worked for me, but this is not officially supported. I will go ahead and make this into an rpm package, but there are still a couple of details to work out. So, if you are brave and want to go ahead, I think this is enough to begin. Or, if you want to wait, there should be a package soon.

Galen

Offline KernelKarter

  • PCLinuxOS Tester
  • Sr. Member
  • *******
  • Posts: 270
Re: bwbasic
« Reply #12 on: May 20, 2011, 04:31:49 AM »
OK, Kernel, *what* instructions?
These ones:
Quote
1) create a directory bwbasic
2) download the source from sourceforge
3) unzip the content
   (there is a problem with the configure script: it's not executable, and is in DOS (CR+LF) format)
4) Open Synaptic, search and install "dos2unix" utility and then run dos2unix configure
5) add execution permissions: chmod a+x configure
6) run configure:   ./configure --prefix=/usr
7) run make: make
8 ) As root, run make install: make install
9 ) run bwbasic 

TTFN,
KK
pclinuxos-kde-2013.04 | kernel-3.2.18-pclos2.pae.bfs
- AMD Athlon 64 X2 5000+ CPU
- 4Gb RAM | nVidia 8500GT GPU

Offline dougmack

  • Hero Member
  • *****
  • Posts: 981
Re: bwbasic
« Reply #13 on: May 20, 2011, 10:39:58 PM »
bwbasic is installed and running!  Thank you!

In Galen's file, the computer barfed on "cp -af /usr..."  It doesn't like -af, and suggested something else. I decided to try the other version:
KK's instructions worked, altho there were a bunch of complaints, I think it was in ./configure and in make.
However, the thing works.  It is not completely compatible with GWbasic--some of the shortcuts don't work, as I found.  Also, it wasn't
happy with a  '60 print "output= " output' which I think ought to work, so I have to figure out why not. (Maybe a typo.)
I will have to study the readme file, which lists those commands that are implemented, but it shouldn't be too hard to edit existing code
to make it work.

Thanx again to all who worked on this.  I will keep the instructions, and see if I can figure out why they work, (or don't). It will be nice if Galen
creates a complete installable package.  There must be a lot of folks with old programs they'd like to use again.

--doug
Blessed are the peacemakers...for they shall be shot at from both sides.  A. M. Greeley

Offline gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3798
Re: bwbasic
« Reply #14 on: May 20, 2011, 10:49:34 PM »
bwbasic is installed and running!  Thank you!

In Galen's file, the computer barfed on "cp -af /usr..."  It doesn't like -af, and suggested something else.
...

Thanx again to all who worked on this.  I will keep the instructions, and see if I can figure out why they work, (or don't). It will be nice if Galen creates a complete installable package.  There must be a lot of folks with old programs they'd like to use again.

--doug

I am glad that you got it to work! I got the error that you did with the copy command, but it seemed to work anyway. I tried several different ways, and it didn't work without it. There are several patches in the opensuse rpm, but I haven't figured out what they do and whether they are relevant to the 2.50 version. I'll let you know if I get a successful package built.

Galen