Author Topic: SB64.AppImage  (Read 937 times)

Offline John

  • Forum Support / SB Dev
  • Posts: 2191
    • ScriptBasic Open Source Project
Re: SB64.AppImage
« Reply #30 on: October 07, 2018, 06:49:07 PM »
Quote
That html is in serious need of some css, btw.  :o

No kidding. I didn't create it. I'm looking at using it for the repository markup.

I would also like to st atart using the versioning feature of extension modules to sync with the libs they use.
« Last Edit: October 07, 2018, 06:54:02 PM by John »

Offline John

  • Forum Support / SB Dev
  • Posts: 2191
    • ScriptBasic Open Source Project
Re: SB64.AppImage
« Reply #31 on: October 07, 2018, 07:17:42 PM »
Does this issue with 32 bit longs under 64 bit affect memory address range?

Offline John

  • Forum Support / SB Dev
  • Posts: 2191
    • ScriptBasic Open Source Project
Re: SB64.AppImage
« Reply #32 on: October 07, 2018, 07:59:33 PM »
AIR,

I gave your CentOS AppImage a try on the hoisting server. I had to install FUSE to get it to run. Maybe the yum install fuse* was overkill.

Code: Script BASIC
  1. import hash.bas
  2.  
  3. h = hash::New()
  4.  
  5. for i=1 to 10
  6. hash::SetValue h,"q"&i,i
  7. next i
  8.  
  9. hash::Start h
  10. while hash::Exists(h)
  11.  print hash::ThisKey(h)," ", hash::ThisValue(h)
  12.  print
  13.  hash::Next h
  14. wend
  15.  
  16. hash::Release h
  17.  

Code: [Select]
[root@Cloud-R sb]# ./sb64.AppImage testhash.bas
-bash: ./sb64.AppImage: Permission denied
[root@Cloud-R sb]# chmod 655 sb64.AppImage
[root@Cloud-R sb]# ./sb64.AppImage testhash.bas
dlopen(): error loading libfuse.so.2

AppImages require FUSE to run.
You might still be able to extract the contents of this AppImage
if you run it with the --appimage-extract option.
See https://github.com/AppImage/AppImageKit/wiki/FUSE
for more information
[root@Cloud-R sb]#

[root@Cloud-R sb]# yum install fuse*

Installed:
  fuse.x86_64 0:2.9.2-10.el7         fuse-devel.x86_64 0:2.9.2-10.el7         fuse-libs.x86_64 0:2.9.2-10.el7         fuseiso.x86_64 0:20070708-15.el7         fusesource-pom.noarch 0:1.9-7.el7       

Dependency Installed:
  aether-api.noarch 0:1.13.1-13.el7                              aether-connector-wagon.noarch 0:1.13.1-13.el7                           aether-impl.noarch 0:1.13.1-13.el7                               
  aether-spi.noarch 0:1.13.1-13.el7                              aether-util.noarch 0:1.13.1-13.el7                                      alsa-lib.x86_64 0:1.1.4.1-2.el7                                 
  antlr-tool.noarch 0:2.7.7-30.el7                               aopalliance.noarch 0:1.0-8.el7                                          apache-commons-cli.noarch 0:1.2-13.el7                           
  apache-commons-codec.noarch 0:1.8-7.el7                        apache-commons-collections.noarch 0:3.2.1-22.el7_2                      apache-commons-io.noarch 1:2.4-12.el7                           
  apache-commons-lang.noarch 0:2.6-15.el7                        apache-commons-logging.noarch 0:1.1.2-7.el7                             apache-commons-net.noarch 0:3.2-8.el7.centos                     
  atinject.noarch 0:1-13.20100611svn86.el7                       avalon-framework.noarch 0:4.3-10.el7                                    avalon-logkit.noarch 0:2.1-14.el7                               
  bcel.noarch 0:5.2-18.el7                                       bea-stax.noarch 0:1.2.0-9.el7                                           bea-stax-api.noarch 0:1.2.0-9.el7                               
  cal10n.noarch 0:0.7.7-4.el7                                    cdi-api.noarch 0:1.0-11.SP4.el7                                         cglib.noarch 0:2.2-18.el7                                       
  copy-jdk-configs.noarch 0:3.3-10.el7_5                         dom4j.noarch 0:1.6.1-20.el7                                             easymock2.noarch 0:2.5.2-12.el7                                 
  felix-framework.noarch 0:4.2.1-5.el7                           geronimo-annotation.noarch 0:1.0-15.el7                                 geronimo-jms.noarch 0:1.1.1-19.el7                               
  giflib.x86_64 0:4.1.6-9.el7                                    google-guice.noarch 0:3.1.3-9.el7                                       guava.noarch 0:13.0-6.el7                                       
  hamcrest.noarch 0:1.3-6.el7                                    hsqldb.noarch 1:1.8.1.3-14.el7                                          httpcomponents-client.noarch 0:4.2.5-5.el7_0                     
  httpcomponents-core.noarch 0:4.2.4-6.el7                       isorelax.noarch 1:0-0.15.release20050331.el7                            jakarta-commons-httpclient.noarch 1:3.1-16.el7_0                 
  jakarta-oro.noarch 0:2.0.8-16.el7                              java-1.8.0-openjdk.x86_64 1:1.8.0.181-3.b13.el7_5                       java-1.8.0-openjdk-devel.x86_64 1:1.8.0.181-3.b13.el7_5         
  java-1.8.0-openjdk-headless.x86_64 1:1.8.0.181-3.b13.el7_5     javamail.noarch 0:1.4.6-8.el7                                           javapackages-tools.noarch 0:3.4.1-11.el7                         
  javassist.noarch 0:3.16.1-10.el7                               jaxen.noarch 0:1.1.3-11.el7                                             jboss-ejb-3.1-api.noarch 0:1.0.2-10.el7                         
  jboss-el-2.2-api.noarch 0:1.0.1-0.7.20120212git2fabd8.el7      jboss-interceptors-1.1-api.noarch 0:1.0.2-0.9.20120319git49a904.el7     jboss-jaxrpc-1.1-api.noarch 0:1.0.1-7.el7                       
  jboss-servlet-3.0-api.noarch 0:1.0.1-9.el7                     jboss-transaction-1.1-api.noarch 0:1.0.1-8.el7                          jdom.noarch 0:1.1.3-6.el7                                       
  jline.noarch 0:1.0-8.el7                                       jsch.noarch 0:0.1.50-5.el7                                              jsoup.noarch 0:1.6.1-10.el7                                     
  junit.noarch 0:4.11-8.el7                                      jzlib.noarch 0:1.1.1-6.el7                                              libXcomposite.x86_64 0:0.4.4-4.1.el7                             
  libXi.x86_64 0:1.7.9-1.el7                                     libXtst.x86_64 0:1.2.3-1.el7                                            lksctp-tools.x86_64 0:1.0.17-2.el7                               
  log4j.noarch 0:1.2.17-16.el7_4                                 maven.noarch 0:3.0.5-17.el7                                             maven-artifact.noarch 0:2.2.1-47.el7                             
  maven-artifact-manager.noarch 0:2.2.1-47.el7                   maven-file-management.noarch 1:1.2.1-8.el7                              maven-model.noarch 0:2.2.1-47.el7                               
  maven-plugin-registry.noarch 0:2.2.1-47.el7                    maven-profile.noarch 0:2.2.1-47.el7                                     maven-project.noarch 0:2.2.1-47.el7                             
  maven-scm.noarch 0:1.8.1-2.el7                                 maven-settings.noarch 0:2.2.1-47.el7                                    maven-shared-io.noarch 1:1.1-7.el7                               
  maven-wagon.noarch 0:2.4-3.el7                                 modello.noarch 0:1.7-4.el7                                              msv-msv.noarch 1:2013.5.1-7.el7                                 
  msv-xsdlib.noarch 1:2013.5.1-7.el7                             nekohtml.noarch 0:1.9.14-13.el7                                         objectweb-asm.noarch 0:3.3.1-9.el7                               
  plexus-build-api.noarch 0:0.0.7-11.el7                         plexus-cipher.noarch 0:1.7-5.el7                                        plexus-classworlds.noarch 0:2.4.2-8.el7                         
  plexus-compiler.noarch 0:2.2-7.el7                             plexus-component-api.noarch 0:1.0-0.16.alpha15.el7                      plexus-containers-component-annotations.noarch 0:1.5.5-14.el7   
  plexus-containers-container-default.noarch 0:1.5.5-14.el7      plexus-interactivity.noarch 0:1.0-0.14.alpha6.el7                       plexus-interpolation.noarch 0:1.15-8.el7                         
  plexus-sec-dispatcher.noarch 0:1.4-13.el7                      plexus-utils.noarch 0:3.0.9-9.el7                                       python-javapackages.noarch 0:3.4.1-11.el7                       
  python-lxml.x86_64 0:3.2.1-4.el7                               qdox.noarch 0:1.12.1-10.el7                                             regexp.noarch 0:1.5-13.el7                                       
  relaxngDatatype.noarch 0:1.0-11.el7                            sisu-inject-bean.noarch 0:2.3.0-11.el7                                  sisu-inject-plexus.noarch 0:2.3.0-11.el7                         
  slf4j.noarch 0:1.7.4-4.el7_4                                   tomcat-servlet-3.0-api.noarch 0:7.0.76-7.el7_5                          ttmkfdir.x86_64 0:3.0.9-42.el7                                   
  tzdata-java.noarch 0:2018e-3.el7                               velocity.noarch 0:1.7-10.el7                                            ws-jaxme.noarch 0:0.5.2-10.el7                                   
  xalan-j2.noarch 0:2.7.1-23.el7                                 xbean.noarch 0:3.13-6.el7                                               xerces-j2.noarch 0:2.11.0-17.el7_0                               
  xml-commons-apis.noarch 0:1.4.01-16.el7                        xml-commons-resolver.noarch 0:1.2-15.el7                                xorg-x11-fonts-Type1.noarch 0:7.5-9.el7                         
  xpp3.noarch 0:1.1.3.8-11.el7                                 

Complete!
[root@Cloud-R sb]# ./sb64.AppImage testhash.bas
q1 1
q2 2
q3 3
q4 4
q5 5
q6 6
q7 7
q8 8
q9 9
q10 10
[root@Cloud-R sb]#


I also tried the VHD files on my Windows 7 64 bit OS. I had to mount it with the Disk Manager. (double click didn't work) It didn't set a PATH or create the SCRIBA.INI.
« Last Edit: October 07, 2018, 10:26:53 PM by John »

Online AIR

  • RETIRED
  • BASIC Developer
  • Posts: 409
Re: SB64.AppImage
« Reply #33 on: October 08, 2018, 07:25:55 AM »
I also tried the VHD files on my Windows 7 64 bit OS. I had to mount it with the Disk Manager. (double click didn't work) It didn't set a PATH or create the SCRIBA.INI.

VHD Attach will add a right-click option to attach/detach VHD files.

In my earlier post, I mentioned that this is fully self-contained and that the environment is set up on-the-fly.  The upshot of this is that no permanent changes are written to the environment, and SCRIBA.ini is not used or required.  This allows this Proof of Concept to be fully portable

Just run the sb.cmd in place of scriba in a terminal; it will set things up and call scriba for you.

AIR.

Offline John

  • Forum Support / SB Dev
  • Posts: 2191
    • ScriptBasic Open Source Project
Re: SB64.AppImage
« Reply #34 on: October 08, 2018, 10:18:48 AM »
Thanks AIR!

I'll give the sb.cmd method a try.

Curious, was the scriba.exe in the VHD compiled with gcc or vc?
« Last Edit: October 08, 2018, 01:01:29 PM by John »

Online AIR

  • RETIRED
  • BASIC Developer
  • Posts: 409
Re: SB64.AppImage
« Reply #35 on: October 08, 2018, 02:10:14 PM »
Thanks AIR!

I'll give the sb.cmd method a try.

Curious, was the scriba.exe in the VHD compiled with gcc or vc?

This is the output....
Code: [Select]
PS F:\> .\sb.cmd -v
ScriptBasic v2.2
Variation >>Win7_64_VC12<< build 3
Magic value 859001648
Node size is 16
Extension interface version is 11
Compilation: May 10 2014 18:09:25
Executable: F:\bin\sb64.exe
PS F:\>


Offline John

  • Forum Support / SB Dev
  • Posts: 2191
    • ScriptBasic Open Source Project
Re: SB64.AppImage
« Reply #36 on: October 08, 2018, 02:16:41 PM »
We are both using the same SB Win64 beta set I created some time ago.

I would still like to have that group discussion about what advantages there might be to having 64 bit math under Windows 64.

Maybe having a SB64.exe that is compiled to do 64 bit math and memory addressabilty.

On a positive note, at least this version of SB64 can call 64 bit DLLs.
« Last Edit: October 08, 2018, 07:43:04 PM by John »

Offline John

  • Forum Support / SB Dev
  • Posts: 2191
    • ScriptBasic Open Source Project
Re: SB64.AppImage
« Reply #37 on: October 08, 2018, 10:20:48 PM »
I can't find any easy way to mount the VHD on Windows 7 other than this method.

Mounting a VHD without any special software

The sb.cmd seems to be working. The testsqlite3.sb prints the expected results but GPF's closing. The same SB script works fine running scriba from the C: drive with SB64.




« Last Edit: October 08, 2018, 10:53:36 PM by John »

Online AIR

  • RETIRED
  • BASIC Developer
  • Posts: 409
Re: SB64.AppImage
« Reply #38 on: October 09, 2018, 04:57:53 AM »
I can't find any easy way to mount the VHD on Windows 7 other than this method.

Mounting a VHD without any special software

Did you try the program I mentioned previously?

Quote
The sb.cmd seems to be working. The testsqlite3.sb prints the expected results but GPF's closing. The same SB script works fine running scriba from the C: drive with SB64.

Code: [Select]
F:\test>sb testsqlite3.sb
123     -       hello
234     -       cruel
345     -       world
123     -       hello
234     -       cruel
345     -       world
123     -       hello
234     -       cruel
345     -       world
123     -       hello
234     -       cruel
345     -       world
F:\test>

Works fine here...but I don't have SB installed on my HD....

AIR.