ScriptBasic > Download
ScriptBasic 64 Bit Linux
Support:
ScriptBasic extension modules dynamically link to some of it's 3rd party interfaces. (cURL, MySQL, ODBC, libxml2, GD, ...) You must have these package dev libraries installed to get the SB extension modules to compile. The t.so, cgi.so, hash.so, ... should compile with no other dependencies.
I'm going to see if I can create a Debian micro instance on Amazon EC2 and build a SB 2.2 binary release.
Support:
Ron,
Here is a Debian 7 64 bit build of ScriptBasic 2.2 binary files. If you can test it on your system and let me know how it goes, that would be great.
--- Code: ---scriba executable OK
sbhttpd executable OK
libscriba library OK
MODULE sqlite: dll OK lib OK bas OK
MODULE mt: dll OK lib OK bas OK
MODULE sdbg: dll OK lib OK bas OK
MODULE hash: dll OK lib OK bas OK
MODULE dbg: dll OK lib OK bas OK
MODULE gd: dll OK lib OK bas OK
MODULE odbc: dll OK lib OK bas OK
MODULE zlib: dll OK lib OK bas OK
MODULE trial: dll OK lib OK bas OK
MODULE mysql: dll OK lib OK bas OK
MODULE mxml: dll FAIL lib FAIL bas OK
MODULE cgi: dll OK lib OK bas OK
MODULE curl: dll OK lib OK bas OK
MODULE ux: dll OK lib OK bas OK
MODULE re: dll OK lib OK bas OK
MODULE curses: dll OK lib OK bas OK
MODULE t: dll OK lib OK bas OK
admin@ip-10-191-131-54:~/sb22/source$ cd bin/exe
admin@ip-10-191-131-54:~/sb22/source/bin/exe$ ./scriba -v
ScriptBasic v2.2
Variation >>Debian64<< build 1
Magic value 859010865
Node size is 24
Extension interface version is 11
Compilation: Jul 21 2013 01:22:45
admin@ip-10-191-131-54:~/sb22/source/bin/exe$
admin@ip-10-191-131-54:~/sb22$ ls -l bin
total 1468
-rwxr-xr-x 1 admin admin 765544 Jul 21 01:26 sbhttpd
-rwxr-xr-x 1 admin admin 735791 Jul 21 01:26 scriba
admin@ip-10-191-131-54:~/sb22$ ls -l lib
total 2948
-rw-r--r-- 1 admin admin 1086770 Jul 21 01:30 libscriba.a
-rwxr-xr-x 1 admin admin 840056 Jul 21 01:30 libscriba.so
-rw-r--r-- 1 admin admin 1082582 Jul 21 01:30 lscriba.a
admin@ip-10-191-131-54:~/sb22$ ls -l modules
total 1156
-rwxr-xr-x 1 admin admin 56630 Jul 21 01:28 cgi.so
-rwxr-xr-x 1 admin admin 57111 Jul 21 01:28 curl.so
-rwxr-xr-x 1 admin admin 22222 Jul 21 01:28 curses.so
-rwxr-xr-x 1 admin admin 20411 Jul 21 01:28 dbg.so
-rwxr-xr-x 1 admin admin 31232 Jul 21 01:28 gd.so
-rwxr-xr-x 1 admin admin 13776 Jul 21 01:28 hash.so
-rwxr-xr-x 1 admin admin 29147 Jul 21 01:28 mt.so
-rwxr-xr-x 1 admin admin 27824 Jul 21 01:28 mysql.so
-rwxr-xr-x 1 admin admin 15688 Jul 21 01:28 odbc.so
-rwxr-xr-x 1 admin admin 62226 Jul 21 01:28 re.so
-rwxr-xr-x 1 admin admin 22663 Jul 21 01:28 sdbg.so
-rwxr-xr-x 1 admin admin 757133 Jul 21 01:28 sqlite.so
-rwxr-xr-x 1 admin admin 8669 Jul 21 01:28 trial.so
-rwxr-xr-x 1 admin admin 13218 Jul 21 01:28 t.so
-rwxr-xr-x 1 admin admin 3912 Jul 21 01:28 ux.so
-rwxr-xr-x 1 admin admin 13597 Jul 21 01:28 zlib.so
admin@ip-10-191-131-54:~/sb22$
--- End code ---
Update
I tried the following and the test programs ran fine.
[*]cURL
[*]GD
[*]SQLite3
[*]SB-Hash
[*]SB-New internal math functions
[/list]
I'm assuming MySQL, ODBC and SBHTTPD will run fine.
RONB:
I removed all *.so, scriba,sbhttpd.
cp *.so /usr/local/lib/scriba/
cp scriba /usr/bin/scriba
cp sbhttpd /usr/bin/sbhttpd
So far everything I have tried works perfectly; scriba, sbhttpd, all modules.
scriba ok
sbhttpd ok
curl ok
cgi ok
gd ok
others also
Are these files supposed to go somewhere? libscriba.a libscribaso lscrib.a
Or is this just the output from the build, not needed to use sb system?
Looks great, Thanks
Support:
--- Quote ---Are these files supposed to go somewhere? libscriba.a libscribaso lscrib.a
Or is this just the output from the build, not needed to use sb system?
--- End quote ---
The lib directory files are only needed if you compile your scripts to C.
Glad everything is working out for you!
Support:
I just tested the MySQL extension module under Debian 7 64 bit.
--- Code: ---' MySQL Test Program
INCLUDE mysql.bas
dbh = mysql::RealConnect("localhost","root","******","sbtest")
mysql::query(dbh,"SELECT * FROM products WHERE productLine = 'Planes'")
WHILE mysql::FetchHash(dbh,column)
PRINT column{"productCode"}," - ",column{"productName"},"\n"
WEND
PRINTNL
PRINT "The database handle is: ",dbh,"\n"
PRINT "Affected rows by SELECT: ",mysql::AffectedRows(dbh),"\n"
PRINT "Character set name is: ",mysql::CharacterSetName(dbh),"\n"
PRINT "Last error is: ",mysql::ErrorMessage(dbh),"\n"
PRINT "Client info is: ",mysql::GetClientInfo(),"\n"
PRINT "Host info is: ",mysql::GetHostInfo(dbh),"\n"
PRINT "Proto info is: ",mysql::GetProtoInfo(dbh),"\n"
PRINT "Server info is: ",mysql::GetServerInfo(dbh),"\n"
PRINT "PING result: ",mysql::Ping(dbh),"\n"
PRINT "Thread ID: ",mysql::ThreadId(dbh),"\n"
PRINT "Status is: ",mysql::Stat(dbh),"\n"
mysql::Close(dbh)
admin@ip-10-191-131-54:~/sb22/test$ scriba testmysql.sb
S18_1662 - 1980s Black Hawk Helicopter
S18_2581 - P-51-D Mustang
S24_1785 - 1928 British Royal Navy Airplane
S24_2841 - 1900s Vintage Bi-Plane
S24_3949 - Corsair F4U ( Bird Cage)
S24_4278 - 1900s Vintage Tri-Plane
S700_1691 - American Airlines: B767-300
S700_2466 - America West Airlines B757-200
S700_2834 - ATA: B757-300
S700_3167 - F/A 18 Hornet 1/72
S700_4002 - American Airlines: MD-11S
S72_1253 - Boeing X-32A JSF
The database handle is: 1
Affected rows by SELECT: 12
Character set name is: latin1
Last error is:
Client info is: 5.5.31
Host info is: Localhost via UNIX socket
Proto info is: 10
Server info is: 5.5.31-0+wheezy1
PING result: -1
Thread ID: 0
Status is: Uptime: 22639 Threads: 1 Questions: 624 Slow queries: 0 Opens: 432 Flush tables: 2 Open tables: 42 Queries per second avg: 0.027
admin@ip-10-191-131-54:~/sb22/test$
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version