Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Opensuse 12.2 how can i check if i do run one or two versions of Perl?!

by Perlbeginner1 (Scribe)
on Oct 30, 2012 at 21:02 UTC ( #1001552=perlquestion: print w/ replies, xml ) Need Help??
Perlbeginner1 has asked for the wisdom of the Perl Monks concerning the following question:

-gentlemen,

i run opensuse 12.2
note - i have serous troubles with some modules. Well

i think that can be caused of some messi perl-installation:

opensuse 12.2 how can i check if i do run one or two versions of Perl?!
can i check this via yast or commandline!?

update & not





# curl -kL http://install.perlbrew.pl | bash % Total % Received % Xferd Average Speed Time Time Time + Current Dload Upload Total Spent Left + Speed 0 315 0 0 0 0 0 0 --:--:-- --:--:-- --:--: +-- 0 100 1022 100 1022 0 0 1121 0 --:--:-- --:--:-- --:--: +-- 1121 ## Download the latest perlbrew ## Installing perlbrew perlbrew is installed: ~/perl5/perlbrew/bin/perlbrew perlbrew root (~/perl5/perlbrew) is initialized. + + Append the following piece of code to the end of your ~/.bash_profile +and start a + new shell, perlbrew should be up and fully functional from there: + + + + source ~/perl5/perlbrew/etc/bashrc + + + + Simply run `perlbrew` for usage details. + + Happy brewing! ## Installing patchperl ## Done.

Comment on Opensuse 12.2 how can i check if i do run one or two versions of Perl?!
Download Code
Re: Opensuse 12.2 how can i check if i do run one or two versions of Perl?!
by tobyink (Abbot) on Oct 30, 2012 at 21:25 UTC

    This will find all executable files called "perl" on your system...

    locate -br '^perl$' | perl -nle'print if -x and not -d'
    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
Re: Opensuse 12.2 how can i check if i do run one or two versions of Perl?!
by aitap (Deacon) on Oct 30, 2012 at 21:26 UTC
    What problems exactly do you have? You can probably have more that one Perl installed, but it cannot be easily checked since it could be installed anywhere (and in many possible ways). Try checking in /usr/local and /opt. Try checking whether perlbrew is installed on your system.
    Sorry if my advice was wrong.
      hi there - hello dear aitap mille grazie for the tipp...



      update & not





      # curl -kL http://install.perlbrew.pl | bash % Total % Received % Xferd Average Speed Time Time Time + Current Dload Upload Total Spent Left + Speed 0 315 0 0 0 0 0 0 --:--:-- --:--:-- --:--: +-- 0 100 1022 100 1022 0 0 1121 0 --:--:-- --:--:-- --:--: +-- 1121 ## Download the latest perlbrew ## Installing perlbrew perlbrew is installed: ~/perl5/perlbrew/bin/perlbrew perlbrew root (~/perl5/perlbrew) is initialized. + + Append the following piece of code to the end of your ~/.bash_profile +and start a + new shell, perlbrew should be up and fully functional from there: + + + + source ~/perl5/perlbrew/etc/bashrc + + + + Simply run `perlbrew` for usage details. + + Happy brewing! ## Installing patchperl ## Done.

        Was perlbrew installed before you installed it this time? I meant that you need just to check for its presence (which would have meaned that there is a custom-installed Perl apart from packaged Perl), not to install (or use) it. You can still try to install another Perl and see if it solves your problem, but this is a wrong way.

        And you still didn't show us (or link us to) the errors you receive. Can you please do it?

        Sorry if my advice was wrong.
      hello dear friend


      even with perlbrew i run into the same errors.

      guess that i have to make a new installation -from scratch...

        Which errors? The same as your previous post? If so that's nothing to do with Perl, or perlbrew. How do I post a question effectively?. As you continue to fail to provide the details of the problems you're having the answers still evade you.

Re: Opensuse 12.2 how can i check if i do run one or two versions of Perl?!
by Perlbotics (Abbot) on Oct 30, 2012 at 21:41 UTC
    The perl's in your $PATH can be shown like this:
    bash: type -a perl perl ist /opt/perl/bin/perl perl ist /usr/bin/perl perl ist /usr/bin/X11/perl
    Vendor's perl:
    bash: /usr/sbin/zypper info perl ... Information for package perl: Repository: @System Name: perl Version: 5.12.3-11.20.1 Arch: i586 Vendor: openSUSE Installed: Yes Status: up-to-date Installed Size: 40.5 MiB Summary: The Perl interpreter Description: perl - Practical Extraction and Report Language ...
    Find all perls that you can access with current privileges:
    bash: find / -type f -name perl -ls 2>/dev/null ... 808533 1372 -rwxr-xr-x 2 perl5 users 1404260 Aug 28 2011 /o +pt/perl/bin/perl 1094084 1372 -rwxr-xr-x 1 perl5 users 1404260 Aug 27 2011 /h +ome/perl5/src/perl-5.14.1/perl 6203 2832 -rwxr-xr-x 2 root root 2899960 Jan 31 2012 /u +sr/bin/perl ...
Re: Opensuse 12.2 how can i check if i do run one or two versions of Perl?!
by marto (Chancellor) on Oct 30, 2012 at 22:34 UTC

    "i run opensuse 12.2 note - i have serous troubles with some modules. Well i think that can be caused of some messi perl-installation: "

    We've established in previous threads you don't have the module prerequisites installed. As advised, review you other posts and the replies, read http://learn.perl.org, the tutorials section of this site. If you're still unable to achieve this one task, it may be better to pay someone to do it for you. You've spent a vast amount of time working on this one problem, with seemingly little results.

    Update: they posted this (and by the looks of it, many of their other posts) on the Opensuse forums.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1001552]
Approved by tobyink
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2014-11-27 12:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (184 votes), past polls