[ic] how and where .. One last problem with gdbm and can notcreate even though products is mode 777 SOLUTION was to edit Config.pminthe perl Library.

Joachim Leidinger interchange-users@interchange.redhat.com
Sun Apr 14 16:54:01 2002


Kevin Walsh wrote:
> 
> > > Do you have a patch you could post?  I can't say that I understand
> > > your solution.  The code (or an example) will help.
> > >
> > > Its good that you got it going anyway.  Well done.
> > >
> > Below is a patch -c with my email address change.
> >
> > Patch with lots of changes along the lines of...
> >     ! installarchlib='/usr/local/lib/perl5/5.6.1/i586-linux'
> >     ! installarchlib='/linux/usr/local/lib/perl5/5.6.1/i586-linux'
> > ...snipped
> >
> Ok.  I see what you've done then.
> 
> Would it not have been easier to simply install Perl under
> /usr/local rather than in /linux/usr/local?  Or perhaps you
> could have set up a couple of symbolic links.
> 
> Doing it your way will force you to make the same changes every
> time you upgrade to a new Interchange version.
> 
> Never mind.  As long as it works.

Hmmmm...if I understand this threat right, I've the same trouble with
FreeBSD. Per default, FreeBSD 4 has Perl 5 as default.

------ snip -----
#perl -V
Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
  Platform:
    osname=freebsd, osvers=4.0-current, archname=i386-freebsd
......
  @INC:
    /usr/libdata/perl/5.00503/mach
    /usr/libdata/perl/5.00503
    /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
    /usr/local/lib/perl5/site_perl/5.005
    .
------ snip -----

I can use Perl 6 beside of the Perl 5 in FreeBSD and Perl 6 is located
in another directory.

------ snip -----
BPA:/root[root] #/usr/local/bin/perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
  Platform:
    osname=freebsd, osvers=4.4-release-p2, archname=i386-freebsd
.....
  @INC:
    /usr/local/lib/perl5/5.6.1/BSDPAN
    /usr/local/lib/perl5/5.6.1/mach
    /usr/local/lib/perl5/5.6.1
    /usr/local/lib/perl5/site_perl/5.6.1/mach
    /usr/local/lib/perl5/site_perl/5.6.1
    /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
    /usr/local/lib/perl5/site_perl/5.005
    /usr/local/lib/perl5/site_perl
------ snip -----

Do you see the different?
But, how can I tell IC to use Perl 5 or Perl 6?
If you download the tarball of IC, you need a file "Makefile" to install
IC and I think or believe, this is a fact for all kind of UNIX OS. In
this case, you can create a Makefile for different Perl and install IC
for different using of perl version. For example (with FreeBSD):

perl Makefile.PL create a file "Makefile" and this file has the content

------ snip -----
...
INSTALLSITELIB = /usr/local/lib/perl5/site_perl/5.005
INSTALLSITEARCH = /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
INSTALLBIN = /home/testIC/bin
INSTALLSCRIPT = /home/testIC/bin
PERL_LIB = /usr/libdata/perl/5.00503
PERL_ARCHLIB = /usr/libdata/perl/5.00503/mach
SITELIBEXP = /usr/local/lib/perl5/site_perl/5.005
SITEARCHEXP = /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
LIBPERL_A = libperl.a
FIRST_MAKEFILE = Makefile
MAKE_APERL_FILE = Makefile.aperl
PERLMAINCC = $(CC)
PERL_INC = /usr/libdata/perl/5.00503/mach/CORE
PERL = /usr/bin/perl
FULLPERL = /usr/bin/perl
...
------ snip -----

Here is the different between bin/interchange in both Perl Version

Perl 5:
#head /home/ic48/bin/interchange
#!/usr/bin/perl

eval 'exec /usr/bin/perl  -S $0 ${1+"$@"}'
    if 0; # not running under some shell
##!~_~perlpath~_~
#
# Interchange version 4.8.3
#
# $Id: interchange.PL,v 2.7.2.5 2001/11/26 22:33:00 jon Exp $
#

Perl 6:
 #head /home/ic48P561/bin/interchange
#!/usr/local/bin/perl

eval 'exec /usr/local/bin/perl  -S $0 ${1+"$@"}'
    if 0; # not running under some shell
##!~_~perlpath~_~
#
# Interchange version 4.8.3
#
# $Id: interchange.PL,v 2.7.2.5 2001/11/26 22:33:00 jon Exp $
#

Joachim
after installing IC with Perl 5, I have IC running with Perl 5. If I
wish IC running with Perl 6, I delete the "Makefile" file and create a
new "Makefile" with Perl 6 like

------ snip -----
....
INSTALLSITELIB = $(PREFIX)/lib/perl5/site_perl/5.6.1
INSTALLSITEARCH = $(PREFIX)/lib/perl5/site_perl/5.6.1/mach
INSTALLBIN = /home/testIC/bin
INSTALLSCRIPT = /home/testIC/bin
PERL_LIB = /usr/local/lib/perl5/5.6.1/BSDPAN
PERL_ARCHLIB = /usr/local/lib/perl5/5.6.1/mach
SITELIBEXP = /usr/local/lib/perl5/site_perl/5.6.1
SITEARCHEXP = /usr/local/lib/perl5/site_perl/5.6.1/mach
LIBPERL_A = libperl.a
FIRST_MAKEFILE = Makefile
MAKE_APERL_FILE = Makefile.aperl
PERLMAINCC = $(CC)
PERL_INC = /usr/local/lib/perl5/5.6.1/mach/CORE
PERL = /usr/local/bin/perl
FULLPERL = /usr/local/bin/perl
...
------ snip -----

and I'm able install IC with Perl 6 and use it running with Perl 6.


-- 
Hans-Joachim Leidinger | Dipl.-Phys.Ing. Entwicklung eCommerce
[leidinger@bpanet.de] 
Black Point Arts Internet Solutions GmbH
http://www.bpanet.de