Author Topic: New install of ScriptBasic on Linux  (Read 7623 times)

mesbas

  • Guest
New install of ScriptBasic on Linux
« on: December 06, 2010, 07:46:32 AM »
I have recently installed ScriptBasic on a Linux box running Fedora release 14.
The kernel version is 2.6.35.9-64, cpu is an Intel dual core x86_64.

This was quite a project.

After creating the directory from the tar file, I performed the following tasks:

Code: [Select]
chown -R root:root scriptbasic
cd scriptbasic
./setup

dll & lib fail for both dbd & psgl because I don't have or use either of those databases.

Code: [Select]
dos2unix *
chmod +x setup.pl
./setup.pl

dll fails for all modules because we aren't running windows.

You now have to modify the "Makefile"

After the endif for the Darwin test, add a new line containing:
EXTRA_CFLAGS := -fPIC

Now run the following commands:
Code: [Select]
make clean
make all
./install

Everything seems to work fine.
My next task is to compile a C program from a converted .bas file.

Support

  • Administrator
  • *****
  • Posts: 19
    • View Profile
Re: New install of ScriptBasic on Linux
« Reply #1 on: December 06, 2010, 09:02:26 AM »
Welcome to the ScriptBasic forum. Glad to see you got SB running on your system.

./setup --unix should take care of any confusion on the script's part as to what OS it's running under. It shouldn't try to build CIO,NT or DYC extension modules under Linux. (Windows specific) The Berkely DB (BDB) and PostgreSQL (PSQL) modules were written by the author's students and had their own thoughts how the make should work. Read the notes in build directories for these extension modules if you have any interest building them.

Armando I. Rivera (AIR) has been maintaining the ScriptBasic code most recently when he finds extra time in his busy schedule. He has compiled 64 bit versions for Window (MinGW-gcc), Linux and the Mac. I'm running under 32 bit Linux (Ubuntu and CentOS) and have a Windows partition for stuff I can't run under Wine. I'm looking for a 64 bit box under the tree this year if Santa finds a good deal on one.

Keep us in the loop with your progress.




« Last Edit: December 06, 2010, 08:22:56 PM by support »