11-22-2011
Hi,
on linux platforms you can try (as root):
# updatedb
then as your user:
$ locate perl
warning, this command can return a lot of lines, so you'd better pipe the output to 'more'.
One of the usual installation path may be something like /usr/bin/perl, let's assume this is the case for you from now on.
To check if the command 'perl' in the path '/usr/bin' is actually the perl executable, you can try the following command:
$ /usr/bin/perl -e 'print join "\n", @INC'
if the path is correct, you should see in output the list of perl modules currently installed.
Once you have identified the correct path, you can add it to your user's PATH (i.e. if you're using bash shell, edit your .bash_profile and add the path /usr/bin to PATH, like: PATH=$PATH:/usr/bin).
see ya
fra
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
i'm designing a unix script and i want to know if there is a shell command or a way to see if perl is installed in the system.
thanks in advance! (5 Replies)
Discussion started by: kfad
5 Replies
2. UNIX for Dummies Questions & Answers
Hi,
How can I know the perl interpreter is installed in the system?
When I type 'find / -name perl -print 2>/dev/null', there is 6 lines listing:
/usr/local/bin/perl
/usr/bin/perl
/usr/lib/perl-5.8.0/bin/perl
/usr/opt/IAFW310/PERL/perl
/usr/opt/IAFW310/PERL/t/perl... (3 Replies)
Discussion started by: zp523444
3 Replies
3. AIX
Hi all,
I wanted to know if Perl comes installed by default on AIX 5.2 and 5.3. I know it's available through the Linux affinity toolbox, but couldn't figure out if it's installed by default along with the RPM (rpm.rte). Does anyone know for sure?
Thanks,
JP (4 Replies)
Discussion started by: jbeaudry
4 Replies
4. Shell Programming and Scripting
I use CentOS .
I want to know how to find out which sql i have installed ..
Can anyone tell .. (2 Replies)
Discussion started by: madhumathikv
2 Replies
5. UNIX for Dummies Questions & Answers
Hi;
Is there a way to determine for sure how many NIC ports installed on my Linux box?
I tried to run "lspci" but not sure about the results, it's not clear.
Below are the results when i run both "ifconfig" & "lspci" on my Linux box i hope someone can help me finding the actual numbers of... (1 Reply)
Discussion started by: Katkota
1 Replies
6. UNIX for Dummies Questions & Answers
Hi,
How to find the CVS installed location on Solaris machine.
~Vinodh' Kumar
---------- Post updated at 01:14 PM ---------- Previous update was at 12:36 PM ----------
I got the solution. (2 Replies)
Discussion started by: vino_hymi
2 Replies
7. AIX
I have an aix server, it is not a VIO server or client. I need to check if it has multi-path driver installed, how to check it? (1 Reply)
Discussion started by: rainbow_bean
1 Replies
8. UNIX for Advanced & Expert Users
we create a HP-UX software depot with a new perl-modul. after installation of the software depot, the perl module
i can't find with instmodsh in the inventory for installed Perl modules.
- i have learned of using instmodsh command : i find out what modules are already installed on my system.
... (0 Replies)
Discussion started by: bora99
0 Replies
9. Solaris
Hi all,
Recently i wanted to see if i have openssl installed in my system (solaris 10), so i do this (not sure if this is the right way to do this)
pkginfo -i | grep -i "ssl"
system SUNWopenssl-commands OpenSSL Commands (Usr)
system SUNWopenssl-include ... (3 Replies)
Discussion started by: javanoob
3 Replies
10. UNIX for Beginners Questions & Answers
Hello Forum,
I'm issuing a one line bash command to look for the version of an installed application and saving the result to a variable like so:
APP=application --version
But if the application is not installed I want to return to my variable that the Application is not installed. So I'm... (2 Replies)
Discussion started by: greavette
2 Replies
shells(4) File Formats shells(4)
NAME
shells - shell database
SYNOPSIS
/etc/shells
DESCRIPTION
The shells file contains a list of the shells on the system. Applications use this file to determine whether a shell is valid. See getuser-
shell(3C). For each shell a single line should be present, consisting of the shell's path, relative to root.
A hash mark (#) indicates the beginning of a comment; subsequent characters up to the end of the line are not interpreted by the routines
which search the file. Blank lines are also ignored.
The following default shells are used by utilities: /bin/bash, /bin/csh, /bin/jsh, /bin/ksh, /bin/pfcsh, /bin/pfksh, /bin/pfsh, /bin/sh,
/bin/tcsh, /bin/zsh, /sbin/jsh, /sbin/sh, /usr/bin/bash, /usr/bin/csh, /usr/bin/jsh, /usr/bin/ksh, /usr/bin/pfcsh, /usr/bin/pfksh,
/usr/bin/pfsh, and /usr/bin/sh, /usr/bin/tcsh, /usr/bin/zsh. Note that /etc/shells overrides the default list.
Invalid shells in /etc/shells may cause unexpected behavior (such as being unable to log in by way of ftp(1)).
FILES
/etc/shells lists shells on system
SEE ALSO
vipw(1B), ftpd(1M), sendmail(1M), getusershell(3C), aliases(4)
SunOS 5.10 4 Jun 2001 shells(4)