Problem installing a perl module "File exists"

Ask a Question related to PERL Modules, Design and Development.

  1. #1

    Default Problem installing a perl module "File exists"

    Hello,

    i'm trying to install the Date::Simple module, but i have an error:

    $ tar xvzf Date-Simple-3.01.tar.gz
    Date-Simple-3.01/
    Date-Simple-3.01/ChangeLog
    Date-Simple-3.01/COPYING
    Date-Simple-3.01/lib/
    Date-Simple-3.01/lib/Date/
    Date-Simple-3.01/lib/Date/Simple/
    Date-Simple-3.01/lib/Date/Simple/D8.pm
    Date-Simple-3.01/lib/Date/Simple/Fmt.pm
    Date-Simple-3.01/lib/Date/Simple/ISO.pm
    Date-Simple-3.01/lib/Date/Simple/NoXS.pm
    Date-Simple-3.01/lib/Date/Simple.pm
    Date-Simple-3.01/Makefile.PL
    Date-Simple-3.01/MANIFEST
    Date-Simple-3.01/MANIFEST.SKIP
    Date-Simple-3.01/META.yml
    Date-Simple-3.01/README
    Date-Simple-3.01/Simple.xs
    Date-Simple-3.01/t/
    Date-Simple-3.01/t/date.t

    $ cd Date-Simple-3.01
    $ perl Makefile.PL
    Enabling XS code.
    If you get errors, run `make distclean'
    and try again using `perl Makefile.PL noxs'.
    Checking if your kit is complete...
    Looks good
    Writing Makefile for Date::Simple

    $ make
    cp lib/Date/Simple/ISO.pm blib/lib/Date/Simple/ISO.pm
    cp lib/Date/Simple.pm blib/lib/Date/Simple.pm
    cp lib/Date/Simple/D8.pm blib/lib/Date/Simple/D8.pm
    cp lib/Date/Simple/NoXS.pm blib/lib/Date/Simple/NoXS.pm
    cp lib/Date/Simple/Fmt.pm blib/lib/Date/Simple/Fmt.pm
    /usr/bin/perl5.8.3 /usr/lib/perl5/5.8.3/ExtUtils/xsubpp
    -typemap /usr/lib/perl5/5.8.3/ExtUtils/typemap Simple.xs > Simple.xsc &&
    mv Simple.xsc Simple.c
    Please specify prototyping behavior for Simple.xs (see perlxs manual)
    gcc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing
    -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
    -I/usr/include/gdbm -O2 -fomit-frame-pointer -pipe -march=i586
    -mcpu=pentiumpro -DVERSION=\"3.01\" -DXS_VERSION=\"3.01\" -fPIC
    "-I/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE" Simple.c
    Running Mkbootstrap for Date::Simple ()
    chmod 644 Simple.bs
    rm -f blib/arch/auto/Date/Simple/Simple.so
    LD_RUN_PATH="/home/david/install/lib" gcc -shared -L/usr/local/lib Simple.o
    -o blib/arch/auto/Date/Simple/Simple.so
    chmod 755 blib/arch/auto/Date/Simple/Simple.so
    cp Simple.bs blib/arch/auto/Date/Simple/Simple.bs
    chmod 644 blib/arch/auto/Date/Simple/Simple.bs
    Manifying blib/man3/Date::Simple::ISO.3pm
    Manifying blib/man3/Date::Simple::NoXS.3pm
    Manifying blib/man3/Date::Simple::D8.3pm
    Manifying blib/man3/Date::Simple.3pm
    Manifying blib/man3/Date::Simple::Fmt.3pm

    $ make test
    PERL_DL_NONLAZY=1 /usr/bin/perl5.8.3 "-MExtUtils::Command::MM" "-e"
    "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
    t/date....ok
    All tests successful.
    Files=1, Tests=196, 0 wallclock secs ( 0.37 cusr + 0.03 csys = 0.40 CPU)

    $ su
    Password:
    # make install
    mkdir /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi: File exists
    at /usr/lib/perl5/5.8.3/ExtUtils/Install.pm line 126
    make: *** [pure_site_install] Erreur 255

    What am i doing wrong? Plz help, i'm a new to perl.

    My system is a mdk10 Community pre-official

    --
    TheDD
    TheDD Guest

  2. Similar Questions and Discussions

    1. I can't use "make" during installing module ?
      I downloaded module , after that I use perl Makefile.Pl ... It's OK ... then I use Make --> Dos told that "'make' is not recognized as an internal...
    2. "The file you selected does not exist" when the filedefinitely exists?
      Hi all, Using Contribute CS3 against Contribute Publishing Server-- I have the site uploaded and set up within Contribute and CPS. But I am...
    3. Install Hangs on "Installing Merge Module"
      I had run into an issue earlier today where my CFM pages would not display although all of the services and IIS were running fine. I decided to...
    4. "can't update file" problem installing extensions
      :confused; I use Dreamweaver MX 2004 in Windows 2000 with Extension manager version 1.6.064 - and have a weird situation with installing...
    5. Can't create PS file - "no desktop printer exists for this spool type"
      I can create PDF files from Photoshop, Illustrator or from any eps file by dropping them on to Distiller, but I can't create a ps file. I don't have...
  3. #2

    Default Re: Problem installing a perl module "File exists"

    Le 01/06/2004 à 00:30:07, TheDD <pas.d.email@pas.de.spam.fr> a écrit:
    > Hello,
    >
    > i'm trying to install the Date::Simple module, but i have an error:
    >
    > $ tar xvzf Date-Simple-3.01.tar.gz
    > Date-Simple-3.01/
    > Date-Simple-3.01/ChangeLog
    > Date-Simple-3.01/COPYING
    > Date-Simple-3.01/lib/
    > Date-Simple-3.01/lib/Date/
    > Date-Simple-3.01/lib/Date/Simple/
    > Date-Simple-3.01/lib/Date/Simple/D8.pm
    > Date-Simple-3.01/lib/Date/Simple/Fmt.pm
    > Date-Simple-3.01/lib/Date/Simple/ISO.pm
    > Date-Simple-3.01/lib/Date/Simple/NoXS.pm
    > Date-Simple-3.01/lib/Date/Simple.pm
    > Date-Simple-3.01/Makefile.PL
    > Date-Simple-3.01/MANIFEST
    > Date-Simple-3.01/MANIFEST.SKIP
    > Date-Simple-3.01/META.yml
    > Date-Simple-3.01/README
    > Date-Simple-3.01/Simple.xs
    > Date-Simple-3.01/t/
    > Date-Simple-3.01/t/date.t
    >
    > $ cd Date-Simple-3.01
    > $ perl Makefile.PL
    > Enabling XS code.
    > If you get errors, run `make distclean'
    > and try again using `perl Makefile.PL noxs'.
    > Checking if your kit is complete...
    > Looks good
    > Writing Makefile for Date::Simple
    >
    > $ make
    > cp lib/Date/Simple/ISO.pm blib/lib/Date/Simple/ISO.pm
    > cp lib/Date/Simple.pm blib/lib/Date/Simple.pm
    > cp lib/Date/Simple/D8.pm blib/lib/Date/Simple/D8.pm
    > cp lib/Date/Simple/NoXS.pm blib/lib/Date/Simple/NoXS.pm
    > cp lib/Date/Simple/Fmt.pm blib/lib/Date/Simple/Fmt.pm
    > /usr/bin/perl5.8.3 /usr/lib/perl5/5.8.3/ExtUtils/xsubpp
    > -typemap /usr/lib/perl5/5.8.3/ExtUtils/typemap Simple.xs > Simple.xsc &&
    > mv Simple.xsc Simple.c
    > Please specify prototyping behavior for Simple.xs (see perlxs manual)
    > gcc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing
    > -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
    > -I/usr/include/gdbm -O2 -fomit-frame-pointer -pipe -march=i586
    > -mcpu=pentiumpro -DVERSION=\"3.01\" -DXS_VERSION=\"3.01\" -fPIC
    > "-I/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE" Simple.c
    > Running Mkbootstrap for Date::Simple ()
    > chmod 644 Simple.bs
    > rm -f blib/arch/auto/Date/Simple/Simple.so
    > LD_RUN_PATH="/home/david/install/lib" gcc -shared -L/usr/local/lib Simple.o
    > -o blib/arch/auto/Date/Simple/Simple.so
    > chmod 755 blib/arch/auto/Date/Simple/Simple.so
    > cp Simple.bs blib/arch/auto/Date/Simple/Simple.bs
    > chmod 644 blib/arch/auto/Date/Simple/Simple.bs
    > Manifying blib/man3/Date::Simple::ISO.3pm
    > Manifying blib/man3/Date::Simple::NoXS.3pm
    > Manifying blib/man3/Date::Simple::D8.3pm
    > Manifying blib/man3/Date::Simple.3pm
    > Manifying blib/man3/Date::Simple::Fmt.3pm
    >
    > $ make test
    > PERL_DL_NONLAZY=1 /usr/bin/perl5.8.3 "-MExtUtils::Command::MM" "-e"
    > "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
    > t/date....ok
    > All tests successful.
    > Files=1, Tests=196, 0 wallclock secs ( 0.37 cusr + 0.03 csys = 0.40 CPU)
    >
    > $ su
    > Password:
    > # make install
    > mkdir /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi: File exists
    > at /usr/lib/perl5/5.8.3/ExtUtils/Install.pm line 126
    > make: *** [pure_site_install] Erreur 255
    >
    > What am i doing wrong? Plz help, i'm a new to perl.
    >
    > My system is a mdk10 Community pre-official
    i have "fixed" the problem by removing the file. Several mention to
    pdflib were in the file.

    Now the make install have created a directory with the same name:

    /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/:
    total 8
    drwx--x--x 3 root root 4096 jun 1 18:24 auto/
    drwx--x--x 3 root root 4096 jun 1 18:24 Date/

    /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/auto:
    total 4
    drwx--x--x 3 root root 4096 jun 1 18:24 Date/

    /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/auto/Date:
    total 4
    drwx--x--x 2 root root 4096 jun 1 18:24 Simple/

    /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/auto/Date/Simple:
    total 40
    -rw-r--r-- 1 root root 0 jun 1 00:25 Simple.bs
    -rwxr-xr-x 1 root root 37787 jun 1 00:25 Simple.so*

    /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/Date:
    total 24
    drwx--x--x 2 root root 4096 jun 1 18:24 Simple/
    -rwxr-xr-x 1 root root 16640 avr 5 21:55 Simple.pm*

    /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/Date/Simple:
    total 20
    -rwxr-xr-x 1 root root 978 avr 5 21:41 D8.pm*
    -rwxr-xr-x 1 root root 1377 avr 5 21:42 Fmt.pm*
    -rwxr-xr-x 1 root root 809 avr 5 21:41 ISO.pm*
    -rwxr-xr-x 1 root root 4542 avr 5 21:55 NoXS.pm*

    Everything seems to work.

    --
    TheDD
    TheDD Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139