Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

/usr/bin/instmodsh: Permission denied.

by rnaeye (Pilgrim)
on May 23, 2010 at 04:11 UTC ( #841228=perlquestion: print w/ replies, xml ) Need Help??
rnaeye has asked for the wisdom of the Perl Monks concerning the following question:

After installing "Bundle::CPAN", I get errors for the following inputs:

/usr/bin/instmodsh: Permission denied.

/usr/bin/perldoc: Permission denied.

Can someone please help me to change the permission, so that I can successfully check installed Perl modules. Thank you.

Comment on /usr/bin/instmodsh: Permission denied.
Select or Download Code
Re: /usr/bin/instmodsh: Permission denied.
by biohisham (Priest) on May 23, 2010 at 04:57 UTC
    These two files in the directory "/usr/bin" are batch files that are intended for the command interpreter to read and execute. Which platform are you on, which Perl version? Did you observe any other errors through installing this module...???

    On a side note, If you're on Active State Perl for example that has the Perl Package Manager (PPM), you can check installed Perl modules via the command verify (MODULE-NAME) right from that package manager's shell itself...



    Excellence is an Endeavor of Persistence. Chance Favors a Prepared Mind.
Re: /usr/bin/instmodsh: Permission denied.
by Khen1950fx (Canon) on May 23, 2010 at 10:03 UTC
    If you just want to check your modules, then try this. Just enter perl script.pl module name
    #!/usr/bin/perl use strict; use warnings; use CPAN; my $mod = shift @ARGV; for $mod(CPAN::Shell->expand("Module", $mod)) { print "The current version is: ", $mod->cpan_version, "\n", "The installed version is: ", $mod->inst_version, "\n", $mod->inst_file, "\n", "Perl $]\n", "$^O\n"; }
Re: /usr/bin/instmodsh: Permission denied.
by ww (Bishop) on May 23, 2010 at 13:37 UTC
    As asked above, what system?

    In addition:

    • what are the permissions on those files, now? Who "owns" them?
    • And, are you running as an ordinary user? If not, what?
    • What are the permissions on Bundle::CPAN?

    No offense intended, but your question -- as written -- sounds like an appeal for an explanation of *n*x's chmod and directions on its use. If that's not your intent, please clarify. If it is, please read man chmod... and then -- if you're that new to *n*x -- proceed very cautiously.

    If the questions above are too hard to answer at your current knowledge level, you should probably consult a good introduction to your OS.

      Hi! All,

      Thank for trying to help. No offense taken. I am a biologist and my Perl knowledge is limited to the book "Learning Perl", and have minimal Unix knowledge, which you can already tell from my question.

      I am using MacOS 10.6.3 Terminal with Perl Version v5.10.0.

      Terminal Shell is "tcsh".

      File permission at top directory:

      [yigite:/] rnaeye% ls -l total 36500 drwxrwxr-x+ 90 root admin 3060 May 22 15:27 Applications drwxrwxrwx@ 8 501 admin 272 Dec 15 2003 Conversion Progra +ms drwxr-xr-x@ 10 rnaeye rnaeye 340 Mar 9 2006 Desktop Folder drwxrwxr-x@ 19 root admin 646 May 22 20:17 Developer drwxr-xr-x@ 6 rnaeye rnaeye 204 Jan 11 2008 Documents drwxrwxr-t+ 65 root admin 2210 May 8 16:45 Library drwxr-xr-x@ 2 root wheel 68 Feb 10 22:43 Network drwxr-xr-x 4 root wheel 136 May 8 14:24 System lrwxr-xr-x 1 root admin 60 May 7 18:29 User Guides And I +nformation -> /Library/Documentation/User Guides and Information.loca +lized lrwxr-xr-x 1 root admin 60 Sep 9 2008 User Guides And I +nformation (from old Mac) -> /Library/Documentation/User Guides and I +nformation.localized drwxr-xr-x 7 root admin 238 May 19 16:38 Users drwxrwxrwt@ 3 root admin 102 May 22 20:23 Volumes drwxr-xr-x@ 39 root wheel 1326 May 8 14:23 bin drwxrwxr-t@ 2 root admin 68 Feb 10 22:43 cores dr-xr-xr-x 3 root wheel 4079 May 22 20:22 dev lrwxr-xr-x@ 1 root wheel 11 May 8 14:23 etc -> private/et +c dr-xr-xr-x 2 root wheel 1 May 22 20:23 home -rw-r--r--@ 1 root wheel 18659362 Feb 26 13:59 mach_kernel dr-xr-xr-x 2 root wheel 1 May 22 20:23 net drwxr-xr-x@ 7 root wheel 238 May 8 16:18 private drwxr-xr-x@ 64 root wheel 2176 May 8 14:24 sbin lrwxr-xr-x@ 1 root wheel 11 May 8 14:23 tmp -> private/tm +p drwxr-xr-x@ 14 root wheel 476 May 22 20:20 usr lrwxr-xr-x@ 1 root wheel 11 May 8 14:23 var -> private/va +r

      File permissions at yigite:/usr rnaeye%:

      [yigite:/usr] rnaeye% ls -l total 8 drwxr-xr-x 8 root wheel 272 May 8 14:31 X11 lrwxr-xr-x 1 root wheel 3 May 8 14:31 X11R6 -> X11 drwxr-xr-x 1090 root wheel 37060 May 22 20:33 bin drwxr-xr-x 4 root wheel 136 Feb 24 20:10 etc drwxr-xr-x 271 root wheel 9214 May 22 20:18 include drwxr-xr-x 387 root wheel 13158 May 22 20:20 lib drwxr-xr-x 106 root wheel 3604 May 22 20:20 libexec drwxrwxr-x 7 root admin 238 Jan 20 00:45 llvm-gcc-4.2 drwxr-xr-x 9 root wheel 306 May 8 16:19 local drwxr-xr-x 236 root wheel 8024 May 22 20:20 sbin drwxr-xr-x 74 root wheel 2516 May 22 20:20 share drwxr-xr-x 4 root wheel 136 May 8 14:23 standalone

      Since I cannot find where Bundle::CPAN is located I cannot send you file permissions for it.

      Thanks for your time. I really appreciate it.

        What are the permissions on the files instmodsh and perldoc?

        Have you tried $ perl -S instmodsh or $ perl -S perldoc?

        When you get perldoc working try

        $ perldoc -l strict C:\perl\5.10.1\lib\strict.pm $ perldoc -l HTML::Template C:\perl\site\5.10.1\lib\HTML\Template.pm $ perldoc -l Bundle::CPAN No documentation found for "Bundle::CPAN". $ which instmodsh C:/perl/5.10.1/bin/instmodsh $ perldoc -l instmodsh C:\perl\5.10.1\bin\instmodsh
        Alternatively
        $ perl -Mstrict -le " print for values %INC" C:/perl/5.10.1/lib/strict.pm

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2014-10-01 07:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (389 votes), past polls