Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Perl setting

19 views
Skip to first unread message

gianf...@gmail.com

unread,
Jun 4, 2013, 4:35:36 AM6/4/13
to
Hi all,
I need to set right my perl environment since i got often libs errors:
@INC ..lib not found...etc especially using libtool, so i can't compile easily a dll.
My buildenv is on U:\ and i've perl5 from Paul Smedley in U:\PERL5, which statements, PERLLIB, PERL5LIB, "/" "\" both?
Thanks!

Dave Yeo

unread,
Jun 4, 2013, 10:11:38 AM6/4/13
to
I have
set PATH=g:\perl5\bin;%PATH%
set BEGINLIBPATH=g:\perl5\lib;%BEGINLIBPATH%
set PERLDIR=g:\perl5
set PERL_LIBPATH=g:/perl5/lib;g:/git/
set PERLLIB_PREFIX=u:/perl5/lib;g:/perl5/lib
set PERL_SH_DIR=/bin/sh.exe

Dave

gianf...@gmail.com

unread,
Jun 4, 2013, 2:49:53 PM6/4/13
to
Ok, setting your Dave, some steps forward but invoking autoreconf for openjpeg this is the output:
Can't locate Autom4te/ChannelDefs.pm in @INC (@INC contains: /usr/share/autoconf /perl5/lib/site_perl/5.14.2/os2 /perl5/lib/site_perl/5.14.2 /perl
5/lib/5.14.2/os2 /perl5/lib/5.14.2 /perl5/lib/site_perl .) at u:\usr\bin/autoreconf line 39.
BEGIN failed--compilation aborted at u:\usr\bin/autoreconf line 39.
# exit

I read this http://mantis.smedley.id.au/view.php?id=515 issue already found seem, any other suggest?

Dave Yeo

unread,
Jun 4, 2013, 10:10:08 PM6/4/13
to
gianf...@gmail.com wrote:
> Ok, setting your Dave, some steps forward but invoking autoreconf for openjpeg this is the output:
> Can't locate Autom4te/ChannelDefs.pm in @INC (@INC contains: /usr/share/autoconf /perl5/lib/site_perl/5.14.2/os2 /perl5/lib/site_perl/5.14.2 /perl
> 5/lib/5.14.2/os2 /perl5/lib/5.14.2 /perl5/lib/site_perl .) at u:\usr\bin/autoreconf line 39.
> BEGIN failed--compilation aborted at u:\usr\bin/autoreconf line 39.
> # exit
>
> I read thishttp://mantis.smedley.id.au/view.php?id=515 issue already found seem, any other suggest?

Seems vaguely familiar but I don't use Pauls build environment and
autoreconf works here though autoconf is installed in /usr/local/share.
What happens if you do sh autoconf?
Dave

Dave Yeo

unread,
Jun 4, 2013, 10:42:52 PM6/4/13
to
Dave Yeo wrote:
> set PERL_SH_DIR=/bin/sh.exe

That should be /bin
Dave

gianf...@gmail.com

unread,
Jun 5, 2013, 12:00:41 AM6/5/13
to
[C:\downloads\ports\openjpeg\openjpeg-1.5.1]sh autoconf
u:\usr\bin/autoconf: /usr/bin/autom4te: not found

but autom4te is there and look at existing files and paths:

BEGIN
{
my $pkgdatadir = $ENV{'autom4te_perllibdir'} || '/usr/share/autoconf';
unshift @INC, $pkgdatadir;

$ENV{'SHELL'} = '/bin/sh' if ($^O eq 'dos');
}

use Autom4te::C4che;
use Autom4te::ChannelDefs;
use Autom4te::Channels;
use Autom4te::FileUtils;
use Autom4te::General;
use Autom4te::XFile;
use File::Basename;
use strict;

Those packages are the last from Ko Myung-Hun (now they are all in /usr/bin) and...uhmm

set PERL_SH_DIR=\bin\sh.exe
"\" instead of "/"

changed but the output is the same

gianf...@gmail.com

unread,
Jun 5, 2013, 12:24:26 AM6/5/13
to
There should be something else wrong Dave, this is my testperl.cmd out:


ECHO is off.
Testing perl... Getting version...
ECHO is off.

This is perl 5, version 14, subversion 2 (v5.14.2) built for os2

Copyright 1987-2011, Larry Wall


OS/2 port Copyright (c) 1990, 1991, Raymond Chen, Kai Uwe Rommel
Version 5 port Copyright (c) 1994-2002, Andreas Kaiser, Ilya Zakharevich
Version 5.8.8+ ports Copyright (c) 2007-2012, Paul Smedley, Knut St. Osmundsen

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

====================================
We checked that Perl can be loaded. Apparently, your PATH and LIBPATH
are set to reasonable values. From now on the tests are coded in Perl.
Press <ENTER>: ====================================
The next step is to check that you installed shell in a location perl can
find, so that you can start external programs.
====================================
I could not find your shell. You WILL have problems starting external
programs (except the simplest ones). Please check that you installed
a shell with a Bourne syntax and informed Perl where to find it.
====================================
You had set an environment variable PERL_SH_DIR. However,
there is NO DIRECTORY with name '/bin/sh.exe' !
Consider getting help via
view perl "Starting OS/2"
view perl PERL_SH_DIR
or in whatever way you like the Perl documentation accessed, say, via
perldoc perlos2
man, acrobat, netscape, lynx, GNU info, TeX, reading REAME.os2, reading
POD files, and so on.
Press <ENTER>: ====================================
Ouph, the most frequent problem is behind... Now testing Perl library search.
Cannot find the core of Perl library. If you have it installed:
Consider getting help via
view perl PERLLIB_PREFIX
or in whatever way you like the Perl documentation accessed, say, via
perldoc perlos2
man, acrobat, netscape, lynx, GNU info, TeX, reading REAME.os2, reading
POD files, and so on.
Skipping further tests now...
Tests finished. Press <ENTER>:

all statements set.. i dont know

Dave Yeo

unread,
Jun 5, 2013, 12:51:04 AM6/5/13
to
gianf...@gmail.com wrote:
> Il giorno mercoledě 5 giugno 2013 04:42:52 UTC+2, Dave Yeo ha scritto:
>> > Dave Yeo wrote:
>> >
>>> > > set PERL_SH_DIR=/bin/sh.exe
>> >
>> >
>> >
>> > That should be /bin
>> >
>> > Dave
> There should be something else wrong Dave, this is my testperl.cmd out:
>
>
> ECHO is off.
> Testing perl... Getting version...
> ECHO is off.
>
> This is perl 5, version 14, subversion 2 (v5.14.2) built for os2
>
> Copyright 1987-2011, Larry Wall
>
>
> OS/2 port Copyright (c) 1990, 1991, Raymond Chen, Kai Uwe Rommel
> Version 5 port Copyright (c) 1994-2002, Andreas Kaiser, Ilya Zakharevich
> Version 5.8.8+ ports Copyright (c) 2007-2012, Paul Smedley, Knut St. Osmundsen
>
> Perl may be copied only under the terms of either the Artistic License or the
> GNU General Public License, which may be found in the Perl 5 source kit.
>
> Complete documentation for Perl, including FAQ lists, should be found on
> this system using "man perl" or "perldoc perl". If you have access to the
> Internet, point your browser athttp://www.perl.org/, the Perl Home Page.
>
> ====================================
> We checked that Perl can be loaded. Apparently, your PATH and LIBPATH
> are set to reasonable values. From now on the tests are coded in Perl.
> Press<ENTER>: ====================================
> The next step is to check that you installed shell in a location perl can
> find, so that you can start external programs.
> ====================================
> I could not find your shell. You WILL have problems starting external
> programs (except the simplest ones). Please check that you installed
> a shell with a Bourne syntax and informed Perl where to find it.
> ====================================
> You had set an environment variable PERL_SH_DIR. However,
> there is NO DIRECTORY with name '/bin/sh.exe' !

As I said, it should be set to /bin (or wherever you have sh.exe). I use
[pdk]sh.exe as a shell.
After correcting my BEGINLIBPATH to point to g:\perl5\bin instead of lib
perltest.cmd complains about a bunch of
The following entries in 'g:/perl5/lib/5.16.3/os2/Config.pm'
contain path settings which look suspicious:
aphostname => 'u:/bin/hostname'
archlib => 'u:/perl5/lib/5.16.3/os2'
...
usrinc => 'U:/USR/include'
Press <ENTER>: ====================================
Apparently you edited 'g:/perl5/lib/5.16.3/Net/Config.pm',
so I expect you know what you did. OK...
Tests finished. Press <ENTER>:

I should probably edit these to point to G: instead of U: or better
build it myself.

I installed Pauls newest recently and haven't used it much but
autoreconf -i -f works as expected.
Previously I used an EMX build of perl 5.8 that I built
Dave

gianf...@gmail.com

unread,
Jun 5, 2013, 2:57:47 PM6/5/13
to
> I should probably edit these to point to G: instead of U: or better
>
> build it myself.
>
>
>
> I installed Pauls newest recently and haven't used it much but
>
> autoreconf -i -f works as expected.
>
> Previously I used an EMX build of perl 5.8 that I built
>
> Dave

Okay, so for now I keep it so, when I have time I will also try to build perl.
Thanks Dave
0 new messages