#751 MIME types not defined

v4.0beta
closed
Mark Miesfeld
5
2012-08-14
2009-07-11
Mark Gaubatz
No

As MIME types are not defined for ooRexx by the ooRexx installation procedure, tokenized programs under Linux fail.

Discussion

  • Rick McGuire
    Rick McGuire
    2009-07-11

    You're going to have to give more information on this one, including an example of what's failing. ooRexx has never done anything with defining MIME types, so I don't know what you're expecting to happen.

     
  • Mark Gaubatz
    Mark Gaubatz
    2009-07-11

    Scenario:
    rexxc foo.srex foo
    chmod +x foo
    ./foo
    bash: ./foo: cannot execute binary file

    (also illustrates another permissions problem under Linux in that the tokenized output is not marked as executable)

     
  • Mark Miesfeld
    Mark Miesfeld
    2009-07-21

    Mark,

    A tokenized Rexx program is not an executable binary. It never has been.

    You can't run a tokenzied Rexx program on Windows either:

    E:\work.ooRexx\3.x>rexxc testOODialog.rex myTestOODialog /s

    E:\work.ooRexx\3.x>myTestOODialog
    'myTestOODialog' is not recognized as an internal or external command,
    operable program or batch file.

    E:\work.ooRexx\3.x>testOODialog.rex
    Took 0.094000 seconds to load oodwin32.cls

    E:\work.ooRexx\3.x>

    To run a tokenized Rexx program, you need to execute rexx. It has always been this way:

    [miesfeld@Osprey work.ooRexx]$ rexxc initTest.rex myInitTest -s
    [miesfeld@Osprey work.ooRexx]$ ll myInitTest
    -rw-rw-r-- 1 miesfeld miesfeld 1764 2009-07-21 15:08 myInitTest

    [miesfeld@Osprey work.ooRexx]$ chmod +x myInitTest
    [miesfeld@Osprey work.ooRexx]$ ll myInitTest
    -rwxrwxr-x 1 miesfeld miesfeld 1764 2009-07-21 15:08 myInitTest

    [miesfeld@Osprey work.ooRexx]$ ./myInitTest
    bash: ./myInitTest: cannot execute binary file
    [miesfeld@Osprey work.ooRexx]$ rexx myInitTest
    [miesfeld@Osprey work.ooRexx]$ ll /mnt/public/
    total 12
    drwxr-xrwx 2 miesfeld miesfeld 4096 2009-07-07 20:27 .
    drwxr-xr-x 4 root root 4096 2009-07-07 20:04 ..
    -rw------- 1 root root 124 2009-07-21 13:08 initTest.data

    If you know some trick with MIME types that allows a tokenized Rexx program to run differently on Linux. Something we could add to the installation, then we would welcome a patch to implement it. If you just know the steps to do it, but not how to patch the installation, then open up a RFE and outline the steps. One of us might consider adding it, if possible.

     


Anonymous


Cancel   Add attachments