On Thu, Aug 05, 2004, [EMAIL PROTECTED] wrote:
>I'm using linux too (but relative old RH 7.3) and I thought using OpenPKG
>wersions of softwares would give me a longer updated live. If my thinking is
>correct, I would like to use OpenPKG version of perl and not the RH73 one.

That's probably a Bad Idea(tm) as RH 7.3 may well have things that depend
on their particular version of perl and its associated modules.  One of the
major advantages of OpenPKG is that the OpenPKG instance(s) are independent
of the vendor's underlying packaging system and other installed software.
I have systems running OpenPKG Release 2.0 under Caldera eDesktop 2.4 which
is about the same vintage as RH 7.3 with good results.

Leave the RH stuff alone, and use OpenPKG for everthing else.  Typically I
set systems up so that root logins don't have the OpenPKG environment set
by default to avoid problems with the vendor's maintenance scripts and
updates.  I have to manually execute a command that invokes the OpenPKG
eval when logged in as root.  This is less of a problem since OpenPKG
Release 2.0 removed ``rpm'' from the PATH, but there are still potential
problems if one has the OpenPKG executables in the PATH before the default
system directories.

>Could I write a small script that I name /usr/bin/perl  with something like:
>
>#/bin/sh
>
>if [ OPKG-ENV_NOT_SET ]; then
>   /opkg/etc/rc --eval all env
>fi
>
>/opkg/bin/perl $*
>
>
>
>Also I don't know how to check if OPKG_ENV_NOT_SET. Should grabing opkg in $PATH
>be enouth ?
>
>
>Thanks,
>
>Alex
>
>Citando Bill Campbell <[EMAIL PROTECTED]>:
>
>> On Thu, Aug 05, 2004, Alexander Belck wrote:
>> >Some perl scripts use #!/usr/bin/perl
>> >
>> >Could I just symlink ln -s /opkg/bin/perl /usr/bin/ ?
>>
>> I've done this with links to /usr/local/bin/perl with reasonable
>> success.  Most of the systems we use already have /usr/bin/perl
>> (e.g. they're Linux).
>>
>> >If the perl script is executed by a user that DO NOT have previosly run
>> >
>> >/opkg/etc/rc --evall all env
>>
>> This depends on whether the perl scripts make system() calls that depend on
>> the PATH that's set (and spelling --eval correctly :-).  Most of the
>> scripts I write check to see if the OpenPKG environment has been set, and
>> if it hasn't, they set it explicitly.
>>
>> Bill
>> --
>> INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Software LLC
>> UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
>> FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
>> URL: http://www.celestial.com/
>>
>> When only cops have guns, it's called a ``police state''.
>>         -- Claire Wolfe, "101 Things To Do Until The Revolution"
>> ______________________________________________________________________
>> The OpenPKG Project                                    www.openpkg.org
>> User Communication List                      [EMAIL PROTECTED]
>>
>
>
>
>
>----------------------------------------------------------------
>This message was sent using IMP, the Internet Messaging Program.
>______________________________________________________________________
>The OpenPKG Project                                    www.openpkg.org
>User Communication List                      [EMAIL PROTECTED]
>

-- 
Bill
--
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Software LLC
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

    Do not meddle in the affairs of dragons,
 for you are crunchy and taste good with ketchup.
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      [EMAIL PROTECTED]

Reply via email to