bobdole has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to install Proc::Daemon module, or I guess any module for that matter, and I keep getting this error

make install
mkdir /usr/lib/perl5/site_perl/5.6.1/Proc: Read-only file system at /usr/lib/perl5/5.6.1/ExtUtils/Install.pm line 139 make: *** pure_site_install Error 255

I am logged in as root.
I tried to just go to /usr/lib/perl5/site_perl/5.6.1 and make the Proc folder myself and I get the same error about being a Read-Only file system.

any thoughts?

Replies are listed 'Best First'.
Re: module install trouble
by tirwhan (Abbot) on Feb 02, 2006 at 21:21 UTC

    Not really a Perl issue, I'd guess your /usr partition is mounted as read-only. The following for Linux (there are differences if you're using a different *NIX): Check /etc/mtab, that will give you the currently mounted partitions with mount options, check whether your /usr is mounted rw or ro. If it's ro and you're sure that there isn't a very good reason why this is the case (I mean sure here btw, like in absolutely SURE), you can issue

    mount -oremount,rw /usr

    That should fix your problem.


    Dogma is stupid.
Re: module install trouble
by chargrill (Parson) on Feb 02, 2006 at 21:23 UTC

    Who's the sysadmin?

    Some sysadmins of various un*x's only mount /var and /home as rw filesystems, and others that they don't want changed ro, so that at the very least a conscientious decision needs to be made before temporarily remounting a partition rw...



    --chargrill
    $/ = q#(\w)# ; sub sig { print scalar reverse join ' ', @_ } + sig map { s$\$/\$/$\$2\$1$g && $_ } split( ' ', ",erckha rlPe erthnoa stJu +" );
Re: module install trouble
by bobdole (Beadle) on Feb 02, 2006 at 21:44 UTC
    Sorry its not a perl Issue, I appriecate the help though. I checked the contents of the mtab file and it appears everything is set to rw

    more mtab
    /dev/hda5 / ext3 rw 0 0
    none /proc proc rw 0 0
    /dev/hda1 /boot ext3 rw 0 0
    /dev/hda8 /home ext3 rw,grpquota 0 0
    /dev/hda6 /usr ext3 rw 0 0
    /dev/hda7 /var ext3 rw,usrquota 0 0
    none /dev/pts devpts rw,gid=5,mode=620 0 0


    What I am needing to do is run my perl script indefinatly that intercepts emails coming in, so if anyone knows another method to do that other than installing the Proc::Daemon module I am open to that as well.
Re: module install trouble
by leocharre (Priest) on Feb 02, 2006 at 21:17 UTC

    deffinately got a thought.. it's called CPAN - a cli utility that let's you log into it- and install remove, whathaveyou- modules etc.

    it's like having a fluffer- or your own automechanic if you're a race car driver.

    i know, it doesn't address your error specifically. But.. maybe the install is doign something funny? maybe using cpan will let you install, if not.. then yours is perhaps not a perl problem?

    put some energy into getting cpan to work on the shell- who knows.. it might already be on your box! do a locate cpan or just try cpan on your box, then do install themoduleyouwant and hit enter.

      deffinately got a thought.. it's called CPAN - a cli utility that let's you log into it- and install remove, whathaveyou- modules etc.

      Good general purpose suggestion, but it shouldn't make a difference with the OP's problem, which appears not be strictly a Perl one. Indeed if by any chance using CPAN.pm as opposed to installing manually did make a difference, it would be interesting to know why, and that could give a clue as to what's wrong...

Re: module install trouble
by holli (Abbot) on Feb 02, 2006 at 21:31 UTC
    You're not running Knoppix (or any other CD based Linux), do you?


    holli, /regexed monk/

      Knoppix has been using UnionFS for quite a while now, so this would actually work on a Knoppix system (until the next reboot that is ;-).


      Dogma is stupid.