ScriptBasic
May 22, 2012, 02:14:04 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Registration Disabled Send an e-mail to support @ scriptbasic.org to request a membership to this forum. (include desired forum name)
 
   Home   Wiki Help Search Login Register  
Pages: [1]
  Print  
Author Topic: ScriptBasic 32 Bit Linux  (Read 1237 times)
support
Administrator
*****
Posts: 409


« on: April 09, 2011, 12:50:22 PM »

Armando and I used the ScriptBasic source we built the 64 bit version for to build a 32 bit version for Ubuntu 10.10.

sudo gdebi scriba-v2.1.1_i386.deb  -  Install

sudo apt-get remove scriba  -  Remove


Code:
jrs@Laptop:~/SB/scriptbasic$ sudo ./mkdeb.sh
The configuration file 'deb/scriba/etc/scriba/basic.conf' was created.
dpkg-deb: building package `scriba' in `scriba.deb'.
jrs@Laptop:~/SB/scriptbasic$ cd deb
jrs@Laptop:~/SB/scriptbasic/deb$ ls -l
total 812
drwxr-xr-x 2 jrs  jrs    4096 2011-04-09 12:20 DEBIAN
-rwxr-xr-x 1 jrs  jrs    5178 2011-04-08 13:39 deblist.txt
drwxr-xr-x 6 root root   4096 2011-04-09 12:21 scriba
-rw-r--r-- 1 root root 812402 2011-04-09 12:22 scriba-v2.1.1_i386.deb
jrs@Laptop:~/SB/scriptbasic/deb$ dpkg -c scriba-v2*
drwxr-xr-x root/root         0 2011-04-09 12:21 ./
drwxr-xr-x root/root         0 2011-04-09 12:21 ./usr/
drwxr-xr-x root/root         0 2011-04-09 12:21 ./usr/bin/
-rwxr-xr-x root/root    529394 2011-04-09 12:21 ./usr/bin/sbhttpd
-rwxr-xr-x root/root    507943 2011-04-09 12:21 ./usr/bin/scriba
drwxr-xr-x root/root         0 2011-04-09 12:21 ./usr/share/
drwxr-xr-x root/root         0 2011-04-09 12:21 ./usr/share/scriba/
drwxr-xr-x root/root         0 2011-04-09 12:21 ./usr/share/scriba/include/
-rwxr-xr-x root/root      1748 2011-04-09 12:21 ./usr/share/scriba/include/mysql.bas
-rwxr-xr-x root/root       600 2011-04-09 12:21 ./usr/share/scriba/include/time.bas
-rwxr-xr-x root/root       962 2011-04-09 12:21 ./usr/share/scriba/include/t.bas
-rwxr-xr-x root/root       336 2011-04-09 12:21 ./usr/share/scriba/include/dyc.bas
-rwxr-xr-x root/root      8331 2011-04-09 12:21 ./usr/share/scriba/include/error.bas
-rwxr-xr-x root/root      2133 2011-04-09 12:21 ./usr/share/scriba/include/hash.bas
-rwxr-xr-x root/root      1654 2011-04-09 12:21 ./usr/share/scriba/include/xml.bas
-rwxr-xr-x root/root       604 2011-04-09 12:21 ./usr/share/scriba/include/odbc.bas
-rwxr-xr-x root/root     10296 2011-04-09 12:21 ./usr/share/scriba/include/modinst.bas
-rwxr-xr-x root/root       748 2011-04-09 12:21 ./usr/share/scriba/include/curl.bas
-rwxr-xr-x root/root      1031 2011-04-09 12:21 ./usr/share/scriba/include/zlib.bas
-rwxr-xr-x root/root      1661 2011-04-09 12:21 ./usr/share/scriba/include/cio.bas
-rwxr-xr-x root/root       246 2011-04-09 12:21 ./usr/share/scriba/include/trial.bas
-rwxr-xr-x root/root      1201 2011-04-09 12:21 ./usr/share/scriba/include/mt.bas
-rwxr-xr-x root/root      5438 2011-04-09 12:21 ./usr/share/scriba/include/cgi.bas
-rwxr-xr-x root/root      2349 2011-04-09 12:21 ./usr/share/scriba/include/gd.bas
-rwxr-xr-x root/root      6577 2011-04-09 12:21 ./usr/share/scriba/include/curses.bas
-rwxr-xr-x root/root       578 2011-04-09 12:21 ./usr/share/scriba/include/ux.bas
-rwxr-xr-x root/root       709 2011-04-09 12:21 ./usr/share/scriba/include/sdbg.bas
-rwxr-xr-x root/root       709 2011-04-09 12:21 ./usr/share/scriba/include/dbg.bas
-rwxr-xr-x root/root      2180 2011-04-09 12:21 ./usr/share/scriba/include/re.bas
drwxr-xr-x root/root         0 2011-04-09 12:21 ./usr/share/scriba/source/
-rwxr-xr-x root/root      1728 2011-04-09 12:21 ./usr/share/scriba/source/heber.bas
drwxr-xr-x root/root         0 2011-04-09 12:21 ./usr/local/
drwxr-xr-x root/root         0 2011-04-09 12:21 ./usr/local/lib/
-rwxr-xr-x root/root      8344 2011-04-09 12:21 ./usr/local/lib/zlib.a
-rwxr-xr-x root/root      1656 2011-04-09 12:21 ./usr/local/lib/ux.a
-rwxr-xr-x root/root     42566 2011-04-09 12:21 ./usr/local/lib/cgi.a
-rwxr-xr-x root/root     18744 2011-04-09 12:21 ./usr/local/lib/sdbg.a
-rwxr-xr-x root/root     21464 2011-04-09 12:21 ./usr/local/lib/gd.a
-rwxr-xr-x root/root      7166 2011-04-09 12:21 ./usr/local/lib/xml.a
-rwxr-xr-x root/root     17048 2011-04-09 12:21 ./usr/local/lib/dbg.a
-rwxr-xr-x root/root    670486 2011-04-09 12:21 ./usr/local/lib/lscriba.a
-rwxr-xr-x root/root     17784 2011-04-09 12:21 ./usr/local/lib/mysql.a
-rwxr-xr-x root/root     20694 2011-04-09 12:21 ./usr/local/lib/mt.a
-rwxr-xr-x root/root      9692 2011-04-09 12:21 ./usr/local/lib/t.a
-rwxr-xr-x root/root      5216 2011-04-09 12:21 ./usr/local/lib/trial.a
-rwxr-xr-x root/root    673194 2011-04-09 12:21 ./usr/local/lib/libscriba.a
-rwxr-xr-x root/root     42636 2011-04-09 12:21 ./usr/local/lib/curl.a
-rwxr-xr-x root/root      9320 2011-04-09 12:21 ./usr/local/lib/hash.a
-rwxr-xr-x root/root     11228 2011-04-09 12:21 ./usr/local/lib/odbc.a
-rwxr-xr-x root/root     53062 2011-04-09 12:21 ./usr/local/lib/re.a
drwxr-xr-x root/root         0 2011-04-09 12:21 ./usr/local/lib/scriba/
-rwxr-xr-x root/root     12790 2011-04-09 12:21 ./usr/local/lib/scriba/odbc.so
-rwxr-xr-x root/root      9345 2011-04-09 12:21 ./usr/local/lib/scriba/xml.so
-rwxr-xr-x root/root     14654 2011-04-09 12:21 ./usr/local/lib/scriba/curses.so
-rwxr-xr-x root/root     50207 2011-04-09 12:21 ./usr/local/lib/scriba/re.so
-rwxr-xr-x root/root     21290 2011-04-09 12:21 ./usr/local/lib/scriba/mysql.so
-rwxr-xr-x root/root     17075 2011-04-09 12:21 ./usr/local/lib/scriba/dbg.so
-rwxr-xr-x root/root     10711 2011-04-09 12:21 ./usr/local/lib/scriba/t.so
-rwxr-xr-x root/root     10284 2011-04-09 12:21 ./usr/local/lib/scriba/hash.so
-rwxr-xr-x root/root     22397 2011-04-09 12:21 ./usr/local/lib/scriba/mt.so
-rwxr-xr-x root/root     18980 2011-04-09 12:21 ./usr/local/lib/scriba/sdbg.so
-rwxr-xr-x root/root     43771 2011-04-09 12:21 ./usr/local/lib/scriba/cgi.so
-rwxr-xr-x root/root     45595 2011-04-09 12:21 ./usr/local/lib/scriba/curl.so
-rwxr-xr-x root/root     30802 2011-04-09 12:21 ./usr/local/lib/scriba/psql.so
-rwxr-xr-x root/root      6232 2011-04-09 12:21 ./usr/local/lib/scriba/trial.so
-rwxr-xr-x root/root     10001 2011-04-09 12:21 ./usr/local/lib/scriba/zlib.so
-rwxr-xr-x root/root      2320 2011-04-09 12:21 ./usr/local/lib/scriba/ux.so
-rwxr-xr-x root/root     11916 2011-04-09 12:21 ./usr/local/lib/curses.a
-rwxr-xr-x root/root     27628 2011-04-09 12:21 ./usr/local/lib/psql.a
drwxr-xr-x root/root         0 2011-04-09 12:21 ./etc/
drwxr-xr-x root/root         0 2011-04-09 12:21 ./etc/init.d/
drwxr-xr-x root/root         0 2011-04-09 12:21 ./etc/scriba/
-rwxr-xr-x root/root      1775 2011-04-09 12:21 ./etc/scriba/basic.conf
drwxrwxrwx root/root         0 2011-04-09 12:21 ./.scriba/
drwxrwxrwx root/root         0 2011-04-09 12:21 ./.scriba/hebtemp/
drwxrwxrwx root/root         0 2011-04-09 12:21 ./.scriba/cache/
jrs@Laptop:~/SB/scriptbasic/deb$ ls -l
total 812
drwxr-xr-x 2 jrs  jrs    4096 2011-04-09 12:20 DEBIAN
-rwxr-xr-x 1 jrs  jrs    5178 2011-04-08 13:39 deblist.txt
drwxr-xr-x 6 root root   4096 2011-04-09 12:21 scriba
-rw-r--r-- 1 root root 812402 2011-04-09 12:22 scriba-v2.1.1_i386.deb
jrs@Laptop:~/SB/scriptbasic/deb$ sudo gdebi scriba-v2.1.1_i386.deb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Building data structures... Done
Building data structures... Done


ScriptBasic Embeddable Interpreter
Do you want to install the software package? [y/N]:y
Selecting previously deselected package scriba.
(Reading database ... 447312 files and directories currently installed.)
Unpacking scriba (from scriba-v2.1.1_i386.deb) ...
Setting up scriba (2.1.1) ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot

jrs@Laptop:~/SB/scriptbasic/deb$

* scriba-v2.1.1_i386.deb (793.36 KB - downloaded 80 times.)
Logged
support
Administrator
*****
Posts: 409


« Reply #1 on: April 09, 2011, 07:47:10 PM »

Armando suggested a utility that converts .deb files to .rpm files. (alien)

If someone can give this a try on their Red Hat, CentOS or Fedoria 32 bit distribution and let us know how it worked out, that would be helpful. If it works, I'll do the same for the 64 bit .deb file.


Another option to allow users to install ScriptBasic.

sudo tar xzvpf -C / scriba-v2.1.1_i386.tgz

* scriba-v2.1.1_i386.rpm (800.16 KB - downloaded 72 times.)
* scriba-v2.1.1_i386.tgz (797.45 KB - downloaded 68 times.)
Logged
RONB
Newbie
*
Posts: 35


« Reply #2 on: July 26, 2011, 11:11:49 AM »

my linux is ubuntu server lamp
I had to install libiodbc2
sudo apt-get install libiodbc2
then:
sudo dpkg -i scriba-v2.1.1_386.deb
looks like it installed, Checking/testing ....
update: had to use my orginal sbhttpd config and change the port to 127.0.0.1:8080
everything looks to be working.
I installed this over SB_2.1_RC1_Linux.tbz

update: I made a new install, ubuntu 11 server tomcat6, scriba-v2.1.1_386.deb, seems to be working ok.
tomcat6 port 8080, sbhttpd port 8888
« Last Edit: August 09, 2011, 07:00:52 PM by RONB » Logged
RONB
Newbie
*
Posts: 35


« Reply #3 on: August 10, 2011, 03:19:24 PM »

I tried the linux modules using this test prg to to see if they would load.  The modules that would not load have error msg.
-------
include *.bas (where * is each module)
print "ok"
end
------
Also, are the modules build on the latest packages and are some of the calling parameters now different?, thanks

./usr/share/scriba/include/curses.bas
./usr/share/scriba/include/ux.bas
./usr/share/scriba/include/cio.bas color.sb does not work
./usr/share/scriba/include/trial.bas
./usr/share/scriba/include/curl.bas
./usr/share/scriba/include/dbg.bas /usr/share/include/dbg.bas(7):error &H3d:Bad syntax in include statement.
./usr/share/scriba/include/time.bas
./usr/share/scriba/include/hash.bas
./usr/share/scriba/include/odbc.bas
./usr/share/scriba/include/mt.bas
./usr/share/scriba/include/gd.bas gdtest.sb does not work
./usr/share/scriba/include/cgi.bas
./usr/share/scriba/include/zlib.bas
./usr/share/scriba/include/modinst.bas
./usr/share/scriba/include/dyc.bas
./usr/share/scriba/include/xml.bas
./usr/share/scriba/include/error.bas
./usr/share/scriba/include/mysql.bas
./usr/share/scriba/include/sdbg.bas /usr/share/include/dbg.bas(7):error &H3d:Bad syntax in include statement.
./usr/share/scriba/include/t.bas
./usr/share/scriba/include/re.bas
Logged
support
Administrator
*****
Posts: 409


« Reply #4 on: August 10, 2011, 08:44:13 PM »

CIO is a Windows only console extension module.

GD - Make sure you have the GD library installed that the SB GD extension module dynamically links to.

The dbg module is actually a preprocessor rather then an extension module. I would need to see the compile log to know what your issue might be.

The sdbg module is an ALPHA remote debugger that I have been able to get working for the most part. Not ready for prime time yet.

Make sure your basic.conf is pointing to the correct directory for the INCLUDE and MODULE configuration lines. (don't forget to regen the conf file with the -k scriba option)

Logged
RONB
Newbie
*
Posts: 35


« Reply #5 on: August 11, 2011, 11:02:11 AM »

author=support link=topic=217.msg666#msg666 date=1313034253]
CIO is a Windows only console extension module.
I installed scriba-v2.1.1_i386.deb and cio.bas was part of it. If it is windows only should it be removed from the package?
update: I see that the Linux curses.bas module does much like cio did, so all ok.
Also the SB_2.1_RC1_Linux package still has all the windows CIO files in it, they should be removed?

GD - Make sure you have the GD library installed that the SB GD extension module dynamically links to.
There are many GD libraries, which one is right for scriptbasic GD extension. I'm using unbutu 11.
update:I tried this,  sudo apt-get -y install libgd2-xpm-dev build-essential,  not working yet still looking..
there is no /usr/local/lib/scriba/gd.so - is this needed to make, include gd.bas, work?
there is /usr/share/scriba/gd.bas

The dbg module is actually a preprocessor rather then an extension module. I would need to see the compile log to know what your issue might be.
Is the compile log form when you made the scriba-v2.1.1_i386.deb package?

The sdbg module is an ALPHA remote debugger that I have been able to get working for the most part. Not ready for prime time yet.

Make sure your basic.conf is pointing to the correct directory for the INCLUDE and MODULE configuration lines. (don't forget to regen the conf file with the -k scriba option)
I'm using the conf that was installed with scriba-v2.1.1_i386.deb. I have use curl.bas and cgi.bas and they work ok.
« Last Edit: August 11, 2011, 01:34:20 PM by RONB » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!