Topic
15 replies Latest Post - ‏2014-07-29T13:35:05Z by DiGraaf
SystemAdmin
SystemAdmin
65 Posts
ACCEPTED ANSWER

Pinned topic APL2 and Debian

‏2012-12-26T15:49:15Z |
Hi There..

I installed APL2 to new debian server and when i try to start apl2 -hostwin off and it says that it cannot find apl2exe.. all the rights are right but still no work..

any help?
Updated on 2013-01-07T18:14:31Z at 2013-01-07T18:14:31Z by Nancy Wheeler
  • Nancy Wheeler
    Nancy Wheeler
    59 Posts
    ACCEPTED ANSWER

    Re: APL2 and Debian

    ‏2012-12-26T18:11:55Z  in response to SystemAdmin
    The most probable reason for not finding apl2exe is that the directory in which apl2exe resides has not been appended to PATH. When you installed APL2, did you use the standard installation script we provide? Was it installed from a userid with root authority? Did you accept the default directory or choose an alternate? When you tried to start APL2, was it from a command shell window or by some other means? What was the working directory at the time you started APL2?

    Since the apl2 command itself was found, but apl2exe was not, it would indicate that the apl2 command script, which should append the correct directory to PATH, has not done so, either because the directory that was used during installation was not the default, and the apl2 command script was not updated properly with the new directory, or that something else non-standard was done during the installation or is happening at startup time. Another possibility is that you have a customized apl2 script from some older installation that is being picked up in preference to the standard product one in /usr/APL2/bin.

    Things to verify: that APL2 was installed in /usr/APL2, that /usr/APL2/bin (or alternate if /usr/APL2 was not used) contains an executable file named apl2exe, which apl2 script is being used (command "which apl2" should tell you), that the apl2 script being used has the correct directory in its logic to append to PATH.

    Nancy Wheeler
    APL Products and Services
    • SystemAdmin
      SystemAdmin
      65 Posts
      ACCEPTED ANSWER

      Re: APL2 and Debian

      ‏2012-12-26T21:27:15Z  in response to Nancy Wheeler
      Hi there..

      i made standard installation as it is on readme file..

      so everything is in right PATH /usr/APL2/ and binary files /usr/APL2/bin/

      'which apl2' informs /usr/bin/apl2 which is symlinked to /usr/APL2/bin/apl2..

      i am running apl2 from command shell..

      even adding the right path to PATH does give same error..

      hmm?
      • Nancy Wheeler
        Nancy Wheeler
        59 Posts
        ACCEPTED ANSWER

        Re: APL2 and Debian

        ‏2012-12-26T22:03:12Z  in response to SystemAdmin
        I am stumped. I would try starting apl2exe directly, i.e., in your command shell type

        . /usr/APL2/bin/apl2exe

        and see what happens. It probably won't work completely since several crucial environment varaiables are not set, but at least you can see if it will come up when directly addressed. If it does not, put here the complete entire message that you get.

        If that does work, then my next hypothesis would be that there is something about the shell language that is interpreting the apl2 script incorrectly. The script is written for the Bourne shell. What shell are you using?

        Nancy Wheeler
        APL Products and Services
        • SystemAdmin
          SystemAdmin
          65 Posts
          ACCEPTED ANSWER

          Re: APL2 and Debian

          ‏2012-12-27T11:23:45Z  in response to Nancy Wheeler
          yup.. i am stumped too.. :)

          jari@stb1:~$ apl2
          /usr/bin/apl2: line 131: /usr/APL2/bin/apl2exe: No such file or directory
          jari@stb1:~$ . /usr/APL2/bin/apl2exe
          -bash: .: /usr/APL2/bin/apl2exe: cannot execute binary file
          jari@stb1:~$ ll /usr/APL2/bin/apl2exe
          -rwxr-xr-x 1 root root 9219 Feb 24 2012 /usr/APL2/bin/apl2exe
          jari@stb1:~$

          maybe i just re-install the server and try again?
          thank you anyway.. :)

          t:-j
          • Nancy Wheeler
            Nancy Wheeler
            59 Posts
            ACCEPTED ANSWER

            Re: APL2 and Debian

            ‏2012-12-27T19:05:05Z  in response to SystemAdmin
            The only explanation I can think of is that the file is damaged in some way. Either the file as placed into the installation image was originally damaged, or the zipping/unzipping process has gone wrong. Can you show me the result of command
            ls -lpat /usr/APL2/bin ? (I want to check the byte count on the files).

            Also, how many bytes does the installation image you used contain? Where did you obtain it? From download or CD?

            Nancy Wheeler
            APL Products and Services
            • SystemAdmin
              SystemAdmin
              65 Posts
              ACCEPTED ANSWER

              Re: APL2 and Debian

              ‏2012-12-27T23:09:44Z  in response to Nancy Wheeler
              Here is the listing:
              <cut>
              -rwxr-xr-x 1 root root 108540 Feb 24 2012 ap100
              -rwxr-xr-x 1 root root 126142 Feb 24 2012 ap119
              -rwxr-xr-x 1 root root 233316 Feb 24 2012 ap120
              -rwxr-xr-x 1 root root 191755 Feb 24 2012 ap124
              -rwxr-xr-x 1 root root 205546 Feb 24 2012 ap127
              -rwxr-xr-x 1 root root 282127 Feb 24 2012 ap144
              -rwxr-xr-x 1 root root 21695 Feb 24 2012 ap200
              -rwxr-xr-x 1 root root 549659 Feb 24 2012 ap207
              -rwxr-xr-x 1 root root 118420 Feb 24 2012 ap210
              -rwxr-xr-x 1 root root 120685 Feb 24 2012 ap211
              -rwxr-xr-x 1 root root 211946 Feb 24 2012 ap227
              -rwxr-xr-x 1 root root 5239 Feb 24 2012 apl2
              -rw-r--r-- 1 root root 36688 Feb 24 2012 APL2DDT.ans
              -rw-r--r-- 1 root root 121344 Feb 24 2012 APL2EDT.ans
              -rwxr-xr-x 1 root root 2299 Feb 24 2012 apl2env
              -rwxr-xr-x 1 root root 9219 Feb 24 2012 apl2exe
              -rw-r--r-- 1 root root 29072 Feb 24 2012 APL2HST.ans
              -rw-r--r-- 1 root root 250800 Feb 24 2012 APL2IDI.ans
              -rw-r--r-- 1 root root 16955 Feb 24 2012 apl2.jar
              -rw-r--r-- 1 root root 62144 Feb 24 2012 APL2PARA.ans
              -rwxr-xr-x 1 root root 10456 Feb 24 2012 apl2prt
              -rwxr-xr-x 1 root root 13641 Feb 24 2012 apl2psrv
              -rwxr-xr-x 1 root root 4314 Feb 24 2012 apl2runt
              -rwxr-xr-x 1 root root 39321 Feb 24 2012 apl2tcl
              -rwxr-xr-x 1 root root 106361 Feb 24 2012 apl2tcps
              -rw-r--r-- 1 root root 126080 Feb 24 2012 APL2WSC.ans
              -rwxr-xr-x 1 root root 7167 Feb 24 2012 apl2xtrd
              -rwxr-xr-x 1 root root 91724 Feb 24 2012 apl2xtrn
              -rw-r--r-- 1 root root 21312 Feb 24 2012 APL2ZIP.ans
              -rwxr-xr-x 1 root root 21127 Feb 24 2012 aplna010
              -rwxr-xr-x 1 root root 34740 Feb 24 2012 aplna011
              -rwxr-xr-x 1 root root 53508 Feb 24 2012 aplna012
              -rwxr-xr-x 1 root root 43003 Feb 24 2012 aplna014
              -rwxr-xr-x 1 root root 39484 Feb 24 2012 aplna015
              -rwxr-xr-x 1 root root 668148 Feb 24 2012 aplnls
              -rwxr-xr-x 1 root root 9219 Feb 24 2012 arunexe
              -rw-r--r-- 1 root root 167712 Feb 24 2012 FILE.ans
              -rw-r--r-- 1 root root 518000 Feb 24 2012 GRAPHPAK.ans
              -rw-r--r-- 1 root root 199792 Feb 24 2012 MATHFNS.ans
              -rw-r--r-- 1 root root 90032 Feb 24 2012 SQL.ans
              </paste>

              and installation package is here:
              -rwxr-xr-x 1 jari jari 14080000 Sep 11 22:51 IBM_APL2_SL19_Linux_CI6DYEN.tar

              t:-j
              • Nancy Wheeler
                Nancy Wheeler
                59 Posts
                ACCEPTED ANSWER

                Re: APL2 and Debian

                ‏2012-12-28T01:11:02Z  in response to SystemAdmin
                All the file byte counts are correct.

                The only difference between the output you get and mine on my Linux machine (which is SuSE) is that on my machine instead of the file owner being "root root" it is "lin2dev users". lin2dev is the userid I installed with (I became root authority using the "su" command rather than logging in to root). I am not 100% sure of the significance of "users", but I think it is the group that the lin2dev userid belongs to.

                The permissions for the file (i.e. rwxr x r x) are the same for me, but I wonder if possibly the fact that the userid and group name are both "root" may be the problem. Perhaps the userid you are using to start apl2 is not a part of any group that the permissions would grant access to the files. If you have a Unix expert there that you can ask, that would be something I would ask about. I would think there would be a way to modify the userid to make it part of the right group.

                Another way to possibly get around the whole issue is to reinstall in the same manner that I did, i.e. Use a regular userid to do the install, and use the "su" command from that user to switch to root authority rather than logging in to the root userid. Be sure to say "yes" when it asks if you want to clean the directory, as you want to get rid of the files owned by "root root" and start fresh.

                One thing that bothers me about this theory, is that if it were really true that the "root root" issue is the cause of the problem, I don't understand why the apl2 script is OK. It should have the same issue, except that you get it using the link, and maybe the link has different properties.

                I hope something in this note helps. I could arrange for you to get a new install image, but my suspicion is that the install image is not the problem. If it were, there would be problems during the installation. But if nothing else works,
                we will do that next.

                Nancy Wheeler
                APL Products and Services
                • SystemAdmin
                  SystemAdmin
                  65 Posts
                  ACCEPTED ANSWER

                  Re: APL2 and Debian

                  ‏2012-12-28T12:43:38Z  in response to Nancy Wheeler
                  Thank you for your help..

                  you recommend SuSE or OpenSuSE OS for APL2? and is there any difference with 64bit and 32bit? we recommend 64bit OS..

                  we can install OpenSuSE that to server instead of Debian if that helps? i have been UNIX/Linux admin since 1993 so it doesn't matter which one we run on server.. :)

                  t:-j
                  • Nancy Wheeler
                    Nancy Wheeler
                    59 Posts
                    ACCEPTED ANSWER

                    Re: APL2 and Debian

                    ‏2012-12-28T18:52:31Z  in response to SystemAdmin
                    I would like to understand what the problem actually is before advising any radical action like installing a different operating system. I do not have any confidence that SuSE would behave any better for you, unless I know why it does not work on Debian.

                    Your mention of 32-bit vs. 64-bit, however, makes me think of another possibility. I assume since you say you recommend 64-bit that the version of Debian you are using is 64-bit? Is it possible that your Debian system does not support running 32-bit programs, or that running 32-bit programs requires some special method that you have not used?

                    APL2 is a 32-bit program and will only run where 32-bit programs are allowed to run. It will also only call other programs that are 32-bit (for example, if you want to use APL2 with Rexx or DB2 they must be 32-bit.).

                    To understand whether the problem is permissions, please try logging on to root and running APL2 from the root userid. This should elimiate any permission issues. If APL2 runs, then you need to investigate the properties of the userid from which APL2 will not run. If APL2 will not run even from the root userid, then the next hypothesis is that it has something to do with running 32-bit programs on a 64-bit system.

                    Nancy Wheeler
                    APL Products and Services
                    • SystemAdmin
                      SystemAdmin
                      65 Posts
                      ACCEPTED ANSWER

                      Re: APL2 and Debian

                      ‏2013-01-06T11:57:41Z  in response to Nancy Wheeler
                      Happy New Year..

                      i got that working on Debian.. i installed 32bit library as command: "sudo apt-get install ia32-libs"
                      and made symbolic links at /usr/lib32/
                      libXm.so.3 -> libXm.so.2
                      libMrm.so.3 -> libMrm.so.2

                      and Voilá.. APL2 is working.. so my problem was only missing 32bit library on 64bit server..
                      now i just need to get APL2 and APL2 keyboard working trough SSH-connection.. Any Help for that?

                      Sincerely

                      t:-j
                      • Nancy Wheeler
                        Nancy Wheeler
                        59 Posts
                        ACCEPTED ANSWER

                        Re: APL2 and Debian

                        ‏2013-01-07T18:14:08Z  in response to SystemAdmin
                        That's good news, that you got it working.

                        I am not familiar with "SSH", but in general if you want to use APL characters when accessing a Unix machine remotely you must make the APL2 fonts available to the emulator software you will be using to connect to it. This usually means copying the fonts from /usr/APL2/fonts/X11 to the client machine, and then following whatever procedure is required to make them known to the emulator software (adding to a path, perhaps). Check your emulator's documentation for how to add fonts.

                        In addition you will need to export DISPLAY from the server machine to the client machine.

                        Nancy Wheeler
                        APL Products and Services
                      • Nancy Wheeler
                        Nancy Wheeler
                        59 Posts
                        ACCEPTED ANSWER

                        Re: APL2 and Debian

                        ‏2013-01-07T18:14:31Z  in response to SystemAdmin
                        That's good news, that you got it working.

                        I am not familiar with "SSH", but in general if you want to use APL characters when accessing a Unix machine remotely you must make the APL2 fonts available to the emulator software you will be using to connect to it. This usually means copying the fonts from /usr/APL2/fonts/X11 to the client machine, and then following whatever procedure is required to make them known to the emulator software (adding to a path, perhaps). Check your emulator's documentation for how to add fonts.

                        In addition you will need to export DISPLAY from the server machine to the client machine.

                        Nancy Wheeler
                        APL Products and Services
  • DiGraaf
    DiGraaf
    6 Posts
    ACCEPTED ANSWER

    Re: APL2 and Debian

    ‏2013-06-16T13:22:05Z  in response to SystemAdmin

    Hello Nancy..

     

    We got it working thru SSH-tunnel between Linux - workstations.. Thank You for that.. But now we have problem with APL2-keyboard.. We cannot get some characters to display right. and this is on debian linux again.. Any Help? :)

    t:-j

    • Nancy Wheeler
      Nancy Wheeler
      59 Posts
      ACCEPTED ANSWER

      Re: APL2 and Debian

      ‏2013-06-17T18:09:50Z  in response to DiGraaf

      When you say "this is on Debian again", do you mean that you are accessing APL2 directly on the system where Debian is installed, and not through the "SSH-tunnel"? 

      If so, did you follow the directions in the README for adding the font path to your shell profile (using xset command?)

      If you have added the font path correctly, which characters are not correct?  

       

      Nancy Wheeler
      APL Products and Services
      IBM
      • DiGraaf
        DiGraaf
        6 Posts
        ACCEPTED ANSWER

        Re: APL2 and Debian

        ‏2014-07-29T13:35:05Z  in response to Nancy Wheeler

         

        Hi Nancy and others..

        SSH-tunneling is working too from linux to linux.. You just install APL2 and fonts to both machines and start SSH with tunneling and You can use remote APL2 on your local computer..

         

        thanks for that..