Author Topic: How to Run Perl ? Prima  (Read 4551 times)

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4786
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
How to Run Perl ? Prima
« on: August 08, 2023, 11:47:18 pm »
Hello

Checking the OS/2 software around I found this one:

Prima: Prima is an extensible Perl toolkit for multi-platform GUI development.
https://ecsoft2.org/prima

Version  1.12 can be downloaded there, I still can not find 1.20.

But the main question is how it is supposed to run perl code on OS/2 ? For what I see on the pictures this scripts provides a GUI interface, right?

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4828
  • Karma: +101/-1
    • View Profile
Re: How to Run Perl ? Prima
« Reply #1 on: August 09, 2023, 01:36:48 am »
Hi, read the README, it doesn't get far here, after creating @unixroot/usr/local/perl5
Code: [Select]
H:\tmp\Prima-1.12>perl ms_install.pl
Use of uninitialized value $2 in concatenation (.) or string at ms_install.pl li
ne 78.
Creating \@unixroot\usr\local\lib\perl5/auto/Prima
Creating \@unixroot\usr\local\lib\perl5/auto
Creating \@unixroot\usr\local\lib\perl5/examples
Creating \@unixroot\usr\local\lib\perl5/Prima/Widget
Creating \@unixroot\usr\local\lib\perl5/Prima
Creating \@unixroot\usr\local\lib\perl5/Prima/Image
Creating \@unixroot\usr\local\lib\perl5/Prima/images/VB
Creating \@unixroot\usr\local\lib\perl5/Prima/images
Creating \@unixroot\usr\local\lib\perl5/Prima/PS/fonts
Creating \@unixroot\usr\local\lib\perl5/Prima/PS/locale
Creating \@unixroot\usr\local\lib\perl5/Prima/PS
Creating \@unixroot\usr\local\lib\perl5/Prima/themes
Creating \@unixroot\usr\local\lib\perl5/Prima/VB/examples
Creating \@unixroot\usr\local\lib\perl5/Prima/VB/icons
Creating \@unixroot\usr\local\lib\perl5/Prima/VB
Creating \@unixroot\usr\local\lib\perl5/Prima
Creating \@unixroot\usr\local\lib\perl5/.
Copying files...
Installing \@unixroot\usr\local\lib\perl5/Copying ...

Killed by SIGSEGV
pid=0x7d1d ppid=0x005e tid=0x0001 slot=0x00f3 pri=0x0200 mc=0x0001 ps=0x0010
W:\USR\BIN\PERL.EXE
PERL 2:000ffd3c
cs:eip=90da0000:0012fd3c      ss:esp=0001ffff:ffff0000      ebp=f9a40053
 ds=0000      es=0000      fs=00370012      gs=0000     efl=150b0012
eax=0012fa7a ebx=1ffc9d7c ecx=0012fa8e edx=0012fab2 edi=f9600000 esi=0012ff7c
Creating 7D1D_01.TRP
Moved 7d1d_01.TRP to W:\var\log\app\64d26dda-7d1d_01-PERL-exceptq.txt

Perhaps due to %PERLPATH% not being set  or set correctly.
It is likely meant to be used with an older Perl, perhaps one of Ilya's.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4828
  • Karma: +101/-1
    • View Profile
Re: How to Run Perl ? Prima
« Reply #2 on: August 09, 2023, 01:57:43 am »
Tried 1.20, same result. Trying to build results in,
Code: [Select]
H:\tmp\prima-1.20\Prima-1.20>perl Makefile.PL
Can't locate ExtUtils/Packlist.pm in @INC (@INC contains: . /@unixroot/usr/local
/lib/perl5 /@unixroot/usr/local/share/perl5 /@unixroot/usr/lib/perl5/vendor_perl
 /@unixroot/usr/share/perl5/vendor_perl /@unixroot/usr/lib/perl5 /@unixroot/usr/
share/perl5 .) at Makefile.PL line 45.
BEGIN failed--compilation aborted at Makefile.PL line 45.

Code is at http://www.prima.eu.org/download/list.html along with some of the DLL's. Likely EMX rather then kLIBC.
I only see Extutils\Packlist.pm in some of Paul's old builds from 15 years back and can't remember if his ports were complete enough to compile stuff from CSPAN

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4786
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: How to Run Perl ? Prima
« Reply #3 on: August 09, 2023, 04:49:05 am »
Hi

Version 1.12 does not run here, but I get:
Quote
[C:\HOME\DESKTOP\PRIMA112\PRIMA-1.12]perl ms_install.pl
Use of uninitialized value $2 in concatenation (.) or string at ms_install.pl li
ne 78.
Broken config: cannot find directory \@unixroot\usr\local\lib\perl5

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4828
  • Karma: +101/-1
    • View Profile
Re: How to Run Perl ? Prima
« Reply #4 on: August 09, 2023, 06:01:22 am »
I had to create that directory before it went much further.
Trying to use my old EMX environment to build 1.20, the weird thing is GCC 2.8.1 tries to use wlink to link, and it was hard to convince it not to. Seems my old Perl install is broken as it ends up dying with Cannot find perl library, which is there but I seem to have both Perl 5.61 and 5.8 installed.
Looking at the source it does have some OS/2 specific C files and os2guts.c seems to create a PM program or DLL. Be interesting to get it running as I've never seen a Perl program do OS/2 Presentation Manager windows.
It likely needs an EMX environment including GCC 2.8.1 and Perl 5.61

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4828
  • Karma: +101/-1
    • View Profile
Re: How to Run Perl ? Prima
« Reply #5 on: August 09, 2023, 09:40:04 pm »
Well, using Henry's build of Perl 5.6.1, I still couldn't compile it, with the error can't find the Perl lib.
Running "perl ms_install.pl" was successful besides bitching about the PATH not containing f:\perl\bin but running any examples ends like,
Code: [Select]
[F:\Perl\lib\site_perl\5.6.1\os2\examples]menu
SYS1041: The name F:/perl/bin/perl__ is not recognized as an
internal or external command, operable program or batch file.

Which upon reading Henry's readme makes sense as he didn't bother to compile perl__.exe, which is the PM version of Perl.
Unluckily all the older perl distributions seem to be gone from Hobbes, pretty shitty as so many things depend on the EMX releases of Perl so now I have to hunt down the latest Ilya build of Perl.
Guess I should start re-uploading some of this stuff to Hobbes as well. I'd assume Python may have the same problem with the old EMX version no longer there and likely the same with other languages where things depend on older releases.
Edit: rereading the readme, henry renamed perl__.exe to perlPM.exe as he was developing an OS/2 GUI toolkit. I'll test renaming it.

Sergey Posokhov

  • Full Member
  • ***
  • Posts: 170
  • Karma: +8/-6
    • View Profile
    • OS/2 API Research
Re: How to Run Perl ? Prima
« Reply #6 on: August 10, 2023, 12:39:59 am »
Prima is an extensible Perl toolkit for multi-platform GUI development.