Jump to content



0

Installing Batari Basic for Mac OSX


8 replies to this topic

#1 gHan2000 OFFLINE  

gHan2000

    Space Invader

  • 41 posts

Posted Fri Sep 3, 2010 6:15 PM

I have downloaded the Mac OSX version of bB, but I need help installing. I know there are instructions on the website, but those are CONFUSING. Can someone show give a better example of how to install it?

#2 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

  • 20,916 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Fri Sep 3, 2010 6:21 PM

So you can't run software as if you have a Microsoft PC? If you can, you can use VbB and everything will be easier:

http://www.randomter...#gettingstarted

#3 batari OFFLINE  

batari

    )66]U('=I;B$*

  • 6,236 posts
  • begin 644 contest

Posted Sat Sep 4, 2010 3:54 PM

bB is a command-line program. It is set up and run from the terminal application in OS X.

Download the PC version, then the Mac binaries to the desktop, linked below (ctrl-click, save as, and make sure they are saved to the desktop):
http://bataribasic.c...version_1.0.zip
http://bataribasic.c...version_1.0.zip

Run the terminal app, then the following will install it:

cd ~
mkdir Atari2600
cd Atari2600
mkdir bB
cd bB
unzip ~/desktop/batari_Basic_version_1.0.zip
unzip ~/desktop/bB_OSX_binaries_version_1.0.zip

Close the terminal app, and reopen (this is also how you run it from now on):

Type the following two lines to set up the environment. This only needs to be done once per terminal session:
export bB=~/Atari2600/bB
export PATH=$PATH:$bB

(If you add the above two lines to /etc/bashrc, this doesn't need to be done every terminal session. Only change /etc/bashrc if you know what you are doing and are comfortable editing your system files.)

Now test your setup:

cd ~/Atari2600/bB/samples
2600basic.sh sample.bas

Now try sample.bas.bin in an emulator (located in your home folder, under Atari2600/bB/samples.)

#4 gHan2000 OFFLINE  

gHan2000

    Space Invader

  • 41 posts

Posted Tue Oct 5, 2010 6:38 PM

View Postbatari, on Sat Sep 4, 2010 3:54 PM, said:

bB is a command-line program. It is set up and run from the terminal application in OS X.

Download the PC version, then the Mac binaries to the desktop, linked below (ctrl-click, save as, and make sure they are saved to the desktop):
http://bataribasic.c...version_1.0.zip
http://bataribasic.c...version_1.0.zip

Run the terminal app, then the following will install it:

cd ~
mkdir Atari2600
cd Atari2600
mkdir bB
cd bB
unzip ~/desktop/batari_Basic_version_1.0.zip
unzip ~/desktop/bB_OSX_binaries_version_1.0.zip

Close the terminal app, and reopen (this is also how you run it from now on):

Type the following two lines to set up the environment. This only needs to be done once per terminal session:
export bB=~/Atari2600/bB
export PATH=$PATH:$bB

(If you add the above two lines to /etc/bashrc, this doesn't need to be done every terminal session. Only change /etc/bashrc if you know what you are doing and are comfortable editing your system files.)

Now test your setup:

cd ~/Atari2600/bB/samples
2600basic.sh sample.bas

Now try sample.bas.bin in an emulator (located in your home folder, under Atari2600/bB/samples.)

Thanks, I will try that.

#5 gHan2000 OFFLINE  

gHan2000

    Space Invader

  • 41 posts

Posted Tue Oct 5, 2010 6:53 PM

View PostgHan2000, on Fri Sep 3, 2010 6:15 PM, said:

I have downloaded the Mac OSX version of bB, but I need help installing. I know there are instructions on the website, but those are CONFUSING. Can someone show give a better example of how to install it?

If anyone has an installed Mac OS X version of bB, please put it on MegaUpload or MediaFire or something.

#6 Byte Knight OFFLINE  

Byte Knight

    Moonsweeper

  • 369 posts
  • Robinett Rules!
  • Location:Waconia, MN

Posted Tue May 10, 2011 4:18 PM

So I'm all excited to try out the new bB 1.1 beta, but I can't seem to get things to work on my Mac. I've made the bB 1.1 beta folder at the root (~) directory and copied in the Mac OS binaries but it doesn't seem to recognize the new DPC+ kernel. Here's what I'm doing at the Terminal level - am I missing something simple?

Last login: Tue May 10 16:46:28 on ttys000
imac-2:~ Todd$ export bB=~/bB/
imac-2:~ Todd$ export PATH=$PATH:$bB
imac-2:~ Todd$ cd bB
imac-2:bB Todd$ ls
2600bas.bat makefile
2600bas.c msdpc.bas
2600basic msdpc.bas.asm
2600basic.exe msdpc.bas.bin
2600basic.sh optimize
2600basic_variable_redefs.h optimize.exe
README.txt optimize.lex
bB.asm postprocess
dasm postprocess.c
dasm.exe postprocess.exe
includes preprocess
includes.bB preprocess.exe
keywords.c preprocess.lex
keywords.h statements.c
license.txt statements.h
mac-readme.txt
imac-2:bB Todd$ 2600basic.sh msdpc.bas
Starting build of msdpc.bas
(2) Parse error: unrecognized character ";"
(1): set kernel: kernel name unknown or unspecified

2600 Basic compilation complete.
DASM V2.20.07, Macro Assembler ©1988-2003
bytes of ROM space left
2878 bytes of ROM space left
Complete.
Build complete.
imac-2:bB Todd$

#7 RevEng ONLINE  

RevEng

    River Patroller

  • 2,010 posts
  • bit shoveler
  • Location:Canada

Posted Tue May 10, 2011 5:35 PM

Can you "echo $PATH"? From the error it looks like it's using the old bB directory, since it doesn't understand the semicolon comments in msdpc.bas.

#8 Byte Knight OFFLINE  

Byte Knight

    Moonsweeper

  • 369 posts
  • Robinett Rules!
  • Location:Waconia, MN

Posted Tue May 10, 2011 8:37 PM

So RevEng has figured out that my Mac OS X binaries are too old to run the beta version. Does anyone have the latest binaries so I don't have to boot up in Windows?

Thanks!

#9 Byte Knight OFFLINE  

Byte Knight

    Moonsweeper

  • 369 posts
  • Robinett Rules!
  • Location:Waconia, MN

Posted Tue May 10, 2011 10:05 PM

Disregard - I just fixed the problem using the "make" command in the bB folder after installing the Xcode Tools from the Mac OS X Install DVD.

Thanks to RevEng for all his help!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users