Re: Is perl user specific

2016-01-06 Thread Uri Guttman

On 01/07/2016 01:11 AM, Ankita Rath wrote:


/usr/bin/perl -v is 5.8.8




on which system? you need to print that for both. one of them is using 
5.8.8 and the other is using an older perl which doesn't work for your code.


uri


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/




Re: Is perl user specific

2016-01-06 Thread Uri Guttman

On 01/07/2016 02:38 AM, Duncan Ferguson wrote:


If the perl binary is the same between both users, but you are getting 
module version errors, then it is possible you have other environment 
settings telling perl to use different library paths


To check, use

env | grep –i perl

and look for differences, especially for PERL5LIB or PERLLIB




the #! line will override anything else. only if you run the script as 
perl script.pl will perl be selected by the $PATH. also the env vars you 
mention only control loading modules. she has a perl version problem.


uri


RE: Is perl user specific

2016-01-06 Thread Duncan Ferguson
If the perl binary is the same between both users, but you are getting module 
version errors, then it is possible you have other environment settings telling 
perl to use different library paths

To check, use

env | grep –i perl

and look for differences, especially for PERL5LIB or PERLLIB

  Duncs

From: Ankita Rath [mailto:ankitarath2...@gmail.com]
Sent: 07 January 2016 06:12
To: Uri Guttman 
Cc: Perl Beginners 
Subject: Re: Is perl user specific


/usr/bin/perl -v is 5.8.8
On 7 Jan 2016 11:27, "Uri Guttman" 
mailto:u...@stemsystems.com>> wrote:
On 01/07/2016 12:53 AM, Ankita Rath wrote:

Yes #!/usr/bin/perl  is there in the code. We both are using same code.


yes, but which versions of perl does that path point to on your systems? run 
this on each system:

/usr/bin/perl -v

my guess given what we have seen is that the default perl on the systems are 
different versions. if this is true, you have to upgrade one of them to 5.8. 
5.005 is extremely old and shouldn't be used anymore.

uri


Re: Is perl user specific

2016-01-06 Thread Uri Guttman

On 01/07/2016 12:53 AM, Ankita Rath wrote:


Yes #!/usr/bin/perl  is there in the code. We both are using same code.




yes, but which versions of perl does that path point to on your systems? 
run this on each system:


/usr/bin/perl -v

my guess given what we have seen is that the default perl on the systems 
are different versions. if this is true, you have to upgrade one of them 
to 5.8. 5.005 is extremely old and shouldn't be used anymore.


uri

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/




Re: Is perl user specific

2016-01-06 Thread Ankita Rath
Yes #!/usr/bin/perl  is there in the code. We both are using same code.
On 7 Jan 2016 11:10, "Uri Guttman"  wrote:

> On 01/07/2016 12:29 AM, Ankita Rath wrote:
>
>>
>> Hi all,
>>
>> I checked the mentioned things.
>>
>> Perl -v
>> Which perl
>> Echo $PATH
>>
>> Everything is same for both the user. I am not understanding why is it
>> working in one user and not in other.
>>
>>
> is there a #!/usr/bin/perl (or similar) in beginning of the script? it
> will force that perl to be used but the versions on each system at that
> path could be different. do a perl -v but with that path on each system.
>
> as others have said, you are running different perl's on each box. you
> have to figure out exactly what is selecting perl on each box. the #! line
> is one of those ways.
>
> uri
>
>
>
>
>


Re: Is perl user specific

2016-01-06 Thread Uri Guttman

On 01/07/2016 12:29 AM, Ankita Rath wrote:


Hi all,

I checked the mentioned things.

Perl -v
Which perl
Echo $PATH

Everything is same for both the user. I am not understanding why is 
it  working in one user and not in other.




is there a #!/usr/bin/perl (or similar) in beginning of the script? it 
will force that perl to be used but the versions on each system at that 
path could be different. do a perl -v but with that path on each system.


as others have said, you are running different perl's on each box. you 
have to figure out exactly what is selecting perl on each box. the #! 
line is one of those ways.


uri





--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/




Re: Is perl user specific

2016-01-06 Thread Ankita Rath
Hi all,

I checked the mentioned things.

Perl -v
Which perl
Echo $PATH

Everything is same for both the user. I am not understanding why is it
working in one user and not in other.

Regards,
Ankita
On 6 Jan 2016 22:44, "Mike D"  wrote:

> In the future, please use the Reply All feature.
>
> So, run `echo $PATH` on both users.
>
> If the path for the Perl executable is different for the user in which the
> script works, try editing the path variable for the user in which it
> doesn't to use the path to the working Perl executable:
>
> http://superuser.com/questions/488173/how-can-i-edit-the-path-on-linux
>
> On Wed, Jan 6, 2016 at 10:15 AM, Ankita Rath 
> wrote:
>
>> Thank you. But code is exactly same for both of us. Is there any user
>> specific system file where perl path has to be added?
>>
>> On Wed, Jan 6, 2016 at 9:09 PM,  wrote:
>>
>>> Hello,
>>>
>>> I would assume that you have multiple versions of Perl installed and
>>> that the other user has the "working version" in their path, while this
>>> user has a different version in theirs.
>>>
>>> Sent from my iPhone.
>>>
>>> On Jan 6, 2016, at 9:34 AM, Ankita Rath 
>>> wrote:
>>>
>>> Hi all,
>>>
>>> I am trying to execute some perl scripts. I am getting following error.
>>> But other user in the same server are not getting the error. So can anybody
>>> help me understanding this problem. And why other user are not getting the
>>> error.
>>>
>>> Perl 5.008003 required--this is only version 5.00503, stopped at
>>> ../Modules/Modules_64/5.8.5/x86_64-linux-thread-multi/YAML/XS.pm line 26.
>>> BEGIN failed--compilation aborted at
>>> ../Modules/Modules_64/5.8.5/x86_64-linux-thread-multi/YAML/XS.pm line 26.
>>>
>>> Regards,
>>> Ankita
>>>
>>>
>>>
>>>
>>>
>>>
>>
>


Re: Is perl user specific

2016-01-06 Thread Ankita Rath
Oh okay..sorry ..I am using first time.
On 6 Jan 2016 22:53, "Mike D"  wrote:

> Please use the Reply All feature so that your replies get sent to the
> mailing list.
>
> On Wed, Jan 6, 2016 at 11:21 AM, Ankita Rath 
> wrote:
>
>> Okay I will try it.. Thank u
>>
>> Ankita
>> On 6 Jan 2016 22:44, "Mike D"  wrote:
>>
>>> In the future, please use the Reply All feature.
>>>
>>> So, run `echo $PATH` on both users.
>>>
>>> If the path for the Perl executable is different for the user in which
>>> the script works, try editing the path variable for the user in which it
>>> doesn't to use the path to the working Perl executable:
>>>
>>> http://superuser.com/questions/488173/how-can-i-edit-the-path-on-linux
>>>
>>> On Wed, Jan 6, 2016 at 10:15 AM, Ankita Rath 
>>> wrote:
>>>
 Thank you. But code is exactly same for both of us. Is there any user
 specific system file where perl path has to be added?

 On Wed, Jan 6, 2016 at 9:09 PM,  wrote:

> Hello,
>
> I would assume that you have multiple versions of Perl installed and
> that the other user has the "working version" in their path, while this
> user has a different version in theirs.
>
> Sent from my iPhone.
>
> On Jan 6, 2016, at 9:34 AM, Ankita Rath 
> wrote:
>
> Hi all,
>
> I am trying to execute some perl scripts. I am getting following
> error. But other user in the same server are not getting the error. So can
> anybody help me understanding this problem. And why other user are not
> getting the error.
>
> Perl 5.008003 required--this is only version 5.00503, stopped at
> ../Modules/Modules_64/5.8.5/x86_64-linux-thread-multi/YAML/XS.pm line 26.
> BEGIN failed--compilation aborted at
> ../Modules/Modules_64/5.8.5/x86_64-linux-thread-multi/YAML/XS.pm line 26.
>
> Regards,
> Ankita
>
>
>
>
>
>

>>>
>


Re: Is perl user specific

2016-01-06 Thread Mike D
Please use the Reply All feature so that your replies get sent to the
mailing list.

On Wed, Jan 6, 2016 at 11:21 AM, Ankita Rath 
wrote:

> Okay I will try it.. Thank u
>
> Ankita
> On 6 Jan 2016 22:44, "Mike D"  wrote:
>
>> In the future, please use the Reply All feature.
>>
>> So, run `echo $PATH` on both users.
>>
>> If the path for the Perl executable is different for the user in which
>> the script works, try editing the path variable for the user in which it
>> doesn't to use the path to the working Perl executable:
>>
>> http://superuser.com/questions/488173/how-can-i-edit-the-path-on-linux
>>
>> On Wed, Jan 6, 2016 at 10:15 AM, Ankita Rath 
>> wrote:
>>
>>> Thank you. But code is exactly same for both of us. Is there any user
>>> specific system file where perl path has to be added?
>>>
>>> On Wed, Jan 6, 2016 at 9:09 PM,  wrote:
>>>
 Hello,

 I would assume that you have multiple versions of Perl installed and
 that the other user has the "working version" in their path, while this
 user has a different version in theirs.

 Sent from my iPhone.

 On Jan 6, 2016, at 9:34 AM, Ankita Rath 
 wrote:

 Hi all,

 I am trying to execute some perl scripts. I am getting following error.
 But other user in the same server are not getting the error. So can anybody
 help me understanding this problem. And why other user are not getting the
 error.

 Perl 5.008003 required--this is only version 5.00503, stopped at
 ../Modules/Modules_64/5.8.5/x86_64-linux-thread-multi/YAML/XS.pm line 26.
 BEGIN failed--compilation aborted at
 ../Modules/Modules_64/5.8.5/x86_64-linux-thread-multi/YAML/XS.pm line 26.

 Regards,
 Ankita






>>>
>>


Re: Is perl user specific

2016-01-06 Thread Mike D
In the future, please use the Reply All feature.

So, run `echo $PATH` on both users.

If the path for the Perl executable is different for the user in which the
script works, try editing the path variable for the user in which it
doesn't to use the path to the working Perl executable:

http://superuser.com/questions/488173/how-can-i-edit-the-path-on-linux

On Wed, Jan 6, 2016 at 10:15 AM, Ankita Rath 
wrote:

> Thank you. But code is exactly same for both of us. Is there any user
> specific system file where perl path has to be added?
>
> On Wed, Jan 6, 2016 at 9:09 PM,  wrote:
>
>> Hello,
>>
>> I would assume that you have multiple versions of Perl installed and that
>> the other user has the "working version" in their path, while this user has
>> a different version in theirs.
>>
>> Sent from my iPhone.
>>
>> On Jan 6, 2016, at 9:34 AM, Ankita Rath  wrote:
>>
>> Hi all,
>>
>> I am trying to execute some perl scripts. I am getting following error.
>> But other user in the same server are not getting the error. So can anybody
>> help me understanding this problem. And why other user are not getting the
>> error.
>>
>> Perl 5.008003 required--this is only version 5.00503, stopped at
>> ../Modules/Modules_64/5.8.5/x86_64-linux-thread-multi/YAML/XS.pm line 26.
>> BEGIN failed--compilation aborted at
>> ../Modules/Modules_64/5.8.5/x86_64-linux-thread-multi/YAML/XS.pm line 26.
>>
>> Regards,
>> Ankita
>>
>>
>>
>>
>>
>>
>


Re: Is perl user specific

2016-01-06 Thread Andy Bach
On Wed, Jan 6, 2016 at 9:46 AM, Dermot  wrote:

> You could try the `which` command if you are using a *nix based OS. For
> instance;
>
> >which perl
> /usr/bin/perl
>

and, to go a little further, as /usr/bin/perl is the most likely and so
it's probably the 5.005 version, you could look at /usr/local/bin/perl, if
there is one or try the "locate" command
> locate bin/perl
/opt/ecf/bin/perl
/opt/ecf/bin/perlbug
/opt/ecf/bin/perlcc
/opt/ecf/bin/perldoc
/opt/ecf/bin/perlivp
...
/usr/bin/perl
/usr/bin/perl5.8.8
/usr/bin/perlbug
..
/usr/local/bin/perl

or
> locate "*/perl"
/opt/ecf/bin/perl
/home/offsite_data/inside/usr/local/perl
/home/offsite_data/inside/usr/local/bin/perl
/usr/bin/perl
/usr/local/bin/perl

any of those might be the the 5.008+ version you need. You can than use the
full path, e.g.
> /usr/local/bin/perl 

RE: Is perl user specific

2016-01-06 Thread Duncan Ferguson
This suggests to me you have two version of perl on your system and your users 
are using different versions

Check by running these commands as each user and seeing what they return

# show the perl version being used
perl –v
# show where perl is being used from
which perl

  Duncs

From: Ankita Rath [mailto:ankitarath2...@gmail.com]
Sent: 06 January 2016 15:35
To: beginners@perl.org
Subject: Is perl user specific

Hi all,

I am trying to execute some perl scripts. I am getting following error. But 
other user in the same server are not getting the error. So can anybody help me 
understanding this problem. And why other user are not getting the error.

Perl 5.008003 required--this is only version 5.00503, stopped at 
../Modules/Modules_64/5.8.5/x86_64-linux-thread-multi/YAML/XS.pm line 26.
BEGIN failed--compilation aborted at 
../Modules/Modules_64/5.8.5/x86_64-linux-thread-multi/YAML/XS.pm line 26.

Regards,
Ankita







Re: Is perl user specific

2016-01-06 Thread Dermot
Hi Ankita,

Is is possible for there to be several Perl binaries installed. Features
such as perlbrew will allow you to have multiple versions installed in your
home directory. You could try the `which` command if you are using a *nix
based OS. For instance;

>which perl
/usr/bin/perl

Then try perl -v to find our what version you are actually running.
Good luck,
Dermot.


On 6 January 2016 at 15:34, Ankita Rath  wrote:

> Hi all,
>
> I am trying to execute some perl scripts. I am getting following error.
> But other user in the same server are not getting the error. So can anybody
> help me understanding this problem. And why other user are not getting the
> error.
>
> Perl 5.008003 required--this is only version 5.00503, stopped at
> ../Modules/Modules_64/5.8.5/x86_64-linux-thread-multi/YAML/XS.pm line 26.
> BEGIN failed--compilation aborted at
> ../Modules/Modules_64/5.8.5/x86_64-linux-thread-multi/YAML/XS.pm line 26.
>
> Regards,
> Ankita
>
>
>
>
>
>


Re: Is perl user specific

2016-01-06 Thread David Santiago
Hello Ankita,

The error says all:
Perl 5.008003 required--this is only version 5.00503

You are running perl version 5.005, but the minimum version to run is
5.008. Most probably the other account on the same server have a
higher perl version installed (please check perlbrew
(http://perlbrew.pl/) to learn how to install multiple versions on the
same machine)

Regards!

2016-01-06 16:34 GMT+01:00 Ankita Rath :
> Hi all,
>
> I am trying to execute some perl scripts. I am getting following error. But
> other user in the same server are not getting the error. So can anybody help
> me understanding this problem. And why other user are not getting the error.
>
> Perl 5.008003 required--this is only version 5.00503, stopped at
> ../Modules/Modules_64/5.8.5/x86_64-linux-thread-multi/YAML/XS.pm line 26.
> BEGIN failed--compilation aborted at
> ../Modules/Modules_64/5.8.5/x86_64-linux-thread-multi/YAML/XS.pm line 26.
>
> Regards,
> Ankita
>
>
>
>
>

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/




Re: Is perl user specific

2016-01-06 Thread Shawn H Corey
On Wed, 6 Jan 2016 21:04:39 +0530
Ankita Rath  wrote:

> I am trying to execute some perl scripts. I am getting following
> error. But other user in the same server are not getting the error.
> So can anybody help me understanding this problem. And why other user
> are not getting the error.
> 
> Perl 5.008003 required--this is only version 5.00503, stopped at
> ../Modules/Modules_64/5.8.5/x86_64-linux-thread-multi/YAML/XS.pm line
> 26. BEGIN failed--compilation aborted at
> ../Modules/Modules_64/5.8.5/x86_64-linux-thread-multi/YAML/XS.pm line
> 26.

Type the following on a command line:

perl --version

It will say something like:

This is perl 5, version 5,...

The version number must be 8 or higher to use XAML::Xs


-- 
Don't stop where the ink does.
Shawn

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/




Re: Is perl user specific

2016-01-06 Thread ekimdunaway
Hello,

I would assume that you have multiple versions of Perl installed and that the 
other user has the "working version" in their path, while this user has a 
different version in theirs.

Sent from my iPhone.

> On Jan 6, 2016, at 9:34 AM, Ankita Rath  wrote:
> 
> Hi all,
> 
> I am trying to execute some perl scripts. I am getting following error. But 
> other user in the same server are not getting the error. So can anybody help 
> me understanding this problem. And why other user are not getting the error.
> 
> Perl 5.008003 required--this is only version 5.00503, stopped at 
> ../Modules/Modules_64/5.8.5/x86_64-linux-thread-multi/YAML/XS.pm line 26.
> BEGIN failed--compilation aborted at 
> ../Modules/Modules_64/5.8.5/x86_64-linux-thread-multi/YAML/XS.pm line 26.
> 
> Regards,
> Ankita
> 
> 
> 
> 
> 


Is perl user specific

2016-01-06 Thread Ankita Rath
Hi all,

I am trying to execute some perl scripts. I am getting following error. But
other user in the same server are not getting the error. So can anybody
help me understanding this problem. And why other user are not getting the
error.

Perl 5.008003 required--this is only version 5.00503, stopped at
../Modules/Modules_64/5.8.5/x86_64-linux-thread-multi/YAML/XS.pm line 26.
BEGIN failed--compilation aborted at
../Modules/Modules_64/5.8.5/x86_64-linux-thread-multi/YAML/XS.pm line 26.

Regards,
Ankita